public class DocumentVersionImpl extends StoredObjectImpl implements DocumentVersion, MultiFiling
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fProperties, fRepositoryId, fTypeId, ICON_SIZE, policyIds, RENDITION_MIME_TYPE_JPEG, RENDITION_MIME_TYPE_PNG, RENDITION_SUFFIX, secondaryTypeIdsPATH_SEPARATOR| Constructor and Description |
|---|
DocumentVersionImpl(String repositoryId,
VersionedDocument container,
ContentStream content,
VersioningState verState) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParentId(String parentId)
Add parent folder to this document
|
void |
appendContent(ContentStream content)
Append content to an existing content stream.
|
void |
commit(boolean isMajor)
make the private working copy an official version.
|
void |
fillProperties(Map<String,PropertyData<?>> properties,
BindingsObjectFactory objFactory,
List<String> requestedIds) |
int |
getAclId()
get the Acl id of the stored object
|
String |
getCheckinComment() |
ContentStream |
getContent(long offset,
long length)
retrieve the content of a document
|
VersionedDocument |
getParentDocument() |
List<String> |
getParentIds()
return a list of parents the principal has access to.
|
String |
getPathSegment()
get the path segment of this object
|
String |
getVersionLabel() |
boolean |
hasContent()
return true if this object has content or false if there is no content
attached.
|
boolean |
hasParent()
usually true except for the root folder, optimized call that just tests
existence to provide information for AtomPub links (much cheaper than
calling getParents() and test for empty result.
|
boolean |
isMajor() |
boolean |
isPwc() |
void |
removeParentId(String parentId)
Remove parent from this object
|
void |
setAclId(int id) |
void |
setCheckinComment(String comment) |
void |
setContent(ContentStream content,
boolean mustPersist)
Assign content to a document.
|
addAppliedPolicy, createSystemBasePropertiesWhenCreated, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getIconFromResourceDir, getId, getModifiedAt, getModifiedBy, getName, getProperties, getRenditionContent, getRenditions, getRepositoryId, getSecondaryTypeIds, getTypeId, hasRendition, removePolicy, setAppliedPolicies, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setId, setModifiedAt, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, testRenditionFilterForImage, updateSystemBasePropertiesWhenModifiedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAppliedPolicy, createSystemBasePropertiesWhenCreated, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getId, getModifiedAt, getModifiedBy, getName, getProperties, getRenditionContent, getRenditions, getRepositoryId, getSecondaryTypeIds, getTypeId, hasRendition, removePolicy, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setId, setModifiedAt, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModifiedpublic DocumentVersionImpl(String repositoryId, VersionedDocument container, ContentStream content, VersioningState verState)
public void setContent(ContentStream content, boolean mustPersist)
ContentsetContent in interface Contentcontent - content to be assigned to the document.mustPersist - persist document (set to false if content is set during
creation of a document)public void appendContent(ContentStream content)
ContentappendContent in interface Contentcontent - content to be assigned to the document.public void setCheckinComment(String comment)
setCheckinComment in interface Versionpublic String getCheckinComment()
getCheckinComment in interface Versionpublic void commit(boolean isMajor)
Versionpublic ContentStream getContent(long offset, long length)
ContentgetContent in interface Contentpublic VersionedDocument getParentDocument()
getParentDocument in interface Versionpublic void fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
fillProperties in interface StoredObjectfillProperties in class StoredObjectImplpublic int getAclId()
StoredObjectgetAclId in interface StoredObjectgetAclId in class StoredObjectImplpublic void setAclId(int id)
setAclId in class StoredObjectImplpublic List<String> getParentIds()
FilinggetParentIds in interface Filingpublic String getPathSegment()
FilinggetPathSegment in interface Filingpublic boolean hasContent()
ContenthasContent in interface Contentpublic boolean hasParent()
Filingpublic String getVersionLabel()
getVersionLabel in interface Versionpublic void addParentId(String parentId)
MultiFilingaddParentId in interface MultiFilingparentId - id of parent folder to be added.public void removeParentId(String parentId)
MultiFilingremoveParentId in interface MultiFilingparentId - id of parent folder to be removed.Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.