it.sistematica.isharedoc.opencmis.indatabase.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

Nested Class Summary
static class Children.ChildrenResult
           
 
Method Summary
 Children.ChildrenResult getChildren(int maxItems, int skipCount, java.lang.String user)
          get all the children of this folder.
 Children.ChildrenResult 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

Children.ChildrenResult 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

Children.ChildrenResult 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