org.gcube.portlets.user.homelibrary.home
Interface HomeManagerFactory


public interface HomeManagerFactory

Manage the HomeManagers.

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

Method Summary
 boolean exists(java.lang.String scope)
          Check if the specified scope exists.
 HomeLibraryManager getHomeLibraryManager()
          Return the HomeLibraryManagerInstance.
 HomeManager getHomeManager(GCUBEScope scope)
          Retrieves an HomeManager for the given GCube's scope.
 java.util.List<java.lang.String> listScopes()
          List the actuals scopes.
 

Method Detail

getHomeManager

HomeManager getHomeManager(GCUBEScope scope)
                           throws InternalErrorException
Retrieves an HomeManager for the given GCube's scope.

Parameters:
scope - the HomeManager's scope.
Returns:
the HomeManager.
Throws:
InternalErrorException - if an error occurs.

listScopes

java.util.List<java.lang.String> listScopes()
                                            throws InternalErrorException
List the actuals scopes.

Returns:
the scopes list.
Throws:
InternalErrorException - if an error occurs.

exists

boolean exists(java.lang.String scope)
               throws InternalErrorException
Check if the specified scope exists.

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

getHomeLibraryManager

HomeLibraryManager getHomeLibraryManager()
                                         throws InternalErrorException
Return the HomeLibraryManagerInstance.

Returns:
Throws:
InternalErrorException