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

All Superinterfaces:
WorkspaceAreaItem, WorkspaceFolder

public interface Workspace
extends WorkspaceFolder

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

Method Summary
 Basket createBasket(java.lang.String basketName, java.lang.String description)
          Create a new basket into this workspace.
 Workspace createWorkspace(java.lang.String workspaceName, java.lang.String description)
          Create a new workspace into this workspace.
 java.util.List<WorkspaceFolder> getChildren()
          Return this item children.
 
Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder
exists, find, getParent, listFolders
 
Methods inherited from interface org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceAreaItem
cloneItem, getCapabilities, getCreationTime, getDescription, getId, getLastAction, getLastModificationTime, getName, getOwner, getPath, getProperties, getType, isRoot, move, remove, removeChild, rename, setDescription
 

Method Detail

getChildren

java.util.List<WorkspaceFolder> getChildren()
                                            throws InternalErrorException
Return this item children.

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

createWorkspace

Workspace createWorkspace(java.lang.String workspaceName,
                          java.lang.String description)
                          throws InternalErrorException,
                                 InsufficientPrivilegesException,
                                 ItemAlreadyExistException
Create a new workspace into this workspace.

Parameters:
workspaceName - the workspace name.
description - the workspace description.
Returns:
the new workspace.
Throws:
InternalErrorException - if an internal error occurs.
InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.
ItemAlreadyExistException - if an item with the specified name already exists in this workspace.

createBasket

Basket createBasket(java.lang.String basketName,
                    java.lang.String description)
                    throws InternalErrorException,
                           InsufficientPrivilegesException,
                           ItemAlreadyExistException
Create a new basket into this workspace.

Parameters:
basketName - the basket name.
description - the basket description
Returns:
the new basket.
Throws:
InternalErrorException - if an internal error occurs.
InsufficientPrivilegesException - if the user don't have sufficient privileges to perform this operation.
ItemAlreadyExistException - if an item with the specified name already exists in this workspace.