Interface ITabVersionController
Controller interface responsible to manage tab versions.
Namespace: DotNetNuke.Entities.Tabs.TabVersions
Assembly: DotNetNuke.dll
Syntax
public interface ITabVersionController
Methods
| Improve this Doc View SourceCreateTabVersion(Int32, Int32, Boolean)
Creates a new version for a existing Tab.
Declaration
TabVersion CreateTabVersion(int tabId, int createdByUserId, bool isPublished = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tabId | The Tab Id to be queried. |
System.Int32 | createdByUserId | User Id who creates the version. |
System.Boolean | isPublished | If true, the version is automatically published. |
Returns
Type | Description |
---|---|
TabVersion | TabVersion filled with the new version data. |
DeleteTabVersion(Int32, Int32)
Deletes a Tab Version.
Declaration
void DeleteTabVersion(int tabId, int tabVersionId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tabId | The Tab Id to be queried. |
System.Int32 | tabVersionId | The TabVersion Id to be deleted. |
DeleteTabVersionDetailByModule(Int32)
Deletes a Tab Version details for a module.
Declaration
void DeleteTabVersionDetailByModule(int moduleId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | moduleId | The Module Id to be queried. |
GetTabVersion(Int32, Int32, Boolean)
Gets a Tab Version object of an existing Tab.
Declaration
TabVersion GetTabVersion(int tabVersionId, int tabId, bool ignoreCache = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tabVersionId | The Tab Version Id to be get. |
System.Int32 | tabId | The Tab Id to be queried. |
System.Boolean | ignoreCache | If true, the method will not use the Caching Storage. |
Returns
Type | Description |
---|---|
TabVersion | TabVersion filled with the specific version data. |
GetTabVersions(Int32, Boolean)
Gets all Tab Versions of an existing Tab.
Declaration
IEnumerable<TabVersion> GetTabVersions(int tabId, bool ignoreCache = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tabId | Tha Tab ID to be quiered. |
System.Boolean | ignoreCache | If true, the method will not use the Caching Storage. |
Returns
Type | Description |
---|---|
IEnumerable<TabVersion> | List of TabVersion objects. |
SaveTabVersion(TabVersion, Int32, Int32)
Saves a Tab Version object. Adds or updates an existing one.
Declaration
void SaveTabVersion(TabVersion tabVersion, int createdByUserId, int modifiedByUserId)
Parameters
Type | Name | Description |
---|---|---|
TabVersion | tabVersion | TabVersion object to be saved. |
System.Int32 | createdByUserId | User Id who creates the TabVersion. |
System.Int32 | modifiedByUserId | User Id who modifies the TabVersion. |
SaveTabVersion(TabVersion, Int32)
Saves a Tab Version object. Adds or updates an existing one.
Declaration
void SaveTabVersion(TabVersion tabVersion, int createdByUserId)
Parameters
Type | Name | Description |
---|---|---|
TabVersion | tabVersion | TabVersion object to be saved. |
System.Int32 | createdByUserId | User Id who creates the TabVersion. |
SaveTabVersion(TabVersion)
Saves a Tab Version object. Adds or updates an existing one.
Declaration
void SaveTabVersion(TabVersion tabVersion)
Parameters
Type | Name | Description |
---|---|---|
TabVersion | tabVersion | TabVersion object to be saved. |