|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Document
CMIS Document. Domain Model 2.4
Method Summary | |
---|---|
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,
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(List<Property<?>> properties,
VersioningState versioningState,
List<Policy> policies,
List<Ace> addACEs,
List<Ace> removeACEs)
Creates a (content) copy of this document. |
void |
deleteAllVersions()
Deletes this document and all its versions. |
ObjectId |
deleteContentStream()
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 . |
String |
getCheckinComment()
|
ContentStream |
getContentStream()
Retrieves the content stream of this document. |
ContentStream |
getContentStream(String streamId)
Retrieves the content stream that is associated with the given stream id. |
String |
getContentStreamFileName()
|
String |
getContentStreamId()
|
long |
getContentStreamLength()
|
String |
getContentStreamMimeType()
|
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 . |
String |
getVersionLabel()
|
String |
getVersionSeriesCheckedOutBy()
|
String |
getVersionSeriesCheckedOutId()
|
String |
getVersionSeriesId()
|
Boolean |
isImmutable()
|
Boolean |
isLatestMajorVersion()
|
Boolean |
isLatestVersion()
|
Boolean |
isMajorVersion()
|
Boolean |
isVersionSeriesCheckedOut()
|
ObjectId |
setContentStream(ContentStream contentStream,
boolean overwrite)
Sets a new content stream for the document. |
Methods inherited from interface org.apache.chemistry.opencmis.client.api.FileableCmisObject |
---|
addToFolder, getParents, getPaths, move, removeFromFolder |
Methods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObject |
---|
addAcl, applyAcl, applyPolicy, delete, getAcl, getAcl, getAllowableActions, getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getExtensions, getLastModificationDate, getLastModifiedBy, getName, getPolicies, getProperties, getProperty, getPropertyMultivalue, getPropertyValue, getRefreshTimestamp, getRelationships, getRelationships, getRenditions, getType, isChanged, refresh, refreshIfOld, removeAcl, removePolicy, setName, setProperty, setPropertyMultivalue, updateProperties, updateProperties |
Methods inherited from interface org.apache.chemistry.opencmis.client.api.ObjectId |
---|
getId |
Method Detail |
---|
void deleteAllVersions()
ContentStream getContentStream()
ContentStream getContentStream(String streamId)
ObjectId setContentStream(ContentStream contentStream, boolean overwrite)
ObjectId deleteContentStream()
ObjectId checkOut()
void cancelCheckOut()
ObjectId checkIn(boolean major, Map<String,?> properties, ContentStream contentStream, String checkinComment, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces)
Document getObjectOfLatestVersion(boolean major)
major
- if true
the latest major version will be
returned, otherwise the very last version will be returned
Document getObjectOfLatestVersion(boolean major, OperationContext context)
OperationContext
.
major
- if true
the latest major version will be
returned, otherwise the very last version will be returned
List<Document> getAllVersions()
List<Document> getAllVersions(OperationContext context)
OperationContext
.
Boolean isImmutable()
Boolean isLatestVersion()
Boolean isMajorVersion()
Boolean isLatestMajorVersion()
String getVersionLabel()
String getVersionSeriesId()
Boolean isVersionSeriesCheckedOut()
String getVersionSeriesCheckedOutBy()
String getVersionSeriesCheckedOutId()
String getCheckinComment()
long getContentStreamLength()
String getContentStreamMimeType()
String getContentStreamFileName()
String getContentStreamId()
Document copy(List<Property<?>> properties, VersioningState versioningState, List<Policy> policies, List<Ace> addACEs, List<Ace> removeACEs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |