public class DocumentVersion extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Set<String> |
CHECKOUT_SKIP |
protected org.exoplatform.ecms.xcmis.sp.JcrNodeEntry |
entry |
| Constructor and Description |
|---|
DocumentVersion(org.exoplatform.ecms.xcmis.sp.JcrNodeEntry jcrEntry) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(org.xcmis.spi.ObjectDataVisitor visitor) |
void |
applyPolicy(org.xcmis.spi.PolicyData policy) |
void |
cancelCheckout() |
org.xcmis.spi.DocumentData |
checkin(boolean major,
String checkinComment,
Map<String,org.xcmis.spi.model.Property<?>> properties,
org.xcmis.spi.ContentStream content,
List<org.xcmis.spi.model.AccessControlEntry> acl,
Collection<org.xcmis.spi.PolicyData> policies) |
org.xcmis.spi.DocumentData |
checkout() |
void |
delete()
Delete current object.
|
protected org.xcmis.spi.model.Property<?> |
doGetProperty(org.xcmis.spi.model.PropertyDefinition<?> definition) |
protected void |
doSetProperty(org.xcmis.spi.model.Property<?> property)
Update properties, skip on-create and read-only properties
|
boolean |
equals(Object obj) |
List<org.xcmis.spi.model.AccessControlEntry> |
getACL(boolean onlyBasicPermissions) |
org.xcmis.spi.model.BaseType |
getBaseType() |
String |
getChangeToken() |
org.xcmis.spi.ContentStream |
getContentStream() |
org.xcmis.spi.ContentStream |
getContentStream(String streamId) |
String |
getContentStreamFileName() |
protected String |
getContentStreamId() |
protected long |
getContentStreamLength() |
String |
getContentStreamMimeType() |
String |
getCreatedBy() |
Calendar |
getCreationDate() |
Calendar |
getLastModificationDate() |
String |
getLastModifiedBy() |
String |
getName() |
String |
getObjectId() |
org.xcmis.spi.FolderData |
getParent() |
Collection<org.xcmis.spi.FolderData> |
getParents() |
Collection<org.xcmis.spi.PolicyData> |
getPolicies() |
Map<String,org.xcmis.spi.model.Property<?>> |
getProperties() |
Map<String,org.xcmis.spi.model.Property<?>> |
getProperties(org.xcmis.spi.PropertyFilter filter) |
org.xcmis.spi.model.Property<?> |
getProperty(String id) |
org.xcmis.spi.ItemsIterator<org.xcmis.spi.RelationshipData> |
getRelationships(org.xcmis.spi.model.RelationshipDirection direction,
org.xcmis.spi.model.TypeDefinition type,
boolean includeSubRelationshipTypes) |
org.xcmis.spi.model.TypeDefinition |
getTypeDefinition() |
String |
getTypeId() |
String |
getVersionLabel() |
String |
getVersionSeriesCheckedOutBy() |
String |
getVersionSeriesCheckedOutId() |
String |
getVersionSeriesId() |
boolean |
hasContent() |
int |
hashCode() |
boolean |
isLatestMajorVersion() |
boolean |
isLatestVersion() |
boolean |
isMajorVersion() |
boolean |
isPWC() |
boolean |
isVersionSeriesCheckedOut() |
void |
removePolicy(org.xcmis.spi.PolicyData policy) |
protected void |
save() |
void |
setACL(List<org.xcmis.spi.model.AccessControlEntry> aces) |
void |
setContentStream(org.xcmis.spi.ContentStream contentStream) |
void |
setProperties(Map<String,org.xcmis.spi.model.Property<?>> properties) |
void |
setProperty(org.xcmis.spi.model.Property<?> property) |
public DocumentVersion(org.exoplatform.ecms.xcmis.sp.JcrNodeEntry jcrEntry)
public void applyPolicy(org.xcmis.spi.PolicyData policy)
applyPolicy in interface org.xcmis.spi.ObjectDatapublic void cancelCheckout()
throws org.xcmis.spi.VersioningException,
org.xcmis.spi.StorageException
cancelCheckout in interface org.xcmis.spi.DocumentDataorg.xcmis.spi.VersioningExceptionorg.xcmis.spi.StorageExceptionpublic org.xcmis.spi.DocumentData checkin(boolean major,
String checkinComment,
Map<String,org.xcmis.spi.model.Property<?>> properties,
org.xcmis.spi.ContentStream content,
List<org.xcmis.spi.model.AccessControlEntry> acl,
Collection<org.xcmis.spi.PolicyData> policies)
throws org.xcmis.spi.StorageException
checkin in interface org.xcmis.spi.DocumentDataorg.xcmis.spi.StorageExceptionpublic org.xcmis.spi.DocumentData checkout()
throws org.xcmis.spi.VersioningException,
org.xcmis.spi.StorageException
checkout in interface org.xcmis.spi.DocumentDataorg.xcmis.spi.VersioningExceptionorg.xcmis.spi.StorageExceptionpublic List<org.xcmis.spi.model.AccessControlEntry> getACL(boolean onlyBasicPermissions)
getACL in interface org.xcmis.spi.ObjectDatapublic String getName()
getName in interface org.xcmis.spi.ObjectDatapublic org.xcmis.spi.FolderData getParent()
throws org.xcmis.spi.ConstraintException
getParent in interface org.xcmis.spi.ObjectDataorg.xcmis.spi.ConstraintExceptionpublic Collection<org.xcmis.spi.FolderData> getParents()
getParents in interface org.xcmis.spi.ObjectDatapublic Collection<org.xcmis.spi.PolicyData> getPolicies()
getPolicies in interface org.xcmis.spi.ObjectDatapublic org.xcmis.spi.ItemsIterator<org.xcmis.spi.RelationshipData> getRelationships(org.xcmis.spi.model.RelationshipDirection direction,
org.xcmis.spi.model.TypeDefinition type,
boolean includeSubRelationshipTypes)
getRelationships in interface org.xcmis.spi.ObjectDatapublic String getVersionLabel()
getVersionLabel in interface org.xcmis.spi.DocumentDatapublic String getVersionSeriesCheckedOutBy()
getVersionSeriesCheckedOutBy in interface org.xcmis.spi.DocumentDatapublic String getVersionSeriesCheckedOutId()
getVersionSeriesCheckedOutId in interface org.xcmis.spi.DocumentDatapublic boolean isLatestVersion()
isLatestVersion in interface org.xcmis.spi.DocumentDatapublic void removePolicy(org.xcmis.spi.PolicyData policy)
removePolicy in interface org.xcmis.spi.ObjectDatapublic void setACL(List<org.xcmis.spi.model.AccessControlEntry> aces)
setACL in interface org.xcmis.spi.ObjectDatapublic void setContentStream(org.xcmis.spi.ContentStream contentStream)
throws IOException,
org.xcmis.spi.VersioningException,
org.xcmis.spi.StorageException
setContentStream in interface org.xcmis.spi.DocumentDataIOExceptionorg.xcmis.spi.VersioningExceptionorg.xcmis.spi.StorageExceptionpublic void setProperties(Map<String,org.xcmis.spi.model.Property<?>> properties) throws org.xcmis.spi.NameConstraintViolationException, org.xcmis.spi.VersioningException
setProperties in interface org.xcmis.spi.ObjectDataorg.xcmis.spi.NameConstraintViolationExceptionorg.xcmis.spi.VersioningExceptionpublic void setProperty(org.xcmis.spi.model.Property<?> property)
throws org.xcmis.spi.VersioningException
setProperty in interface org.xcmis.spi.ObjectDataorg.xcmis.spi.VersioningExceptionpublic void delete()
throws org.xcmis.spi.StorageException
org.xcmis.spi.StorageException - if operation can't be persisted in back-endprotected void save()
public org.xcmis.spi.ContentStream getContentStream()
throws IOException
getContentStream in interface org.xcmis.spi.DocumentDataIOExceptionpublic org.xcmis.spi.ContentStream getContentStream(String streamId) throws IOException
getContentStream in interface org.xcmis.spi.ObjectDataIOExceptionpublic String getContentStreamMimeType()
getContentStreamMimeType in interface org.xcmis.spi.DocumentDatapublic Calendar getCreationDate()
getCreationDate in interface org.xcmis.spi.ObjectDatapublic Calendar getLastModificationDate()
getLastModificationDate in interface org.xcmis.spi.ObjectDatapublic String getVersionSeriesId()
getVersionSeriesId in interface org.xcmis.spi.DocumentDatapublic boolean hasContent()
hasContent in interface org.xcmis.spi.DocumentDatapublic boolean isLatestMajorVersion()
isLatestMajorVersion in interface org.xcmis.spi.DocumentDatapublic boolean isMajorVersion()
isMajorVersion in interface org.xcmis.spi.DocumentDatapublic boolean isPWC()
isPWC in interface org.xcmis.spi.DocumentDatapublic boolean isVersionSeriesCheckedOut()
isVersionSeriesCheckedOut in interface org.xcmis.spi.DocumentDataprotected long getContentStreamLength()
protected String getContentStreamId()
null
otherwisepublic String getContentStreamFileName()
null otherwisepublic String getObjectId()
getObjectId in interface org.xcmis.spi.ObjectDatapublic void accept(org.xcmis.spi.ObjectDataVisitor visitor)
accept in interface org.xcmis.spi.ObjectDatapublic org.xcmis.spi.model.BaseType getBaseType()
getBaseType in interface org.xcmis.spi.ObjectDatapublic String getChangeToken()
getChangeToken in interface org.xcmis.spi.ObjectDatapublic String getCreatedBy()
getCreatedBy in interface org.xcmis.spi.ObjectDatapublic String getLastModifiedBy()
getLastModifiedBy in interface org.xcmis.spi.ObjectDatapublic Map<String,org.xcmis.spi.model.Property<?>> getProperties()
getProperties in interface org.xcmis.spi.ObjectDatapublic Map<String,org.xcmis.spi.model.Property<?>> getProperties(org.xcmis.spi.PropertyFilter filter)
getProperties in interface org.xcmis.spi.ObjectDatapublic org.xcmis.spi.model.Property<?> getProperty(String id)
getProperty in interface org.xcmis.spi.ObjectDatapublic org.xcmis.spi.model.TypeDefinition getTypeDefinition()
getTypeDefinition in interface org.xcmis.spi.ObjectDatapublic String getTypeId()
getTypeId in interface org.xcmis.spi.ObjectDataprotected org.xcmis.spi.model.Property<?> doGetProperty(org.xcmis.spi.model.PropertyDefinition<?> definition)
protected void doSetProperty(org.xcmis.spi.model.Property<?> property)
throws org.xcmis.spi.NameConstraintViolationException
property - property to be updatedorg.xcmis.spi.NameConstraintViolationExceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.