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, secondaryTypeIds
PATH_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, updateSystemBasePropertiesWhenModified
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAppliedPolicy, 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, updateSystemBasePropertiesWhenModified
public DocumentVersionImpl(String repositoryId, VersionedDocument container, ContentStream content, VersioningState verState)
public void setContent(ContentStream content, boolean mustPersist)
Content
setContent
in interface Content
content
- 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)
Content
appendContent
in interface Content
content
- content to be assigned to the document.public void setCheckinComment(String comment)
setCheckinComment
in interface Version
public String getCheckinComment()
getCheckinComment
in interface Version
public void commit(boolean isMajor)
Version
public ContentStream getContent(long offset, long length)
Content
getContent
in interface Content
public VersionedDocument getParentDocument()
getParentDocument
in interface Version
public void fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
fillProperties
in interface StoredObject
fillProperties
in class StoredObjectImpl
public int getAclId()
StoredObject
getAclId
in interface StoredObject
getAclId
in class StoredObjectImpl
public void setAclId(int id)
setAclId
in class StoredObjectImpl
public List<String> getParentIds()
Filing
getParentIds
in interface Filing
public String getPathSegment()
Filing
getPathSegment
in interface Filing
public boolean hasContent()
Content
hasContent
in interface Content
public boolean hasParent()
Filing
public String getVersionLabel()
getVersionLabel
in interface Version
public void addParentId(String parentId)
MultiFiling
addParentId
in interface MultiFiling
parentId
- id of parent folder to be added.public void removeParentId(String parentId)
MultiFiling
removeParentId
in interface MultiFiling
parentId
- id of parent folder to be removed.Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.