org.apache.chemistry.opencmis.inmemory.storedobj.impl
Class FolderImpl
java.lang.Object
org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoredObjectImpl
org.apache.chemistry.opencmis.inmemory.storedobj.impl.AbstractSingleFilingImpl
org.apache.chemistry.opencmis.inmemory.storedobj.impl.FolderImpl
- All Implemented Interfaces:
- Children, Filing, Folder, SingleFiling, StoredObject
public class FolderImpl
- extends AbstractSingleFilingImpl
- implements Folder
Fields inherited from interface org.apache.chemistry.opencmis.inmemory.storedobj.api.Filing |
PATH_SEPARATOR |
Methods inherited from class org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoredObjectImpl |
createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getTypeId, persist, setCreatedAt, setCreatedBy, setCustomProperties, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setSystemBasePropertiesWhenCreatedDirect, setTypeId, updateSystemBasePropertiesWhenModified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.chemistry.opencmis.inmemory.storedobj.api.StoredObject |
createSystemBasePropertiesWhenCreated, getAcl, getAllowableActions, getChangeToken, getCreatedAt, getCreatedBy, getId, getModifiedAt, getModifiedBy, getName, getObjectRelationships, getProperties, getRepositoryId, getTypeId, persist, rename, setCreatedAt, setCreatedBy, setCustomProperties, setModifiedAtNow, setModifiedBy, setName, setProperties, setRepositoryId, setTypeId, updateSystemBasePropertiesWhenModified |
FolderImpl
public FolderImpl(ObjectStoreImpl objStore,
java.lang.String name,
Folder parent)
addChildFolder
public void addChildFolder(Folder folder)
addChildDocument
public void addChildDocument(Document doc)
addChildDocument
public void addChildDocument(VersionedDocument doc)
getChildren
public java.util.List<StoredObject> getChildren(int maxItems,
int skipCount,
java.lang.String user)
- Description copied from interface:
Children
- get all the children of this folder. To support paging an initial offset
and a maximum number of children to retrieve can be passed
- Specified by:
getChildren
in interface Children
- Parameters:
maxItems
- max. number of items to returnskipCount
- initial offset where to start fetching
- Returns:
- list of children objects
getFolderChildren
public java.util.List<Folder> getFolderChildren(int maxItems,
int skipCount,
java.lang.String user)
- Description copied from interface:
Children
- get all the children of this folder which are folders. To support paging
an initial offset and a maximum number of childrent to retrieve can be
passed.
- Specified by:
getFolderChildren
in interface Children
- Parameters:
maxItems
- max. number of items to returnskipCount
- initial offset where to start fetching
- Returns:
- list of children folders
hasChild
public boolean hasChild(java.lang.String name)
- Description copied from interface:
Children
- indicate if a child with the given name exists in this folder
- Specified by:
hasChild
in interface Children
- Parameters:
name
- name to check
- Returns:
- true if the name exists in the folderas child, false otherwise
fillProperties
public void fillProperties(java.util.Map<java.lang.String,PropertyData<?>> properties,
BindingsObjectFactory objFactory,
java.util.List<java.lang.String> requestedIds)
- Specified by:
fillProperties
in interface StoredObject
- Overrides:
fillProperties
in class StoredObjectImpl
moveChildDocument
public void moveChildDocument(StoredObject so,
Folder oldParent,
Folder newParent)
getAllowedChildObjectTypeIds
public java.util.List<java.lang.String> getAllowedChildObjectTypeIds()
- Description copied from interface:
Folder
- return a list of allowed types of children in this folder
- Specified by:
getAllowedChildObjectTypeIds
in interface Folder
- Returns:
Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.