public class FolderImpl extends AbstractSingleFilingImpl implements Folder
Children.ChildrenResult
fParent
description, fAclId, fCreatedAt, fCreatedBy, fId, fModifiedAt, fModifiedBy, fName, fObjStore, fProperties, fRepositoryId, fTypeId, ICON_SIZE, RENDITION_MIME_TYPE_JPEG, RENDITION_MIME_TYPE_PNG, RENDITION_SUFFIX, secondaryTypeIds
PATH_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, setParent
createSystemBasePropertiesWhenCreated, getAcl, getAclId, getAllowableActions, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getIconFromResourceDir, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, persist, setAclId, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, testRenditionFilterForImage, updateSystemBasePropertiesWhenModified
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParent, getPath, setParent
getParents, hasParent, move
createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getChangeToken, getCreatedAt, getCreatedBy, getDescription, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getSecondaryTypeIds, getTypeId, persist, rename, setCreatedAt, setCreatedBy, setCustomProperties, setDescription, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModified
public 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)
Children
getChildren
in interface Children
maxItems
- max. number of items to returnskipCount
- initial offset where to start fetchingpublic Children.ChildrenResult getFolderChildren(int maxItems, int skipCount, String user)
Children
getFolderChildren
in interface Children
maxItems
- max. number of items to returnskipCount
- initial offset where to start fetchingpublic boolean hasChild(String name)
Children
public void fillProperties(Map<String,PropertyData<?>> properties, BindingsObjectFactory objFactory, List<String> requestedIds)
fillProperties
in interface StoredObject
fillProperties
in class StoredObjectImpl
public void moveChildDocument(StoredObject so, Folder oldParent, Folder newParent)
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
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.