Interface IVersionable
This interface allow the page to interact with his modules to delete/rollback or publish a specific version. The module that wants support page versioning need to implement it in the Bussiness controller.
Namespace: DotNetNuke.Entities.Modules
Assembly: DotNetNuke.dll
Syntax
public interface IVersionable
Methods
| Improve this Doc View SourceDeleteVersion(Int32, Int32)
This method deletes a concrete version of the module.
Declaration
void DeleteVersion(int moduleId, int version)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | moduleId | ModuleId. |
System.Int32 | version | Version number. |
GetLatestVersion(Int32)
This method returns the latest version number of the current module.
Declaration
int GetLatestVersion(int moduleId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | moduleId | Module Id. |
Returns
Type | Description |
---|---|
System.Int32 | Version number of the current published content version. |
GetPublishedVersion(Int32)
This method returns the version number of the current published module version.
Declaration
int GetPublishedVersion(int moduleId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | moduleId | Module Id. |
Returns
Type | Description |
---|---|
System.Int32 | Version number of the current published content version. |
PublishVersion(Int32, Int32)
This method publishes a version of the module.
Declaration
void PublishVersion(int moduleId, int version)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | moduleId | Module Id. |
System.Int32 | version | Version number. |
RollBackVersion(Int32, Int32)
This method performs a rollback of a concrete version of the module.
Declaration
int RollBackVersion(int moduleId, int version)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | moduleId | Module Id. |
System.Int32 | version | Version number that need to be rollback. |
Returns
Type | Description |
---|---|
System.Int32 | New version number created after the rollback process. |