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, secondaryTypeIdsPATH_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, updateSystemBasePropertiesWhenModifiedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAppliedPolicy, 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, updateSystemBasePropertiesWhenModifiedprotected String parentId
public void fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
fillProperties in interface StoredObjectfillProperties in class StoredObjectImplpublic List<String> getAllowedChildObjectTypeIds()
FoldergetAllowedChildObjectTypeIds in interface Folderpublic 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 StoredObjectImplpublic List<String> getParentIds()
FilinggetParentIds in interface Filingpublic boolean hasParent()
Filingpublic String getParentId()
FoldergetParentId in interface Folderpublic String getPathSegment()
FilinggetPathSegment in interface Filingpublic void setParentId(String parentId)
FoldersetParentId in interface FolderparentId - parent id of this folderCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.