Class NuxeoDocument
- java.lang.Object
-
- org.nuxeo.ecm.core.opencmis.impl.client.NuxeoObject
-
- org.nuxeo.ecm.core.opencmis.impl.client.NuxeoFileableObject
-
- org.nuxeo.ecm.core.opencmis.impl.client.NuxeoDocument
-
- All Implemented Interfaces:
org.apache.chemistry.opencmis.client.api.CmisObject
,org.apache.chemistry.opencmis.client.api.CmisObjectProperties
,org.apache.chemistry.opencmis.client.api.Document
,org.apache.chemistry.opencmis.client.api.DocumentProperties
,org.apache.chemistry.opencmis.client.api.FileableCmisObject
,org.apache.chemistry.opencmis.client.api.ObjectId
public class NuxeoDocument extends NuxeoFileableObject implements org.apache.chemistry.opencmis.client.api.Document
Live local CMIS Document, which is backed by a Nuxeo document.
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.core.opencmis.impl.client.NuxeoObject
allTypes, data, nuxeoCmisService, objectFactory, secondaryTypes, service, session, type, UPDATABILITY_READWRITE
-
-
Constructor Summary
Constructors Constructor Description NuxeoDocument(NuxeoSession session, NuxeoObjectData data, org.apache.chemistry.opencmis.client.api.ObjectType type, List<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.chemistry.opencmis.client.api.Document
appendContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk)
org.apache.chemistry.opencmis.client.api.ObjectId
appendContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk, boolean refresh)
void
cancelCheckOut()
org.apache.chemistry.opencmis.client.api.ObjectId
checkIn(boolean major, Map<String,?> properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment)
org.apache.chemistry.opencmis.client.api.ObjectId
checkIn(boolean major, Map<String,?> properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment, List<org.apache.chemistry.opencmis.client.api.Policy> policies, List<org.apache.chemistry.opencmis.commons.data.Ace> addAces, List<org.apache.chemistry.opencmis.commons.data.Ace> removeAces)
org.apache.chemistry.opencmis.client.api.ObjectId
checkOut()
NuxeoDocument
copy(org.apache.chemistry.opencmis.client.api.ObjectId target)
NuxeoDocument
copy(org.apache.chemistry.opencmis.client.api.ObjectId target, Map<String,?> properties, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<org.apache.chemistry.opencmis.client.api.Policy> policies, List<org.apache.chemistry.opencmis.commons.data.Ace> addACEs, List<org.apache.chemistry.opencmis.commons.data.Ace> removeACEs, org.apache.chemistry.opencmis.client.api.OperationContext context)
OutputStream
createAppendOutputStream()
OutputStream
createAppendOutputStream(int bufferSize)
OutputStream
createOverwriteOutputStream(String filename, String mimeType)
OutputStream
createOverwriteOutputStream(String filename, String mimeType, int bufferSize)
void
deleteAllVersions()
NuxeoDocument
deleteContentStream()
org.apache.chemistry.opencmis.client.api.ObjectId
deleteContentStream(boolean refresh)
List<org.apache.chemistry.opencmis.client.api.Document>
getAllVersions()
List<org.apache.chemistry.opencmis.client.api.Document>
getAllVersions(org.apache.chemistry.opencmis.client.api.OperationContext context)
String
getCheckinComment()
org.apache.chemistry.opencmis.commons.data.ContentStream
getContentStream()
org.apache.chemistry.opencmis.commons.data.ContentStream
getContentStream(String streamId)
org.apache.chemistry.opencmis.commons.data.ContentStream
getContentStream(String streamId, BigInteger offset, BigInteger length)
org.apache.chemistry.opencmis.commons.data.ContentStream
getContentStream(BigInteger offset, BigInteger length)
String
getContentStreamFileName()
List<org.apache.chemistry.opencmis.commons.data.ContentStreamHash>
getContentStreamHashes()
String
getContentStreamId()
long
getContentStreamLength()
String
getContentStreamMimeType()
String
getContentUrl()
String
getContentUrl(String streamId)
org.apache.chemistry.opencmis.client.api.DocumentType
getDocumentType()
String
getLatestAccessibleStateId()
org.apache.chemistry.opencmis.client.api.Document
getObjectOfLatestVersion(boolean major)
org.apache.chemistry.opencmis.client.api.Document
getObjectOfLatestVersion(boolean major, org.apache.chemistry.opencmis.client.api.OperationContext context)
String
getVersionLabel()
String
getVersionSeriesCheckedOutBy()
String
getVersionSeriesCheckedOutId()
String
getVersionSeriesId()
Boolean
isImmutable()
Boolean
isLatestMajorVersion()
Boolean
isLatestVersion()
Boolean
isMajorVersion()
Boolean
isPrivateWorkingCopy()
boolean
isVersionable()
Boolean
isVersionSeriesCheckedOut()
Boolean
isVersionSeriesPrivateWorkingCopy()
org.apache.chemistry.opencmis.client.api.Document
setContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean overwrite)
org.apache.chemistry.opencmis.client.api.ObjectId
setContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean overwrite, boolean refresh)
-
Methods inherited from class org.nuxeo.ecm.core.opencmis.impl.client.NuxeoFileableObject
addToFolder, getParents, getParents, getPaths, move, move, removeFromFolder
-
Methods inherited from class org.nuxeo.ecm.core.opencmis.impl.client.NuxeoObject
addAcl, applyAcl, applyPolicy, applyPolicy, construct, delete, delete, findObjectType, getAcl, getAdapter, getAllowableActions, getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getDescription, getExtensions, getId, getLastModificationDate, getLastModifiedBy, getName, getPermissionsForPrincipal, getPolicies, getPolicyIds, getProperties, getProperty, getPropertyValue, getRefreshTimestamp, getRelationships, getRenditions, getRepositoryId, getSecondaryTypes, getType, hasAllowableAction, refresh, refreshIfOld, removeAcl, removePolicy, removePolicy, rename, rename, setAcl, updateProperties, updateProperties, updateProperties, updateProperties
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObject
addAcl, applyAcl, applyPolicy, applyPolicy, delete, delete, getAcl, getAdapter, getAllowableActions, getExtensions, getPermissionsForPrincipal, getPolicies, getPolicyIds, getRefreshTimestamp, getRelationships, getRenditions, hasAllowableAction, refresh, refreshIfOld, removeAcl, removePolicy, removePolicy, rename, rename, setAcl, updateProperties, updateProperties, updateProperties, updateProperties
-
Methods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties
findObjectType, getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getDescription, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getSecondaryTypes, getType
-
-
-
-
Constructor Detail
-
NuxeoDocument
public NuxeoDocument(NuxeoSession session, NuxeoObjectData data, org.apache.chemistry.opencmis.client.api.ObjectType type, List<org.apache.chemistry.opencmis.client.api.SecondaryType> secondaryTypes)
-
-
Method Detail
-
getDocumentType
public org.apache.chemistry.opencmis.client.api.DocumentType getDocumentType()
- Specified by:
getDocumentType
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
cancelCheckOut
public void cancelCheckOut()
- Specified by:
cancelCheckOut
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
checkIn
public org.apache.chemistry.opencmis.client.api.ObjectId checkIn(boolean major, Map<String,?> properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment)
- Specified by:
checkIn
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
checkIn
public org.apache.chemistry.opencmis.client.api.ObjectId checkIn(boolean major, Map<String,?> properties, org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, String checkinComment, List<org.apache.chemistry.opencmis.client.api.Policy> policies, List<org.apache.chemistry.opencmis.commons.data.Ace> addAces, List<org.apache.chemistry.opencmis.commons.data.Ace> removeAces)
- Specified by:
checkIn
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
checkOut
public org.apache.chemistry.opencmis.client.api.ObjectId checkOut()
- Specified by:
checkOut
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
copy
public NuxeoDocument copy(org.apache.chemistry.opencmis.client.api.ObjectId target)
- Specified by:
copy
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
copy
public NuxeoDocument copy(org.apache.chemistry.opencmis.client.api.ObjectId target, Map<String,?> properties, org.apache.chemistry.opencmis.commons.enums.VersioningState versioningState, List<org.apache.chemistry.opencmis.client.api.Policy> policies, List<org.apache.chemistry.opencmis.commons.data.Ace> addACEs, List<org.apache.chemistry.opencmis.commons.data.Ace> removeACEs, org.apache.chemistry.opencmis.client.api.OperationContext context)
- Specified by:
copy
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
deleteAllVersions
public void deleteAllVersions()
- Specified by:
deleteAllVersions
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
deleteContentStream
public NuxeoDocument deleteContentStream()
- Specified by:
deleteContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
deleteContentStream
public org.apache.chemistry.opencmis.client.api.ObjectId deleteContentStream(boolean refresh)
- Specified by:
deleteContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getAllVersions
public List<org.apache.chemistry.opencmis.client.api.Document> getAllVersions()
- Specified by:
getAllVersions
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getAllVersions
public List<org.apache.chemistry.opencmis.client.api.Document> getAllVersions(org.apache.chemistry.opencmis.client.api.OperationContext context)
- Specified by:
getAllVersions
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getCheckinComment
public String getCheckinComment()
- Specified by:
getCheckinComment
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream()
- Specified by:
getContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(String streamId)
- Specified by:
getContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(BigInteger offset, BigInteger length)
- Specified by:
getContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStream
public org.apache.chemistry.opencmis.commons.data.ContentStream getContentStream(String streamId, BigInteger offset, BigInteger length)
- Specified by:
getContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStreamFileName
public String getContentStreamFileName()
- Specified by:
getContentStreamFileName
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStreamId
public String getContentStreamId()
- Specified by:
getContentStreamId
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStreamLength
public long getContentStreamLength()
- Specified by:
getContentStreamLength
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentStreamMimeType
public String getContentStreamMimeType()
- Specified by:
getContentStreamMimeType
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getObjectOfLatestVersion
public org.apache.chemistry.opencmis.client.api.Document getObjectOfLatestVersion(boolean major)
- Specified by:
getObjectOfLatestVersion
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getObjectOfLatestVersion
public org.apache.chemistry.opencmis.client.api.Document getObjectOfLatestVersion(boolean major, org.apache.chemistry.opencmis.client.api.OperationContext context)
- Specified by:
getObjectOfLatestVersion
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getVersionLabel
public String getVersionLabel()
- Specified by:
getVersionLabel
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getVersionSeriesCheckedOutBy
public String getVersionSeriesCheckedOutBy()
- Specified by:
getVersionSeriesCheckedOutBy
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getVersionSeriesCheckedOutId
public String getVersionSeriesCheckedOutId()
- Specified by:
getVersionSeriesCheckedOutId
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getVersionSeriesId
public String getVersionSeriesId()
- Specified by:
getVersionSeriesId
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isImmutable
public Boolean isImmutable()
- Specified by:
isImmutable
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isVersionable
public boolean isVersionable()
- Specified by:
isVersionable
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
isVersionSeriesPrivateWorkingCopy
public Boolean isVersionSeriesPrivateWorkingCopy()
- Specified by:
isVersionSeriesPrivateWorkingCopy
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
isLatestMajorVersion
public Boolean isLatestMajorVersion()
- Specified by:
isLatestMajorVersion
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isLatestVersion
public Boolean isLatestVersion()
- Specified by:
isLatestVersion
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isMajorVersion
public Boolean isMajorVersion()
- Specified by:
isMajorVersion
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isVersionSeriesCheckedOut
public Boolean isVersionSeriesCheckedOut()
- Specified by:
isVersionSeriesCheckedOut
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
isPrivateWorkingCopy
public Boolean isPrivateWorkingCopy()
- Specified by:
isPrivateWorkingCopy
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getLatestAccessibleStateId
public String getLatestAccessibleStateId()
- Specified by:
getLatestAccessibleStateId
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
setContentStream
public org.apache.chemistry.opencmis.client.api.Document setContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean overwrite)
- Specified by:
setContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
setContentStream
public org.apache.chemistry.opencmis.client.api.ObjectId setContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean overwrite, boolean refresh)
- Specified by:
setContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
appendContentStream
public org.apache.chemistry.opencmis.client.api.Document appendContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk)
- Specified by:
appendContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
appendContentStream
public org.apache.chemistry.opencmis.client.api.ObjectId appendContentStream(org.apache.chemistry.opencmis.commons.data.ContentStream contentStream, boolean isLastChunk, boolean refresh)
- Specified by:
appendContentStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentStreamHashes
public List<org.apache.chemistry.opencmis.commons.data.ContentStreamHash> getContentStreamHashes()
- Specified by:
getContentStreamHashes
in interfaceorg.apache.chemistry.opencmis.client.api.DocumentProperties
-
getContentUrl
public String getContentUrl()
- Specified by:
getContentUrl
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
getContentUrl
public String getContentUrl(String streamId)
- Specified by:
getContentUrl
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createOverwriteOutputStream
public OutputStream createOverwriteOutputStream(String filename, String mimeType)
- Specified by:
createOverwriteOutputStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createOverwriteOutputStream
public OutputStream createOverwriteOutputStream(String filename, String mimeType, int bufferSize)
- Specified by:
createOverwriteOutputStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createAppendOutputStream
public OutputStream createAppendOutputStream()
- Specified by:
createAppendOutputStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
createAppendOutputStream
public OutputStream createAppendOutputStream(int bufferSize)
- Specified by:
createAppendOutputStream
in interfaceorg.apache.chemistry.opencmis.client.api.Document
-
-