|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentVersionService
CMS Version Service Interface
This service maintains content versions and history. The version number is composed of a Major & minor section like the following structure : "majorNum.minorNum" TODO : Later we will add branch management with content merge, content comparaison, ...
Method Summary | |
---|---|
void |
addInHistory(java.lang.String uri,
VersionnedContent previousContent,
VersionnedContent newContent)
Add a new version in the Document history |
VersionnedContent |
createMajorVersion(java.lang.String uri)
Create a new major versionned content. |
VersionnedContent |
createMinorVersion(java.lang.String uri)
Create a new minor versionned content. |
HistoryElement |
getHistory(java.lang.String uri)
Get the last history element associated to an uri |
HistoryElement |
getHistory(VersionnedContent versionnedContent)
Get the history element associated to a specific versionned content |
Method Detail |
---|
HistoryElement getHistory(java.lang.String uri) throws ContentManagementException
uri
- The uri assigned to the versioned content
ContentManagementException
- when it is impossible to get the historyHistoryElement getHistory(VersionnedContent versionnedContent) throws ContentManagementException
versionnedContent
- The versionned content for which the history element is required
ContentManagementException
- when it is impossible to get the historyVersionnedContent createMajorVersion(java.lang.String uri) throws CmsInstantiateException
uri
- The content uri
CmsInstantiateException
VersionnedContent createMinorVersion(java.lang.String uri) throws CmsInstantiateException
uri
- The content uri
CmsInstantiateException
void addInHistory(java.lang.String uri, VersionnedContent previousContent, VersionnedContent newContent) throws CmsInstantiateException
uri
- The uri for wich the history has to be modifiedpreviousContent
- The versionned content before the new one to addnewContent
- The new versionned content to insert into the history
CmsInstantiateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |