public interface Document extends FileableCmisObject, DocumentProperties
Domain Model 2.4
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCheckOut()
If this is a PWC (private working copy) the check out will be reversed.
|
ObjectId |
checkIn(boolean major,
Map<String,?> properties,
ContentStream contentStream,
String checkinComment)
If this is a PWC (private working copy) it performs a check in.
|
ObjectId |
checkIn(boolean major,
Map<String,?> properties,
ContentStream contentStream,
String checkinComment,
List<Policy> policies,
List<Ace> addAces,
List<Ace> removeAces)
If this is a PWC (private working copy) it performs a check in.
|
ObjectId |
checkOut()
Checks out the document and returns the object id of the PWC (private
working copy).
|
Document |
copy(ObjectId targetFolderId)
Creates a copy of this document, including content.
|
Document |
copy(ObjectId targetFolderId,
Map<String,?> properties,
VersioningState versioningState,
List<Policy> policies,
List<Ace> addACEs,
List<Ace> removeACEs,
OperationContext context)
Creates a copy of this document, including content.
|
void |
deleteAllVersions()
Deletes this document and all its versions.
|
Document |
deleteContentStream()
Removes the current content stream from the document and refreshes this
object afterwards.
|
ObjectId |
deleteContentStream(boolean refresh)
Removes the current content stream from the document.
|
List<Document> |
getAllVersions()
Fetches all versions of this document.
|
List<Document> |
getAllVersions(OperationContext context)
Fetches all versions of this document using the given
OperationContext. |
ContentStream |
getContentStream()
Retrieves the content stream of this document.
|
ContentStream |
getContentStream(BigInteger offset,
BigInteger length)
Retrieves the content stream of this document.
|
ContentStream |
getContentStream(String streamId)
Retrieves the content stream that is associated with the given stream id.
|
ContentStream |
getContentStream(String streamId,
BigInteger offset,
BigInteger length)
Retrieves the content stream that is associated with the given stream id.
|
Document |
getObjectOfLatestVersion(boolean major)
Fetches the latest major or minor version of this document.
|
Document |
getObjectOfLatestVersion(boolean major,
OperationContext context)
Fetches the latest major or minor version of this document using the
given
OperationContext. |
TransientDocument |
getTransientDocument() |
Document |
setContentStream(ContentStream contentStream,
boolean overwrite)
Sets a new content stream for the document and refreshes this object
afterwards.
|
ObjectId |
setContentStream(ContentStream contentStream,
boolean overwrite,
boolean refresh)
Sets a new content stream for the document.
|
addToFolder, getParents, getParents, getPaths, move, move, removeFromFolderaddAcl, applyAcl, applyPolicy, delete, delete, getAcl, getAdapter, getAllowableActions, getExtensions, getPolicies, getRefreshTimestamp, getRelationships, getRenditions, getTransientObject, refresh, refreshIfOld, removeAcl, removePolicy, setAcl, updateProperties, updatePropertiesgetBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getTypegetCheckinComment, getContentStreamFileName, getContentStreamId, getContentStreamLength, getContentStreamMimeType, getVersionLabel, getVersionSeriesCheckedOutBy, getVersionSeriesCheckedOutId, getVersionSeriesId, isImmutable, isLatestMajorVersion, isLatestVersion, isMajorVersion, isVersionSeriesCheckedOutTransientDocument getTransientDocument()
void deleteAllVersions()
ContentStream getContentStream()
nullContentStream getContentStream(BigInteger offset, BigInteger length)
offset - the offset of the stream or null to read the
stream from the beginninglength - the maximum length of the stream or null to read
to the end of the streamnullContentStream getContentStream(String streamId)
streamId - the stream idnullContentStream getContentStream(String streamId, BigInteger offset, BigInteger length)
streamId - the stream idoffset - the offset of the stream or null to read the
stream from the beginninglength - the maximum length of the stream or null to read
to the end of the streamnullDocument setContentStream(ContentStream contentStream, boolean overwrite)
contentStream is consumed but not closed by
this method.ObjectId setContentStream(ContentStream contentStream, boolean overwrite, boolean refresh)
contentStream is consumed but not closed by
this method.Document deleteContentStream()
ObjectId deleteContentStream(boolean refresh)
ObjectId checkOut()
void cancelCheckOut()
ObjectId checkIn(boolean major, Map<String,?> properties, ContentStream contentStream, String checkinComment, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
contentStream is consumed but not closed by
this method.ObjectId checkIn(boolean major, Map<String,?> properties, ContentStream contentStream, String checkinComment)
contentStream is consumed but not closed by
this method.Document getObjectOfLatestVersion(boolean major)
major - if true the latest major version will be
returned, otherwise the very last version will be returnedDocument getObjectOfLatestVersion(boolean major, OperationContext context)
OperationContext.major - if true the latest major version will be
returned, otherwise the very last version will be returnedList<Document> getAllVersions(OperationContext context)
OperationContext.Document copy(ObjectId targetFolderId)
Document copy(ObjectId targetFolderId, Map<String,?> properties, VersioningState versioningState, List<Policy> policies, List<Ace> addACEs, List<Ace> removeACEs, OperationContext context)
null if the parameter
context was set to nullCopyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.