Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.versioning.service
Class VersioningManagerImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.versioning.service.VersioningManagerImpl
All Implemented Interfaces:
VersioningManager, Adaptable, Component, Extensible

public class VersioningManagerImpl
extends DefaultComponent
implements VersioningManager

Versions management component implementation.


Field Summary
static String COMPONENT_ID
           
 
Constructor Summary
VersioningManagerImpl()
           
 
Method Summary
 String getMajorVersionPropertyName(String documentType)
          Deprecated. 
 String getMinorVersionPropertyName(String documentType)
          Deprecated. 
 VersionIncEditOptions getVersionIncEditOptions(DocumentModel doc)
          Get document increment options as defined by versioning rules.
 String getVersionLabel(DocumentModel doc)
          Gets the label for the current version of a document, for the UI.
 DocumentModel incrementMajor(DocumentModel doc)
          Deprecated. 
 DocumentModel incrementMinor(DocumentModel doc)
          Deprecated. 
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, applicationStarted, deactivate, getAdapter, registerContribution, registerExtension, unregisterContribution, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_ID

public static final String COMPONENT_ID
See Also:
Constant Field Values
Constructor Detail

VersioningManagerImpl

public VersioningManagerImpl()
Method Detail

getVersionIncEditOptions

public VersionIncEditOptions getVersionIncEditOptions(DocumentModel doc)
                                               throws ClientException
Description copied from interface: VersioningManager
Get document increment options as defined by versioning rules.

Specified by:
getVersionIncEditOptions in interface VersioningManager
Parameters:
doc - the document
Returns:
a list of version increment options available for the given document
Throws:
ClientException

getVersionLabel

public String getVersionLabel(DocumentModel doc)
Description copied from interface: VersioningManager
Gets the label for the current version of a document, for the UI.

Specified by:
getVersionLabel in interface VersioningManager
Parameters:
doc - the document
Returns:
the version label

incrementMajor

@Deprecated
public DocumentModel incrementMajor(DocumentModel doc)
                             throws ClientException
Deprecated. 

Description copied from interface: VersioningManager
Increments the major version of a document and sets the minor to 0.

Specified by:
incrementMajor in interface VersioningManager
Parameters:
doc - the document
Throws:
ClientException

incrementMinor

@Deprecated
public DocumentModel incrementMinor(DocumentModel doc)
                             throws ClientException
Deprecated. 

Description copied from interface: VersioningManager
Increments the minor version of a document.

Specified by:
incrementMinor in interface VersioningManager
Parameters:
doc - the document
Throws:
ClientException

getMajorVersionPropertyName

@Deprecated
public String getMajorVersionPropertyName(String documentType)
Deprecated. 

Description copied from interface: VersioningManager
Returns the property name to use when setting the major version for this document type.

Specified by:
getMajorVersionPropertyName in interface VersioningManager

getMinorVersionPropertyName

@Deprecated
public String getMinorVersionPropertyName(String documentType)
Deprecated. 

Description copied from interface: VersioningManager
Returns the property name to use when setting the minor version for this document type.

Specified by:
getMinorVersionPropertyName in interface VersioningManager

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.