public class DocumentImpl extends AbstractMultiFilingImpl implements Document
| Modifier and Type | Field and Description |
|---|---|
static int |
THUMBNAIL_SIZE |
fParentsdescription, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fObjStore, fProperties, fRepositoryId, fTypeId, ICON_SIZE, policyIds, RENDITION_MIME_TYPE_JPEG, RENDITION_MIME_TYPE_PNG, RENDITION_SUFFIX, secondaryTypeIdsPATH_SEPARATOR| Modifier and Type | Method and Description |
|---|---|
void |
appendContent(ContentStream content)
Append content to an existing content stream.
|
void |
fillProperties(Map<String,PropertyData<?>> properties,
BindingsObjectFactory objFactory,
List<String> requestedIds) |
ContentStream |
getContent(long offset,
long length)
retrieve the content of a document
|
ContentStream |
getRenditionContent(String streamId,
long offset,
long length)
get the rendition of this object
|
List<RenditionData> |
getRenditions(String renditionFilter,
long maxItems,
long skipCount)
get the rendition this objects supports
|
boolean |
hasContent()
return true if this object has content or false if there is no content
attached.
|
boolean |
hasRendition(String user)
check if the document can generate a renditions and rendition is visible for user
|
void |
setContent(ContentStream content,
boolean mustPersist)
Assign content to a document.
|
addParent, getParents, getParents, getPathSegment, hasParent, move, removeParent, renameaddAppliedPolicy, createSystemBasePropertiesWhenCreated, getAcl, getAclId, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getIconFromResourceDir, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, persist, removePolicy, setAclId, setAppliedPolicies, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, testRenditionFilterForImage, updateSystemBasePropertiesWhenModifiedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAppliedPolicy, createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, persist, removePolicy, rename, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModifiedaddParent, getPathSegment, removeParentgetParents, hasParent, movepublic static final int THUMBNAIL_SIZE
public ContentStream getContent(long offset, long length)
ContentgetContent in interface Contentpublic 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 fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
fillProperties in interface StoredObjectfillProperties in class StoredObjectImplpublic boolean hasContent()
ContenthasContent in interface Contentpublic List<RenditionData> getRenditions(String renditionFilter, long maxItems, long skipCount)
StoredObjectgetRenditions in interface StoredObjectgetRenditions in class StoredObjectImplpublic ContentStream getRenditionContent(String streamId, long offset, long length)
StoredObjectgetRenditionContent in interface StoredObjectgetRenditionContent in class StoredObjectImplstreamId - stream if of renditionoffset - offset in rendition contentlength - length of rendition contentpublic boolean hasRendition(String user)
StoredObjecthasRendition in interface StoredObjecthasRendition in class StoredObjectImplCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.