org.apache.chemistry.opencmis.jcr
Class JcrVersion
java.lang.Object
org.apache.chemistry.opencmis.jcr.JcrNode
org.apache.chemistry.opencmis.jcr.JcrDocument
org.apache.chemistry.opencmis.jcr.JcrVersionBase
org.apache.chemistry.opencmis.jcr.JcrVersion
public class JcrVersion
- extends JcrVersionBase
Instances of this class represent a specific version of a cmis:document backed by an underlying
JCR Node
.
Methods inherited from class org.apache.chemistry.opencmis.jcr.JcrVersionBase |
cancelCheckout, checkin, checkout, compileAllowableActions, compileProperties, delete, getBaseNodeId, getCheckedOutBy, getCheckedOutId, getPwc, getPwcId, getTypeIdInternal, getVersion, getVersions, isCheckedOut |
Methods inherited from class org.apache.chemistry.opencmis.jcr.JcrNode |
addPropertyBoolean, addPropertyDateTime, addPropertyId, addPropertyInteger, addPropertyString, asDocument, asFolder, asVersion, checkAddProperty, compileObjectType, create, getAllowableActions, getBaseVersion, getChangeToken, getCreated, getCreatedBy, getId, getLastModified, getLastModifiedBy, getName, getNode, getNode, getNodeName, getParent, getPropertyLength, getPropertyOrElse, getPropertyOrElse, getTypeId, getVersionHistory, getVersionManager, getVersionSeriesId, isDocument, isFolder, isRoot, isVersionable, move, setAction, toString, updateProperties, updateProperties |
JcrVersion
public JcrVersion(javax.jcr.Node node,
javax.jcr.version.Version version,
TypeManager typeManager,
PathManager pathManager,
JcrNodeFactory nodeFactory)
getContextNode
protected javax.jcr.Node getContextNode()
throws javax.jcr.RepositoryException
- Description copied from class:
JcrNode
- Retrieve the context node of the CMIS object represented by this instance. The
context node is the node which is used to derive the common properties from
(creation date, modification date, ...)
- Specified by:
getContextNode
in class JcrNode
- Returns:
- the context node
- Throws:
javax.jcr.RepositoryException
getObjectId
protected String getObjectId()
throws javax.jcr.RepositoryException
- Overrides:
getObjectId
in class JcrNode
- Returns:
- the object id of the CMIS object represented by this instance
- Throws:
javax.jcr.RepositoryException
isLatestVersion
protected boolean isLatestVersion()
throws javax.jcr.RepositoryException
- Specified by:
isLatestVersion
in class JcrDocument
- Returns:
- the value of the
cmis:isLatestVersion
property
- Throws:
javax.jcr.RepositoryException
isMajorVersion
protected boolean isMajorVersion()
- Specified by:
isMajorVersion
in class JcrDocument
- Returns:
- the value of the
cmis:isMajorVersion
property
isLatestMajorVersion
protected boolean isLatestMajorVersion()
throws javax.jcr.RepositoryException
- Specified by:
isLatestMajorVersion
in class JcrDocument
- Returns:
- the value of the
cmis:isLatestMajorVersion
property
- Throws:
javax.jcr.RepositoryException
getVersionLabel
protected String getVersionLabel()
throws javax.jcr.RepositoryException
- Specified by:
getVersionLabel
in class JcrDocument
- Returns:
- the value of the
cmis:versionLabel
property
- Throws:
javax.jcr.RepositoryException
getCheckInComment
protected String getCheckInComment()
throws javax.jcr.RepositoryException
- Specified by:
getCheckInComment
in class JcrDocument
- Returns:
- the value of the
cmis:checkinComment
property
- Throws:
javax.jcr.RepositoryException
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.