|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DocumentData
| Method Summary | |
|---|---|
void |
cancelCheckout()
Discard checkout operation. |
DocumentData |
checkin(boolean major,
String checkinComment,
Map<String,Property<?>> properties,
ContentStream content,
List<AccessControlEntry> acl,
Collection<PolicyData> policies)
Set private working copy as latest (current) version of document. |
DocumentData |
checkout()
Create PWC from this document. |
ContentStream |
getContentStream()
Get document content stream. |
String |
getContentStreamMimeType()
Shortcut to 'cmis:contentStreamMimeType' property. |
String |
getVersionLabel()
Shortcut to 'cmis:versionLabel' property. |
String |
getVersionSeriesCheckedOutBy()
Shortcut to 'cmis:versionSeriesCheckedOutBy' property. |
String |
getVersionSeriesCheckedOutId()
Shortcut to 'cmis:versionSeriesCheckedOutId' property. |
String |
getVersionSeriesId()
Shortcut to 'cmis:versionSeriesId' property. |
boolean |
hasContent()
Check does current document has content or not. |
boolean |
isLatestMajorVersion()
Shortcut to 'cmis:isLatestMajorVersion' property. |
boolean |
isLatestVersion()
Shortcut to 'cmis:isLatestVersion' property. |
boolean |
isMajorVersion()
Shortcut to 'cmis:isMajorVersion' property. |
boolean |
isPWC()
Implementation Compatibility: Optional. |
boolean |
isVersionSeriesCheckedOut()
Shortcut to 'cmis:isVersionSeriesCheckedOut' property. |
void |
setContentStream(ContentStream contentStream)
Set content stream to document. |
| Methods inherited from interface org.xcmis.spi.ObjectData |
|---|
accept, applyPolicy, getACL, getBaseType, getChangeToken, getContentStream, getCreatedBy, getCreationDate, getLastModificationDate, getLastModifiedBy, getName, getObjectId, getParent, getParents, getPolicies, getProperties, getProperties, getProperty, getRelationships, getTypeDefinition, getTypeId, removePolicy, setACL, setProperties, setProperty |
| Method Detail |
|---|
String getVersionLabel()
String getVersionSeriesCheckedOutBy()
String getVersionSeriesCheckedOutId()
String getVersionSeriesId()
boolean isLatestMajorVersion()
boolean isLatestVersion()
boolean isMajorVersion()
boolean isVersionSeriesCheckedOut()
String getContentStreamMimeType()
null if
document has not content
ContentStream getContentStream()
throws IOException
null if document has not content
IOException - if an I/O error occurs
void setContentStream(ContentStream contentStream)
throws IOException,
UpdateConflictException,
VersioningException,
StorageException
contentStream is
null then existed content of this document will be removed.
Implementation Compatibility: SHOULD be implemented if
capabilityContentStreamUpdatability = anytime
or
capabilityContentStreamUpdatability = pwconly and isPWC() = true
contentStream - ContentStream or null
IOException - if any i/o error occurs
VersioningException - if object is not current version and storage
do not support update other then latest version
UpdateConflictException - if object that is no longer current (as
determined by the storage)
StorageException - if object's content stream can not be updated
(save changes) cause to storage internal problemboolean hasContent()
true if has content and false if not
void cancelCheckout()
throws VersioningException,
UpdateConflictException,
StorageException
Connection.cancelCheckout(String).
Implementation Compatibility: Optional. Repository versioning specific.
VersioningException - if object is non-current document version and
'cancel checkout' action and not supported for non-current version
of document
UpdateConflictException - if object that is no longer current (as
determined by the storage)
StorageException - if changes can't be saved cause to storage
internal problem
DocumentData checkin(boolean major,
String checkinComment,
Map<String,Property<?>> properties,
ContentStream content,
List<AccessControlEntry> acl,
Collection<PolicyData> policies)
throws NameConstraintViolationException,
UpdateConflictException,
StorageException
major - is majorcheckinComment - check-in commentproperties - the document properties. May be null if
properties are not changedcontent - the document content stream. May be null if
content is not changedacl - the list of ACEs to be applied to new version of document. May
be null or empty listpolicies - the list of policies. May be null or empty
collection
NameConstraintViolationException - if cmis:name specified in
properties throws conflict
UpdateConflictException - if object that is no longer current (as
determined by the storage)
StorageException - if newly version of Document can't be saved in
storage cause to its internal problem
DocumentData checkout()
throws VersioningException,
UpdateConflictException,
StorageException
VersioningException - if one of the following conditions are met:
UpdateConflictException - if object that is no longer current (as
determined by the storage)
StorageException - if newly created PWC was not saved in storage
cause to storage internal problemboolean isPWC()
true if current Document is private working copy and
false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||