public class FolderImpl extends StoredObjectImpl implements Folder
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fProperties, fRepositoryId, fTypeId, policyIds, 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)
fill a passed map object with properties of this object.
|
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.
|
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
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 List<String> getAllowedChildObjectTypeIds()
Folder
getAllowedChildObjectTypeIds
in interface Folder
public boolean hasRendition(String user)
StoredObject
hasRendition
in interface StoredObject
hasRendition
in class StoredObjectImpl
user
- user requesting allowable actionspublic 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-2014 The Apache Software Foundation. All Rights Reserved.