Méthode | Description | |
---|---|---|
CompareVersions ( System.Guid mainVersionId ) : IEnumerable |
Compares a page version to the previous version.
|
|
GetHistory ( int pageId ) : IEnumerable |
Retrieves all history for a page.
|
|
MaxVersion ( int pageId ) : int |
Retrieves the latest version number for a page.
|
|
PageHistoryService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository, IUserContext context, Roadkill.Core.Cache.PageViewModelCache pageViewModelCache, IPluginFactory pluginFactory ) : System | ||
RevertTo ( System.Guid versionId, IUserContext context ) : void |
Reverts to a particular version, creating a new version in the process.
|
|
RevertTo ( int pageId, int versionNumber ) : void |
Reverts a page to a particular version, creating a new version in the process.
|
public CompareVersions ( System.Guid mainVersionId ) : IEnumerable |
||
mainVersionId | System.Guid | The id of the version to compare |
Résultat | IEnumerable |
public GetHistory ( int pageId ) : IEnumerable |
||
pageId | int | The id of the page to get the history for. |
Résultat | IEnumerable |
public MaxVersion ( int pageId ) : int | ||
pageId | int | The id of the page to get the version number for. |
Résultat | int |
public PageHistoryService ( Roadkill.Core.Configuration.ApplicationSettings settings, IRepository repository, IUserContext context, Roadkill.Core.Cache.PageViewModelCache pageViewModelCache, IPluginFactory pluginFactory ) : System | ||
settings | Roadkill.Core.Configuration.ApplicationSettings | |
repository | IRepository | |
context | IUserContext | |
pageViewModelCache | Roadkill.Core.Cache.PageViewModelCache | |
pluginFactory | IPluginFactory | |
Résultat | System |
public RevertTo ( System.Guid versionId, IUserContext context ) : void | ||
versionId | System.Guid | The version ID to revert to. |
context | IUserContext | The current logged in user's context. |
Résultat | void |
public RevertTo ( int pageId, int versionNumber ) : void | ||
pageId | int | The id of the page |
versionNumber | int | The version number to revert to. |
Résultat | void |