|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.jcr.JcrNode
org.apache.chemistry.opencmis.jcr.JcrDocument
org.apache.chemistry.opencmis.jcr.JcrVersionBase
public abstract class JcrVersionBase
Instances of this class represent a versionable cmis:document and its versions 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 |
---|
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 | |
---|---|
JcrVersionBase(javax.jcr.Node node,
JcrTypeManager typeManager,
PathManager pathManager,
JcrNodeFactory nodeFactory)
|
Method Summary | |
---|---|
void |
cancelCheckout()
See CMIS 1.0 section 2.2.7.2 cancelCheckout |
JcrVersion |
checkin(Properties properties,
ContentStream contentStream,
java.lang.String checkinComment)
See CMIS 1.0 section 2.2.7.3 checkedIn |
JcrPrivateWorkingCopy |
checkout()
See CMIS 1.0 section 2.2.7.1 checkOut |
protected java.util.Set<Action> |
compileAllowableActions(java.util.Set<Action> aas)
Compile the allowed actions on the CMIS object represented by this instance See CMIS 1.0 section 2.2.4.6 getAllowableActions |
protected void |
compileProperties(PropertiesImpl properties,
java.util.Set<java.lang.String> filter,
ObjectInfoImpl objectInfo)
Compile the properties of the CMIS object represented by this instance. |
void |
delete(boolean allVersions,
boolean isPwc)
See CMIS 1.0 section 2.2.4.14 deleteObject |
protected java.lang.String |
getBaseNodeId()
|
protected java.lang.String |
getCheckedOutBy()
|
protected java.lang.String |
getCheckedOutId()
|
JcrPrivateWorkingCopy |
getPwc()
Get the private working copy of the versions series or throw an exception if not checked out. |
protected java.lang.String |
getPwcId()
|
protected java.lang.String |
getTypeIdInternal()
|
JcrVersion |
getVersion(java.lang.String name)
Get a specific version by name |
java.util.Iterator<JcrVersion> |
getVersions()
See CMIS 1.0 section 2.2.7.6 getAllVersions |
protected boolean |
isCheckedOut()
|
Methods inherited from class org.apache.chemistry.opencmis.jcr.JcrDocument |
---|
getBaseTypeId, getCheckInComment, getContentStream, getIsImmutable, getVersionLabel, isDocumentCheckedOut, isLatestMajorVersion, isLatestVersion, isMajorVersion, 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, getContextNode, getCreated, getCreatedBy, getId, getLastModified, getLastModifiedBy, getName, getNode, getNode, getNodeName, getObjectId, 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 |
Constructor Detail |
---|
public JcrVersionBase(javax.jcr.Node node, JcrTypeManager typeManager, PathManager pathManager, JcrNodeFactory nodeFactory)
Method Detail |
---|
public java.util.Iterator<JcrVersion> getVersions()
public void delete(boolean allVersions, boolean isPwc)
JcrNode
delete
in class JcrNode
public JcrPrivateWorkingCopy checkout()
CmisRuntimeException
public JcrVersion checkin(Properties properties, ContentStream contentStream, java.lang.String checkinComment)
CmisRuntimeException
public void cancelCheckout()
CmisRuntimeException
public JcrPrivateWorkingCopy getPwc()
JcrPrivateWorkingCopy
instance
CmisObjectNotFoundException
- if not checked out
CmisRuntimeException
public JcrVersion getVersion(java.lang.String name)
name
- name of the version to get
JcrVersion
instance for name
CmisObjectNotFoundException
- if a version name
does not exist
CmisRuntimeException
protected java.lang.String getBaseNodeId() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected java.lang.String getPwcId() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void compileProperties(PropertiesImpl properties, java.util.Set<java.lang.String> filter, ObjectInfoImpl objectInfo) throws javax.jcr.RepositoryException
JcrNode
compileProperties
in class JcrDocument
properties
- compilation of properties
javax.jcr.RepositoryException
protected java.util.Set<Action> compileAllowableActions(java.util.Set<Action> aas)
JcrNode
compileAllowableActions
in class JcrDocument
aas
- compilation of allowed actions
protected java.lang.String getTypeIdInternal()
getTypeIdInternal
in class JcrNode
cmis:objectTypeId
propertyprotected boolean isCheckedOut() throws javax.jcr.RepositoryException
isCheckedOut
in class JcrDocument
cmis:isVersionSeriesCheckedOut
property
javax.jcr.RepositoryException
protected java.lang.String getCheckedOutId() throws javax.jcr.RepositoryException
getCheckedOutId
in class JcrDocument
cmis:versionSeriesCheckedOutId
property
javax.jcr.RepositoryException
protected java.lang.String getCheckedOutBy() throws javax.jcr.RepositoryException
getCheckedOutBy
in class JcrDocument
cmis:versionSeriesCheckedOutBy
property
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |