public class DocumentImpl extends AbstractMultiFilingImpl implements Document
Modifier and Type | Field and Description |
---|---|
static int |
THUMBNAIL_SIZE |
fParents
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fObjStore, fProperties, fRepositoryId, fTypeId, ICON_SIZE, RENDITION_MIME_TYPE_JPEG, RENDITION_MIME_TYPE_PNG, RENDITION_SUFFIX, secondaryTypeIds
PATH_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, rename
createSystemBasePropertiesWhenCreated, getAcl, getAclId, getAllowableActions, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getIconFromResourceDir, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, persist, setAclId, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, testRenditionFilterForImage, updateSystemBasePropertiesWhenModified
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, persist, rename, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModified
addParent, getPathSegment, removeParent
getParents, hasParent, move
public static final int THUMBNAIL_SIZE
public ContentStream getContent(long offset, long length)
Content
getContent
in interface Content
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 fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
fillProperties
in interface StoredObject
fillProperties
in class StoredObjectImpl
public boolean hasContent()
Content
hasContent
in interface Content
public List<RenditionData> getRenditions(String renditionFilter, long maxItems, long skipCount)
StoredObject
getRenditions
in interface StoredObject
getRenditions
in class StoredObjectImpl
public ContentStream getRenditionContent(String streamId, long offset, long length)
StoredObject
getRenditionContent
in interface StoredObject
getRenditionContent
in class StoredObjectImpl
streamId
- stream if of renditionoffset
- offset in rendition contentlength
- length of rendition contentpublic boolean hasRendition(String user)
StoredObject
hasRendition
in interface StoredObject
hasRendition
in class StoredObjectImpl
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.