public class DocumentImpl extends AbstractMultiFilingImpl implements Document
Modifier and Type | Field and Description |
---|---|
static int |
IMG_HEIGHT |
static int |
IMG_WIDTH |
static String |
RENDITION_MIME_TYPE |
static String |
RENDITION_SUFFIX |
fParents
fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fObjStore, fProperties, fRepositoryId, fTypeId
PATH_SEPARATOR
Modifier and Type | Method and Description |
---|---|
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 do a document.
|
protected boolean |
testRenditionFilterForImage(String[] formats) |
addParent, getParents, getParents, getPathSegment, hasParent, move, removeParent, rename
createSystemBasePropertiesWhenCreated, getAcl, getAclId, getAllowableActions, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getTypeId, persist, setAclId, setCreatedAt, setCreatedBy, setCustomProperties, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, updateSystemBasePropertiesWhenModified
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getTypeId, persist, rename, setCreatedAt, setCreatedBy, setCustomProperties, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModified
addParent, getPathSegment, removeParent
getParents, hasParent, move
public static final int IMG_HEIGHT
public static final int IMG_WIDTH
public static final String RENDITION_MIME_TYPE
public static final String RENDITION_SUFFIX
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 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
protected boolean testRenditionFilterForImage(String[] formats)
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.