public abstract class JcrVersionBase extends JcrDocument
Node
.JcrNode.PropertyUpdater
MIME_UNKNOWN
DATE_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, setContentStream
addPropertyBoolean, 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, updateProperties
protected JcrVersionBase(javax.jcr.Node node, JcrTypeManager typeManager, PathManager pathManager, JcrTypeHandlerManager typeHandlerManager)
public Iterator<JcrVersion> getVersions()
public void delete(boolean allVersions, boolean isPwc)
JcrNode
public JcrPrivateWorkingCopy checkout()
CmisRuntimeException
public JcrVersion checkin(Properties properties, ContentStream contentStream, String checkinComment)
CmisRuntimeException
public void cancelCheckout()
CmisRuntimeException
public JcrPrivateWorkingCopy getPwc()
JcrPrivateWorkingCopy
instanceCmisObjectNotFoundException
- if not checked outCmisRuntimeException
public JcrVersion getVersion(String name)
name
- name of the version to getJcrVersion
instance for name
CmisObjectNotFoundException
- if a version name
does not existCmisRuntimeException
protected String getBaseNodeId() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected String getPwcId() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void compileProperties(PropertiesImpl properties, Set<String> filter, ObjectInfoImpl objectInfo) throws javax.jcr.RepositoryException
JcrNode
compileProperties
in class JcrDocument
properties
- compilation of propertiesjavax.jcr.RepositoryException
protected Set<Action> compileAllowableActions(Set<Action> aas)
JcrNode
compileAllowableActions
in class JcrDocument
aas
- compilation of allowed actionsprotected String getTypeIdInternal()
getTypeIdInternal
in class JcrNode
cmis:objectTypeId
propertyprotected boolean isCheckedOut() throws javax.jcr.RepositoryException
isCheckedOut
in class JcrDocument
cmis:isVersionSeriesCheckedOut
propertyjavax.jcr.RepositoryException
protected String getCheckedOutId() throws javax.jcr.RepositoryException
getCheckedOutId
in class JcrDocument
cmis:versionSeriesCheckedOutId
propertyjavax.jcr.RepositoryException
protected String getCheckedOutBy() throws javax.jcr.RepositoryException
getCheckedOutBy
in class JcrDocument
cmis:versionSeriesCheckedOutBy
propertyjavax.jcr.RepositoryException
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.