org.gcube.portlets.user.homelibrary.home
Class HomeLibrary

java.lang.Object
  extended by org.gcube.portlets.user.homelibrary.home.HomeLibrary

public class HomeLibrary
extends java.lang.Object

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

Field Summary
static java.lang.String HOME_LIBRARY_PERSISTENCE_DIR_VARIABLE_NAME
          Home Library persistence dir variable name.
static java.lang.String WORKSPACE_AREA_ATTRIBUTE_NAME
          Workspace Area attribute name in D4ScienceSession.
 
Constructor Summary
HomeLibrary()
           
 
Method Summary
static HomeManagerFactory getHomeManagerFactory()
          Return the HomeManagerFactory.
static HomeManagerFactory getHomeManagerFactory(java.lang.String persistenceRoot)
          Return an instance of HomeManager factory for the given path.
static WorkspaceArea getUserWorkspaceArea(ASLSession session)
          Return the WorkspaceArea for the user in session.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOME_LIBRARY_PERSISTENCE_DIR_VARIABLE_NAME

public static final java.lang.String HOME_LIBRARY_PERSISTENCE_DIR_VARIABLE_NAME
Home Library persistence dir variable name.

See Also:
Constant Field Values

WORKSPACE_AREA_ATTRIBUTE_NAME

public static final java.lang.String WORKSPACE_AREA_ATTRIBUTE_NAME
Workspace Area attribute name in D4ScienceSession.

See Also:
Constant Field Values
Constructor Detail

HomeLibrary

public HomeLibrary()
Method Detail

getHomeManagerFactory

public static HomeManagerFactory getHomeManagerFactory(java.lang.String persistenceRoot)
                                                throws InternalErrorException
Return an instance of HomeManager factory for the given path.

Parameters:
persistenceRoot - the persistence root.
Returns:
the HomeManagerFactory.
Throws:
InternalErrorException - if an error occurs.

getHomeManagerFactory

public static HomeManagerFactory getHomeManagerFactory()
                                                throws InternalErrorException
Return the HomeManagerFactory.

Returns:
the HomeManagerFactory.
Throws:
InternalErrorException - if an error occurs.

getUserWorkspaceArea

public static WorkspaceArea getUserWorkspaceArea(ASLSession session)
                                          throws InternalErrorException,
                                                 HomeNotFoundException,
                                                 WorkspaceNotFoundException
Return the WorkspaceArea for the user in session.

Parameters:
session - the d4science session.
Returns:
the user WorkspaceArea.
Throws:
InternalErrorException - if an error occurs.
HomeNotFoundException - if the user home is not found.
WorkspaceNotFoundException - if the user workspace is not found.