|
||||||||||
| 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 java.util.Set<java.lang.String> |
CHECKOUT_SKIP
|
protected org.exoplatform.ecms.xcmis.sp.JcrNodeEntry |
entry
|
protected IndexListener |
indexListener
|
| Constructor Summary | |
|---|---|
DocumentVersion(org.exoplatform.ecms.xcmis.sp.JcrNodeEntry jcrEntry,
IndexListener indexListener)
|
|
| 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,
java.lang.String checkinComment,
java.util.Map<java.lang.String,org.xcmis.spi.model.Property<?>> properties,
org.xcmis.spi.ContentStream content,
java.util.List<org.xcmis.spi.model.AccessControlEntry> acl,
java.util.Collection<org.xcmis.spi.PolicyData> policies)
|
org.xcmis.spi.DocumentData |
checkout()
|
protected 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(java.lang.Object obj)
|
java.util.List<org.xcmis.spi.model.AccessControlEntry> |
getACL(boolean onlyBasicPermissions)
|
org.xcmis.spi.model.BaseType |
getBaseType()
|
java.lang.String |
getChangeToken()
|
org.xcmis.spi.ContentStream |
getContentStream()
|
org.xcmis.spi.ContentStream |
getContentStream(java.lang.String streamId)
|
protected long |
getContentStreamLength()
|
java.lang.String |
getContentStreamMimeType()
|
java.lang.String |
getCreatedBy()
|
java.util.Calendar |
getCreationDate()
|
java.util.Calendar |
getLastModificationDate()
|
java.lang.String |
getLastModifiedBy()
|
java.lang.String |
getName()
|
java.lang.String |
getObjectId()
|
org.xcmis.spi.FolderData |
getParent()
|
java.util.Collection<org.xcmis.spi.FolderData> |
getParents()
|
java.util.Collection<org.xcmis.spi.PolicyData> |
getPolicies()
|
java.util.Map<java.lang.String,org.xcmis.spi.model.Property<?>> |
getProperties()
|
java.util.Map<java.lang.String,org.xcmis.spi.model.Property<?>> |
getProperties(org.xcmis.spi.PropertyFilter filter)
|
org.xcmis.spi.model.Property<?> |
getProperty(java.lang.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()
|
java.lang.String |
getTypeId()
|
java.lang.String |
getVersionLabel()
|
java.lang.String |
getVersionSeriesCheckedOutBy()
|
java.lang.String |
getVersionSeriesCheckedOutId()
|
java.lang.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(java.util.List<org.xcmis.spi.model.AccessControlEntry> aces)
|
void |
setContentStream(org.xcmis.spi.ContentStream contentStream)
|
void |
setProperties(java.util.Map<java.lang.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, getObjectId, getProperties, getProperties, getProperty, getTypeDefinition, getTypeId |
| Field Detail |
|---|
protected static final java.util.Set<java.lang.String> CHECKOUT_SKIP
protected IndexListener indexListener
protected org.exoplatform.ecms.xcmis.sp.JcrNodeEntry entry
| Constructor Detail |
|---|
public DocumentVersion(org.exoplatform.ecms.xcmis.sp.JcrNodeEntry jcrEntry,
IndexListener indexListener)
| 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,
java.lang.String checkinComment,
java.util.Map<java.lang.String,org.xcmis.spi.model.Property<?>> properties,
org.xcmis.spi.ContentStream content,
java.util.List<org.xcmis.spi.model.AccessControlEntry> acl,
java.util.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 java.util.List<org.xcmis.spi.model.AccessControlEntry> getACL(boolean onlyBasicPermissions)
getACL in interface org.xcmis.spi.ObjectDatapublic java.lang.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 java.util.Collection<org.xcmis.spi.FolderData> getParents()
getParents in interface org.xcmis.spi.ObjectDatapublic java.util.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 java.lang.String getVersionLabel()
getVersionLabel in interface org.xcmis.spi.DocumentDatapublic java.lang.String getVersionSeriesCheckedOutBy()
getVersionSeriesCheckedOutBy in interface org.xcmis.spi.DocumentDatapublic java.lang.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(java.util.List<org.xcmis.spi.model.AccessControlEntry> aces)
setACL in interface org.xcmis.spi.ObjectData
public void setContentStream(org.xcmis.spi.ContentStream contentStream)
throws java.io.IOException,
org.xcmis.spi.VersioningException,
org.xcmis.spi.StorageException
setContentStream in interface org.xcmis.spi.DocumentDatajava.io.IOException
org.xcmis.spi.VersioningException
org.xcmis.spi.StorageException
public void setProperties(java.util.Map<java.lang.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
protected 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 java.io.IOException
getContentStream in interface org.xcmis.spi.DocumentDatajava.io.IOException
public org.xcmis.spi.ContentStream getContentStream(java.lang.String streamId)
throws java.io.IOException
getContentStream in interface org.xcmis.spi.ObjectDatajava.io.IOExceptionpublic java.lang.String getContentStreamMimeType()
getContentStreamMimeType in interface org.xcmis.spi.DocumentDatapublic java.util.Calendar getCreationDate()
getCreationDate in interface org.xcmis.spi.ObjectDatapublic java.util.Calendar getLastModificationDate()
getLastModificationDate in interface org.xcmis.spi.ObjectDatapublic java.lang.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()
public void accept(org.xcmis.spi.ObjectDataVisitor visitor)
accept in interface org.xcmis.spi.ObjectDatapublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic org.xcmis.spi.model.BaseType getBaseType()
getBaseType in interface org.xcmis.spi.ObjectDatapublic java.lang.String getChangeToken()
getChangeToken in interface org.xcmis.spi.ObjectDatapublic java.lang.String getCreatedBy()
getCreatedBy in interface org.xcmis.spi.ObjectDatapublic java.lang.String getLastModifiedBy()
getLastModifiedBy in interface org.xcmis.spi.ObjectDatapublic java.lang.String getObjectId()
getObjectId in interface org.xcmis.spi.ObjectDatapublic java.util.Map<java.lang.String,org.xcmis.spi.model.Property<?>> getProperties()
getProperties in interface org.xcmis.spi.ObjectDatapublic java.util.Map<java.lang.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(java.lang.String id)
getProperty in interface org.xcmis.spi.ObjectDatapublic org.xcmis.spi.model.TypeDefinition getTypeDefinition()
getTypeDefinition in interface org.xcmis.spi.ObjectDatapublic java.lang.String getTypeId()
getTypeId in interface org.xcmis.spi.ObjectDatapublic int hashCode()
hashCode in class java.lang.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 | |||||||||