org.gcube.portlets.user.homelibrary.home.workspace
Interface WorkspaceFolder

All Superinterfaces:
WorkspaceAreaItem
All Known Subinterfaces:
Basket, Workspace

public interface WorkspaceFolder
extends WorkspaceAreaItem

Author:
Federico De Faveri defaveri@isti.cnr.it

Method Summary
 boolean exists(java.lang.String name)
          Check if an item with the specified name exists.
 WorkspaceAreaItem find(java.lang.String name)
          Get an item with the specified name.
 Workspace getParent()
          Return this item parent.
 java.util.List<WorkspaceFolder> listFolders()
          List all folders in this folder.
 
Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceAreaItem
cloneItem, getCapabilities, getChildren, getCreationTime, getDescription, getId, getLastAction, getLastModificationTime, getName, getOwner, getPath, getProperties, getType, isRoot, move, remove, removeChild, rename, setDescription
 

Method Detail

getParent

Workspace getParent()
                    throws InternalErrorException
Return this item parent.

Specified by:
getParent in interface WorkspaceAreaItem
Returns:
the parent.
Throws:
InternalErrorException - if an internal error occurs.

listFolders

java.util.List<WorkspaceFolder> listFolders()
List all folders in this folder.

Returns:
a folder list.

exists

boolean exists(java.lang.String name)
               throws InternalErrorException
Check if an item with the specified name exists.

Parameters:
name - the name to check.
Returns:
true if the item exists, false otherwise.
Throws:
InternalErrorException - if an error occurs.

find

WorkspaceAreaItem find(java.lang.String name)
                       throws InternalErrorException
Get an item with the specified name.

Parameters:
name - the item name to find.
Returns:
the item if is found, null otherwise.
Throws:
InternalErrorException - if an error occurs.