org.apache.chemistry.opencmis.inmemory.storedobj.api
Interface Children

All Known Subinterfaces:
Folder
All Known Implementing Classes:
FolderImpl

public interface Children

A folder is a StoredObject that that has a path and children. Children can be folder or documents

Author:
Jens

Method Summary
 java.util.List<StoredObject> getChildren(int maxItems, int skipCount, java.lang.String user)
          get all the children of this folder.
 java.util.List<Folder> getFolderChildren(int maxItems, int skipCount, java.lang.String user)
          get all the children of this folder which are folders.
 boolean hasChild(java.lang.String name)
          indicate if a child with the given name exists in this folder
 

Method Detail

getChildren

java.util.List<StoredObject> getChildren(int maxItems,
                                         int skipCount,
                                         java.lang.String user)
get all the children of this folder. To support paging an initial offset and a maximum number of children to retrieve can be passed

Parameters:
maxItems - max. number of items to return
skipCount - initial offset where to start fetching
user -
Returns:
list of children objects

getFolderChildren

java.util.List<Folder> getFolderChildren(int maxItems,
                                         int skipCount,
                                         java.lang.String user)
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.

Parameters:
maxItems - max. number of items to return
skipCount - initial offset where to start fetching
user -
Returns:
list of children folders

hasChild

boolean hasChild(java.lang.String name)
indicate if a child with the given name exists in this folder

Parameters:
name - name to check
Returns:
true if the name exists in the folderas child, false otherwise


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.