Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.versioning
Class VersioningDocumentAdapter

java.lang.Object
  extended by org.nuxeo.ecm.core.versioning.VersioningDocumentAdapter
All Implemented Interfaces:
VersioningDocument

public class VersioningDocumentAdapter
extends Object
implements VersioningDocument

Adapter showing the versioning aspects of documents.


Field Summary
 DocumentModel doc
           
 VersioningService service
           
 
Fields inherited from interface org.nuxeo.ecm.core.api.facet.VersioningDocument
CREATE_SNAPSHOT_ON_SAVE_KEY, CURRENT_DOCUMENT_MAJOR_VERSION_KEY, CURRENT_DOCUMENT_MINOR_VERSION_KEY, DOCUMENT_WAS_SNAPSHOTTED, KEY_FOR_INC_OPTION, RESTORED_VERSION_UUID_KEY
 
Constructor Summary
VersioningDocumentAdapter(DocumentModel doc)
           
 
Method Summary
 Long getMajorVersion()
           
 Long getMinorVersion()
           
 String getVersionAsString(int majorDigits, int minorDigits, char sep)
          Deprecated. 
 String getVersionLabel()
          Returns a string representation of the version number.
 void incrementMajor()
          Deprecated. 
 void incrementMinor()
          Deprecated. 
 void incrementVersions()
          Deprecated. 
 void refetchDoc()
          Deprecated. 
 void setMajorVersion(Long value)
          Deprecated. 
 void setMinorVersion(Long value)
          Deprecated. 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

public final DocumentModel doc

service

public final VersioningService service
Constructor Detail

VersioningDocumentAdapter

public VersioningDocumentAdapter(DocumentModel doc)
Method Detail

getMajorVersion

public Long getMajorVersion()
                     throws DocumentException
Specified by:
getMajorVersion in interface VersioningDocument
Throws:
DocumentException

getMinorVersion

public Long getMinorVersion()
                     throws DocumentException
Specified by:
getMinorVersion in interface VersioningDocument
Throws:
DocumentException

getVersionLabel

public String getVersionLabel()
Description copied from interface: VersioningDocument
Returns a string representation of the version number.

Specified by:
getVersionLabel in interface VersioningDocument
Returns:
a string, like "2.1"

incrementMajor

@Deprecated
public void incrementMajor()
                    throws DocumentException
Deprecated. 

Specified by:
incrementMajor in interface VersioningDocument
Throws:
DocumentException

incrementMinor

@Deprecated
public void incrementMinor()
                    throws DocumentException
Deprecated. 

Specified by:
incrementMinor in interface VersioningDocument
Throws:
DocumentException

setMajorVersion

@Deprecated
public void setMajorVersion(Long value)
Deprecated. 

Specified by:
setMajorVersion in interface VersioningDocument

setMinorVersion

@Deprecated
public void setMinorVersion(Long value)
Deprecated. 

Specified by:
setMinorVersion in interface VersioningDocument

refetchDoc

@Deprecated
public void refetchDoc()
                throws DocumentException
Deprecated. 

Specified by:
refetchDoc in interface VersioningDocument
Throws:
DocumentException

incrementVersions

@Deprecated
public void incrementVersions()
Deprecated. 

Specified by:
incrementVersions in interface VersioningDocument

getVersionAsString

@Deprecated
public String getVersionAsString(int majorDigits,
                                            int minorDigits,
                                            char sep)
                          throws DocumentException
Deprecated. 

Specified by:
getVersionAsString in interface VersioningDocument
Throws:
DocumentException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.