|
||||||||||
| 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.
| 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,
TypeManager 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,
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 Set<Action> |
compileAllowableActions(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(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl properties,
Set<String> filter,
org.apache.chemistry.opencmis.commons.impl.server.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 String |
getBaseNodeId()
|
protected String |
getCheckedOutBy()
|
protected String |
getCheckedOutId()
|
JcrPrivateWorkingCopy |
getPwc()
Get the private working copy of the versions series or throw an exception if not checked out. |
protected String |
getPwcId()
|
protected String |
getTypeIdInternal()
|
JcrVersion |
getVersion(String name)
Get a specific version by name |
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,
TypeManager typeManager,
PathManager pathManager,
JcrNodeFactory nodeFactory)
| Method Detail |
|---|
public Iterator<JcrVersion> getVersions()
public void delete(boolean allVersions,
boolean isPwc)
JcrNode
delete in class JcrNodepublic JcrPrivateWorkingCopy checkout()
CmisRuntimeException
public JcrVersion checkin(Properties properties,
ContentStream contentStream,
String checkinComment)
CmisRuntimeExceptionpublic void cancelCheckout()
CmisRuntimeExceptionpublic JcrPrivateWorkingCopy getPwc()
JcrPrivateWorkingCopy instance
CmisObjectNotFoundException - if not checked out
CmisRuntimeExceptionpublic JcrVersion getVersion(String name)
name - name of the version to get
JcrVersion instance for name
CmisObjectNotFoundException - if a version name does not exist
CmisRuntimeException
protected String getBaseNodeId()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected String getPwcId()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void compileProperties(org.apache.chemistry.opencmis.commons.impl.dataobjects.PropertiesImpl properties,
Set<String> filter,
org.apache.chemistry.opencmis.commons.impl.server.ObjectInfoImpl objectInfo)
throws javax.jcr.RepositoryException
JcrNode
compileProperties in class JcrDocumentproperties - compilation of properties
javax.jcr.RepositoryExceptionprotected Set<Action> compileAllowableActions(Set<Action> aas)
JcrNode
compileAllowableActions in class JcrDocumentaas - compilation of allowed actions
protected String getTypeIdInternal()
getTypeIdInternal in class JcrNodecmis:objectTypeId property
protected boolean isCheckedOut()
throws javax.jcr.RepositoryException
isCheckedOut in class JcrDocumentcmis:isVersionSeriesCheckedOut property
javax.jcr.RepositoryException
protected String getCheckedOutId()
throws javax.jcr.RepositoryException
getCheckedOutId in class JcrDocumentcmis:versionSeriesCheckedOutId property
javax.jcr.RepositoryException
protected String getCheckedOutBy()
throws javax.jcr.RepositoryException
getCheckedOutBy in class JcrDocumentcmis:versionSeriesCheckedOutBy property
javax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||