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(String scope)
          Check if the specified scope exists.
 HomeLibraryManager getHomeLibraryManager()
          Return the HomeLibraryManager instance.
 HomeManager getHomeManager()
          Retrieves an HomeManager for the given GCube's scope.
 HomeManager getHomeManager(String scope)
           
 void initialize(String persistenceFolder)
          Initialize the HomeManagerFactory instance.
 List<String> listInfrastructureScopes()
          Returns the scopes list from the infrastructure.
 List<String> listInfrastructureScopeUsers(String scope)
          Return the users list from the infrastructure for the specified scope.
 List<String> listScopes()
          List the actuals scopes.
 List<String> listUserScopes(String portalLogin)
          List the User scopes.
 void removeHomeManager()
          Remove the HomeManager for the specified scope.
 void shutdown()
          Shutdown the HomeManagerFactory.
 

Method Detail

initialize

void initialize(String persistenceFolder)
                throws InternalErrorException
Initialize the HomeManagerFactory instance.

Parameters:
persistenceFolder - the persistence folder.
Throws:
InternalErrorException - if an error occurs during the initialization.

getHomeManager

HomeManager getHomeManager()
                           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.

getHomeManager

HomeManager getHomeManager(String scope)
                           throws InternalErrorException
Throws:
InternalErrorException

listScopes

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

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

exists

boolean exists(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.

removeHomeManager

void removeHomeManager()
                       throws InternalErrorException
Remove the HomeManager for the specified scope.

Parameters:
scope - the scope to remove.
Throws:
InternalErrorException - if an error occurs.

getHomeLibraryManager

HomeLibraryManager getHomeLibraryManager()
                                         throws InternalErrorException
Return the HomeLibraryManager instance.

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

listUserScopes

List<String> listUserScopes(String portalLogin)
                            throws InternalErrorException
List the User scopes.

Parameters:
portalLogin - the user portal login.
Returns:
the scope list.
Throws:
InternalErrorException - if an error occurs.

listInfrastructureScopes

List<String> listInfrastructureScopes()
                                      throws InternalErrorException
Returns the scopes list from the infrastructure.

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

listInfrastructureScopeUsers

List<String> listInfrastructureScopeUsers(String scope)
                                          throws InternalErrorException
Return the users list from the infrastructure for the specified scope.

Parameters:
scope - the users scope.
Returns:
the users list.
Throws:
InternalErrorException - if an error occurs.

shutdown

void shutdown()
              throws InternalErrorException
Shutdown the HomeManagerFactory.

Throws:
InternalErrorException - if an error occurs.


Copyright © 2013. All Rights Reserved.