|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.ecms.xcmis.sp.DocumentVersion
public class DocumentVersion
| Field Summary | |
|---|---|
protected static Set<String> |
CHECKOUT_SKIP
|
protected org.exoplatform.ecms.xcmis.sp.JcrNodeEntry |
entry
|
| Constructor Summary | |
|---|---|
DocumentVersion(org.exoplatform.ecms.xcmis.sp.JcrNodeEntry jcrEntry)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xcmis.spi.ObjectData |
|---|
accept, getBaseType, getChangeToken, getCreatedBy, getLastModifiedBy, getProperties, getProperties, getProperty, getTypeDefinition, getTypeId |
| Field Detail |
|---|
protected static final Set<String> CHECKOUT_SKIP
protected org.exoplatform.ecms.xcmis.sp.JcrNodeEntry entry
| Constructor Detail |
|---|
public DocumentVersion(org.exoplatform.ecms.xcmis.sp.JcrNodeEntry jcrEntry)
| Method Detail |
|---|
public void applyPolicy(org.xcmis.spi.PolicyData policy)
applyPolicy in interface org.xcmis.spi.ObjectData
public void cancelCheckout()
throws org.xcmis.spi.VersioningException,
org.xcmis.spi.StorageException
cancelCheckout in interface org.xcmis.spi.DocumentDataorg.xcmis.spi.VersioningException
org.xcmis.spi.StorageException
public 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.StorageException
public org.xcmis.spi.DocumentData checkout()
throws org.xcmis.spi.VersioningException,
org.xcmis.spi.StorageException
checkout in interface org.xcmis.spi.DocumentDataorg.xcmis.spi.VersioningException
org.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.ObjectData
public 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.ObjectData
public 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.ObjectData
public void setContentStream(org.xcmis.spi.ContentStream contentStream)
throws IOException,
org.xcmis.spi.VersioningException,
org.xcmis.spi.StorageException
setContentStream in interface org.xcmis.spi.DocumentDataIOException
org.xcmis.spi.VersioningException
org.xcmis.spi.StorageException
public 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.NameConstraintViolationException
org.xcmis.spi.VersioningException
public void setProperty(org.xcmis.spi.model.Property<?> property)
throws org.xcmis.spi.VersioningException
setProperty in interface org.xcmis.spi.ObjectDataorg.xcmis.spi.VersioningException
public 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.DocumentDataIOException
public 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 boolean equals(Object obj)
equals in class Objectpublic 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.ObjectDatapublic int hashCode()
hashCode in class Objectprotected 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 updated
org.xcmis.spi.NameConstraintViolationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||