메소드 | 설명 | |
---|---|---|
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 |
리턴 | IEnumerable |
public GetHistory ( int pageId ) : IEnumerable |
||
pageId | int | The id of the page to get the history for. |
리턴 | IEnumerable |
public MaxVersion ( int pageId ) : int | ||
pageId | int | The id of the page to get the version number for. |
리턴 | 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 | |
리턴 | 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. |
리턴 | void |
public RevertTo ( int pageId, int versionNumber ) : void | ||
pageId | int | The id of the page |
versionNumber | int | The version number to revert to. |
리턴 | void |