public class DocumentImpl extends FilingImpl implements Document
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fProperties, fRepositoryId, fTypeId, policyIds, secondaryTypeIds
PATH_SEPARATOR
Constructor and Description |
---|
DocumentImpl() |
Modifier and Type | Method and Description |
---|---|
void |
fillProperties(Map<String,PropertyData<?>> properties,
BindingsObjectFactory objFactory,
List<String> requestedIds)
fill a passed map object with properties of this object.
|
ContentStream |
getContent()
Retrieve the content of a document.
|
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)
Assign content to a document.
|
addParentId, getParentIds, getPathSegment, hasParent, removeParentId
addAppliedPolicy, createSystemBasePropertiesWhenCreated, getAclId, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getIconFromResourceDir, getId, getModifiedAt, getModifiedBy, getName, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, removePolicy, setAclId, 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, getAclId, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getId, getModifiedAt, getModifiedBy, getName, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, removePolicy, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setId, setModifiedAt, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModified
getParentIds, getPathSegment, hasParent
public ContentStream getContent()
Content
getContent
in interface Content
public void setContent(ContentStream content)
Content
setContent
in interface Content
content
- content to be assigned to the document.public void fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
StoredObject
fillProperties
in interface StoredObject
fillProperties
in class StoredObjectImpl
properties
- map to fillobjFactory
- object factory to create objectsrequestedIds
- list of property ids being requestedpublic boolean hasContent()
Content
hasContent
in interface Content
public boolean hasRendition(String user)
StoredObject
hasRendition
in interface StoredObject
hasRendition
in class StoredObjectImpl
user
- user requesting allowable actionsCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.