public class FolderImpl extends StoredObjectImpl implements Folder
Modifier and Type | Field and Description |
---|---|
protected String |
parentId |
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fProperties, fRepositoryId, fTypeId, ICON_SIZE, policyIds, RENDITION_MIME_TYPE_JPEG, RENDITION_MIME_TYPE_PNG, RENDITION_SUFFIX, secondaryTypeIds
PATH_SEPARATOR
Constructor and Description |
---|
FolderImpl() |
FolderImpl(String name,
String parentId) |
Modifier and Type | Method and Description |
---|---|
void |
fillProperties(Map<String,PropertyData<?>> properties,
BindingsObjectFactory objFactory,
List<String> requestedIds) |
List<String> |
getAllowedChildObjectTypeIds()
return a list of allowed types of children in this folder
|
String |
getParentId()
get parent if of this folder
|
List<String> |
getParentIds()
return a list of parents the principal has access to.
|
String |
getPathSegment()
get the path segment of this object
|
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 |
hasParent()
usually true except for the root folder, optimized call that just tests
existence to provide information for AtomPub links (much cheaper than
calling getParents() and test for empty result.
|
boolean |
hasRendition(String user)
check if the document can generate a renditions and rendition is visible for user
|
void |
setParentId(String parentId)
set the parent id of a folder
|
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
protected String parentId
public void fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
fillProperties
in interface StoredObject
fillProperties
in class StoredObjectImpl
public List<String> getAllowedChildObjectTypeIds()
Folder
getAllowedChildObjectTypeIds
in interface Folder
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
public List<String> getParentIds()
Filing
getParentIds
in interface Filing
public boolean hasParent()
Filing
public String getParentId()
Folder
getParentId
in interface Folder
public String getPathSegment()
Filing
getPathSegment
in interface Filing
public void setParentId(String parentId)
Folder
setParentId
in interface Folder
parentId
- parent id of this folderCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.