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 |
fParentsfAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fObjStore, fProperties, fRepositoryId, fTypeIdPATH_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, renamecreateSystemBasePropertiesWhenCreated, 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, updateSystemBasePropertiesWhenModifiedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getTypeId, persist, rename, setCreatedAt, setCreatedBy, setCustomProperties, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModifiedaddParent, getPathSegment, removeParentgetParents, hasParent, movepublic 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)
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 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 StoredObjectImplprotected boolean testRenditionFilterForImage(String[] formats)
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.