public abstract class JcrVersionBase extends JcrDocument
Node.JcrNode.PropertyUpdaterMIME_UNKNOWNDATE_UNKNOWN, pathManager, typeHandlerManager, typeManager, USER_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JcrVersionBase(javax.jcr.Node node,
JcrTypeManager typeManager,
PathManager pathManager,
JcrTypeHandlerManager typeHandlerManager) |
| Modifier and Type | Method and Description |
|---|---|
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(PropertiesImpl properties,
Set<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 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() |
getBaseTypeId, getCheckInComment, getContentStream, getIsImmutable, getVersionLabel, isDocumentCheckedOut, isLatestMajorVersion, isLatestVersion, isMajorVersion, setContentStreamaddPropertyBoolean, addPropertyDateTime, addPropertyId, addPropertyInteger, addPropertyList, 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, updatePropertiesprotected JcrVersionBase(javax.jcr.Node node,
JcrTypeManager typeManager,
PathManager pathManager,
JcrTypeHandlerManager typeHandlerManager)
public Iterator<JcrVersion> getVersions()
public void delete(boolean allVersions,
boolean isPwc)
JcrNodepublic JcrPrivateWorkingCopy checkout()
CmisRuntimeExceptionpublic JcrVersion checkin(Properties properties, ContentStream contentStream, String checkinComment)
CmisRuntimeExceptionpublic void cancelCheckout()
CmisRuntimeExceptionpublic JcrPrivateWorkingCopy getPwc()
JcrPrivateWorkingCopy instanceCmisObjectNotFoundException - if not checked outCmisRuntimeExceptionpublic JcrVersion getVersion(String name)
name - name of the version to getJcrVersion instance for nameCmisObjectNotFoundException - if a version name does not existCmisRuntimeExceptionprotected String getBaseNodeId() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected String getPwcId() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected void compileProperties(PropertiesImpl properties, Set<String> filter, ObjectInfoImpl objectInfo) throws javax.jcr.RepositoryException
JcrNodecompileProperties in class JcrDocumentproperties - compilation of propertiesjavax.jcr.RepositoryExceptionprotected Set<Action> compileAllowableActions(Set<Action> aas)
JcrNodecompileAllowableActions in class JcrDocumentaas - compilation of allowed actionsprotected String getTypeIdInternal()
getTypeIdInternal in class JcrNodecmis:objectTypeId propertyprotected boolean isCheckedOut()
throws javax.jcr.RepositoryException
isCheckedOut in class JcrDocumentcmis:isVersionSeriesCheckedOut propertyjavax.jcr.RepositoryExceptionprotected String getCheckedOutId() throws javax.jcr.RepositoryException
getCheckedOutId in class JcrDocumentcmis:versionSeriesCheckedOutId propertyjavax.jcr.RepositoryExceptionprotected String getCheckedOutBy() throws javax.jcr.RepositoryException
getCheckedOutBy in class JcrDocumentcmis:versionSeriesCheckedOutBy propertyjavax.jcr.RepositoryExceptionCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.