org.apache.chemistry.opencmis.jcr
Class JcrDocument
java.lang.Object
org.apache.chemistry.opencmis.jcr.JcrNode
org.apache.chemistry.opencmis.jcr.JcrDocument
- Direct Known Subclasses:
- JcrUnversionedDocument, JcrVersionBase
public abstract class JcrDocument
- extends JcrNode
Instances of this class represent a cmis:document backed by an underlying JCR Node
.
Methods inherited from class org.apache.chemistry.opencmis.jcr.JcrNode |
addPropertyBoolean, addPropertyDateTime, addPropertyId, addPropertyInteger, addPropertyString, asDocument, asFolder, asVersion, checkAddProperty, compileObjectType, create, delete, getAllowableActions, getBaseVersion, getChangeToken, getContextNode, getCreated, getCreatedBy, getId, getLastModified, getLastModifiedBy, getName, getNode, getNode, getNodeName, getObjectId, getParent, getPropertyLength, getPropertyOrElse, getPropertyOrElse, getTypeId, getTypeIdInternal, getVersionHistory, getVersionManager, getVersionSeriesId, isDocument, isFolder, isRoot, isVersionable, move, setAction, toString, updateProperties, updateProperties |
MIME_UNKNOWN
public static final String MIME_UNKNOWN
- See Also:
- Constant Field Values
JcrDocument
protected JcrDocument(javax.jcr.Node node,
JcrTypeManager typeManager,
PathManager pathManager,
JcrNodeFactory nodeFactory)
isDocumentCheckedOut
public boolean isDocumentCheckedOut()
- Returns:
true
iff the document is checked out
getContentStream
public ContentStream getContentStream()
- See CMIS 1.0 section 2.2.4.10 getContentStream
- Throws:
CmisObjectNotFoundException
CmisRuntimeException
setContentStream
public JcrNode setContentStream(ContentStream contentStream,
boolean overwriteFlag)
- See CMIS 1.0 section 2.2.4.16 setContentStream
- Throws:
CmisStorageException
isLatestVersion
protected abstract boolean isLatestVersion()
throws javax.jcr.RepositoryException
- Returns:
- the value of the
cmis:isLatestVersion
property
- Throws:
javax.jcr.RepositoryException
isMajorVersion
protected abstract boolean isMajorVersion()
throws javax.jcr.RepositoryException
- Returns:
- the value of the
cmis:isMajorVersion
property
- Throws:
javax.jcr.RepositoryException
isLatestMajorVersion
protected abstract boolean isLatestMajorVersion()
throws javax.jcr.RepositoryException
- Returns:
- the value of the
cmis:isLatestMajorVersion
property
- Throws:
javax.jcr.RepositoryException
getVersionLabel
protected abstract String getVersionLabel()
throws javax.jcr.RepositoryException
- Returns:
- the value of the
cmis:versionLabel
property
- Throws:
javax.jcr.RepositoryException
isCheckedOut
protected abstract boolean isCheckedOut()
throws javax.jcr.RepositoryException
- Returns:
- the value of the
cmis:isVersionSeriesCheckedOut
property
- Throws:
javax.jcr.RepositoryException
getCheckedOutId
protected abstract String getCheckedOutId()
throws javax.jcr.RepositoryException
- Returns:
- the value of the
cmis:versionSeriesCheckedOutId
property
- Throws:
javax.jcr.RepositoryException
getCheckedOutBy
protected abstract String getCheckedOutBy()
throws javax.jcr.RepositoryException
- Returns:
- the value of the
cmis:versionSeriesCheckedOutBy
property
- Throws:
javax.jcr.RepositoryException
getCheckInComment
protected abstract String getCheckInComment()
throws javax.jcr.RepositoryException
- Returns:
- the value of the
cmis:checkinComment
property
- Throws:
javax.jcr.RepositoryException
getIsImmutable
protected boolean getIsImmutable()
compileProperties
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
- Description copied from class:
JcrNode
- Compile the properties of the CMIS object represented by this instance.
See CMIS 1.0 section 2.2.4.7 getObject
- Overrides:
compileProperties
in class JcrNode
- Parameters:
properties
- compilation of properties
- Throws:
javax.jcr.RepositoryException
compileAllowableActions
protected Set<Action> compileAllowableActions(Set<Action> aas)
- Description copied from class:
JcrNode
- Compile the allowed actions on the CMIS object represented by this instance
See CMIS 1.0 section 2.2.4.6 getAllowableActions
- Overrides:
compileAllowableActions
in class JcrNode
- Parameters:
aas
- compilation of allowed actions
- Returns:
getBaseTypeId
protected BaseTypeId getBaseTypeId()
- Specified by:
getBaseTypeId
in class JcrNode
- Returns:
- the value of the
cmis:baseTypeId
property
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.