org.apache.chemistry.opencmis.jcr
Class JcrPrivateWorkingCopy

java.lang.Object
  extended by org.apache.chemistry.opencmis.jcr.JcrNode
      extended by org.apache.chemistry.opencmis.jcr.JcrDocument
          extended by org.apache.chemistry.opencmis.jcr.JcrVersionBase
              extended by org.apache.chemistry.opencmis.jcr.JcrPrivateWorkingCopy

public class JcrPrivateWorkingCopy
extends JcrVersionBase

Instances of this class represent a private working copy of a cmis:document backed by an underlying JCR Node.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.chemistry.opencmis.jcr.JcrNode
JcrNode.PropertyUpdater
 
Field Summary
static java.lang.String PWC_NAME
          Name of a private working copy
 
Fields inherited from class org.apache.chemistry.opencmis.jcr.JcrDocument
MIME_UNKNOWN
 
Fields inherited from class org.apache.chemistry.opencmis.jcr.JcrNode
DATE_UNKNOWN, pathManager, typeManager, USER_UNKNOWN
 
Constructor Summary
JcrPrivateWorkingCopy(javax.jcr.Node node, JcrTypeManager typeManager, PathManager pathManager, JcrNodeFactory nodeFactory)
           
 
Method Summary
static boolean denotesPwc(java.lang.String versionName)
           
protected  java.lang.String getCheckInComment()
           
protected  javax.jcr.Node getContextNode()
          Retrieve the context node of the CMIS object represented by this instance.
protected  java.lang.String getObjectId()
           
protected  java.lang.String getPwcId()
           
protected  java.lang.String getVersionLabel()
           
protected  boolean isLatestMajorVersion()
           
protected  boolean isLatestVersion()
           
protected  boolean isMajorVersion()
           
static boolean isPwc(java.lang.String objectId)
           
 
Methods inherited from class org.apache.chemistry.opencmis.jcr.JcrVersionBase
cancelCheckout, checkin, checkout, compileAllowableActions, compileProperties, delete, getBaseNodeId, getCheckedOutBy, getCheckedOutId, getPwc, getTypeIdInternal, getVersion, getVersions, isCheckedOut
 
Methods inherited from class org.apache.chemistry.opencmis.jcr.JcrDocument
getBaseTypeId, getContentStream, getIsImmutable, isDocumentCheckedOut, setContentStream
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PWC_NAME

public static final java.lang.String PWC_NAME
Name of a private working copy

See Also:
Constant Field Values
Constructor Detail

JcrPrivateWorkingCopy

public JcrPrivateWorkingCopy(javax.jcr.Node node,
                             JcrTypeManager typeManager,
                             PathManager pathManager,
                             JcrNodeFactory nodeFactory)
Method Detail

denotesPwc

public static boolean denotesPwc(java.lang.String versionName)
Returns:
true iff versionName is the name of private working copy.
See Also:
PWC_NAME

isPwc

public static boolean isPwc(java.lang.String objectId)
Parameters:
objectId -
Returns:
true iff objectId is the id of a private working copy.
See Also:
PWC_NAME

getContextNode

protected javax.jcr.Node getContextNode()
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

getPwcId

protected java.lang.String getPwcId()
                             throws javax.jcr.RepositoryException
Overrides:
getPwcId in class JcrVersionBase
Returns:
Id of the private working copy of this version series
Throws:
javax.jcr.RepositoryException

getObjectId

protected java.lang.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

getVersionLabel

protected java.lang.String getVersionLabel()
                                    throws javax.jcr.RepositoryException
Specified by:
getVersionLabel in class JcrDocument
Returns:
the value of the cmis:versionLabel property
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()
                          throws javax.jcr.RepositoryException
Specified by:
isMajorVersion in class JcrDocument
Returns:
the value of the cmis:isMajorVersion property
Throws:
javax.jcr.RepositoryException

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

getCheckInComment

protected java.lang.String getCheckInComment()
Specified by:
getCheckInComment in class JcrDocument
Returns:
the value of the cmis:checkinComment property


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.