Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.versioning.ejb
Class VersioningManagerBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.versioning.ejb.VersioningManagerBean
All Implemented Interfaces:
VersioningManager

public class VersioningManagerBean
extends java.lang.Object
implements VersioningManager

This is a versioning EJB facade.

Author:
Dragos Mihalache

Constructor Summary
VersioningManagerBean()
           
 
Method Summary
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 java.lang.String getMajorVersionPropertyName(java.lang.String documentType)
          Deprecated. 
 java.lang.String getMinorVersionPropertyName(java.lang.String documentType)
          Deprecated. 
 VersionIncEditOptions getVersionIncEditOptions(DocumentModel document)
          Get document increment options as defined by versioning rules.
 java.lang.String getVersionLabel(DocumentModel document)
          Gets the label for the current version of a document, for the UI.
 DocumentModel incrementMajor(DocumentModel document)
          Deprecated. 
 DocumentModel incrementMinor(DocumentModel document)
          Deprecated. 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersioningManagerBean

public VersioningManagerBean()
Method Detail

ejbCreate

@PostConstruct
public void ejbCreate()

ejbActivate

public void ejbActivate()

ejbPassivate

public void ejbPassivate()

ejbRemove

public void ejbRemove()

getVersionIncEditOptions

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

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

getVersionLabel

public java.lang.String getVersionLabel(DocumentModel document)
                                 throws ClientException
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:
document - the document
Returns:
the version label
Throws:
ClientException

incrementMajor

@Deprecated
public DocumentModel incrementMajor(DocumentModel document)
                             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:
document - the document
Throws:
ClientException

incrementMinor

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

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

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

getMajorVersionPropertyName

@Deprecated
public java.lang.String getMajorVersionPropertyName(java.lang.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 java.lang.String getMinorVersionPropertyName(java.lang.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 Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.