public class FolderImpl extends AbstractSingleFilingImpl implements Folder
Children.ChildrenResultfParentdescription, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fObjStore, fProperties, fRepositoryId, fTypeId, ICON_SIZE, policyIds, RENDITION_MIME_TYPE_JPEG, RENDITION_MIME_TYPE_PNG, RENDITION_SUFFIX, secondaryTypeIdsPATH_SEPARATOR| Constructor and Description |
|---|
FolderImpl(ObjectStoreImpl objStore,
String name,
Folder parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildDocument(Document doc) |
void |
addChildDocument(VersionedDocument doc) |
void |
addChildFolder(Folder folder) |
void |
addChildItem(StoredObject item) |
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
|
Children.ChildrenResult |
getChildren(int maxItems,
int skipCount,
String user)
get all the children of this folder.
|
Children.ChildrenResult |
getFolderChildren(int maxItems,
int skipCount,
String user)
get all the children of this folder which are folders.
|
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 |
hasChild(String name)
indicate if a child with the given name exists in this folder
|
boolean |
hasRendition(String user)
check if the document can generate a renditions and rendition is visible for user
|
void |
moveChildDocument(StoredObject so,
Folder oldParent,
Folder newParent) |
getParent, getParents, getParents, getPath, hasParent, move, rename, setParentaddAppliedPolicy, createSystemBasePropertiesWhenCreated, getAcl, getAclId, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getIconFromResourceDir, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, persist, removePolicy, setAclId, setAppliedPolicies, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, testRenditionFilterForImage, updateSystemBasePropertiesWhenModifiedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParent, getPath, setParentgetParents, hasParent, moveaddAppliedPolicy, createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getAppliedPolicies, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, persist, removePolicy, rename, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModifiedpublic FolderImpl(ObjectStoreImpl objStore, String name, Folder parent)
public void addChildFolder(Folder folder)
public void addChildDocument(Document doc)
public void addChildDocument(VersionedDocument doc)
public void addChildItem(StoredObject item)
public Children.ChildrenResult getChildren(int maxItems, int skipCount, String user)
ChildrengetChildren in interface ChildrenmaxItems - max. number of items to returnskipCount - initial offset where to start fetchingpublic Children.ChildrenResult getFolderChildren(int maxItems, int skipCount, String user)
ChildrengetFolderChildren in interface ChildrenmaxItems - max. number of items to returnskipCount - initial offset where to start fetchingpublic boolean hasChild(String name)
Childrenpublic void fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
fillProperties in interface StoredObjectfillProperties in class StoredObjectImplpublic void moveChildDocument(StoredObject so, Folder oldParent, Folder newParent)
public 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 StoredObjectImplCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.