|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HomeManager
Homes manager for a single scope. Manage users and user's home presents in a scope.
| Method Summary | |
|---|---|
User |
createUser(String portalLogin)
Create a new user. |
boolean |
existUser(String portalLogin)
Check if the specified user exists. |
Home |
getHome(String portalLogin,
org.gcube.common.core.scope.GCUBEScope scope)
Retrieve the user's home. |
Home |
getHome(User user,
org.gcube.common.core.scope.GCUBEScope scope)
Retrieve the user's home. |
HomeManagerFactory |
getHomeManagerFactory()
Return this HomeManager factory. |
User |
getUser(String portalLogin)
Get an user, if the user is not found a new one is created. |
List<User> |
getUsers()
Retrieves all users managed by this manager. |
void |
removeUser(User user)
Remove the specified user. |
| Method Detail |
|---|
HomeManagerFactory getHomeManagerFactory()
List<User> getUsers()
User getUser(String portalLogin)
throws InternalErrorException
portalLogin - the user's portal login.
InternalErrorException - if an internal error occurs.
boolean existUser(String portalLogin)
throws InternalErrorException
portalLogin - the user's portal login.
true if the user has been found, false otherwise.
InternalErrorException - if an internal error occurs.
User createUser(String portalLogin)
throws InternalErrorException
portalLogin - the user's portal login.
InternalErrorException - if an internal error occurs.
Home getHome(User user,
org.gcube.common.core.scope.GCUBEScope scope)
throws InternalErrorException,
HomeNotFoundException
user - the owner's home.
InternalErrorException - if an internal error occurs.
HomeNotFoundException - if no home is found for the given user.
Home getHome(String portalLogin,
org.gcube.common.core.scope.GCUBEScope scope)
throws InternalErrorException,
HomeNotFoundException,
UserNotFoundException
portalLogin - the user portal login.
InternalErrorException - if an internal error occurs.
HomeNotFoundException - if no home is found for the given user.
UserNotFoundException - if no user is found for the specified portalLogin.
void removeUser(User user)
throws InternalErrorException
user - the user to remove.
InternalErrorException - if an internal error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||