public interface HomeManager
| Modifier and Type | Method and Description |
|---|---|
User |
createUser(String portalLogin)
Create a new user.
|
boolean |
existUser(String portalLogin)
Check if the specified user exists.
|
org.gcube.common.homelibary.model.util.MemoryCache<String,Home> |
getCache()
Get cache for user homes
|
Home |
getGuestLogin() |
Home |
getHome()
Get user home using token
|
Home |
getHome(String portalLogin)
Deprecated.
|
Home |
getHome(User user)
Deprecated.
|
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.
|
HomeManagerFactory getHomeManagerFactory()
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.@Deprecated Home getHome(User user) throws InternalErrorException, HomeNotFoundException
user - the owner's home.InternalErrorException - if an internal error occurs.HomeNotFoundException - if no home is found for the given user.@Deprecated Home getHome(String portalLogin) 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.org.gcube.common.homelibary.model.util.MemoryCache<String,Home> getCache() throws InternalErrorException
InternalErrorException - if an internal error occurs.Home getHome() throws InternalErrorException, HomeNotFoundException, UserNotFoundException
InternalErrorExceptionHomeNotFoundExceptionUserNotFoundExceptionHome getGuestLogin() throws InternalErrorException, HomeNotFoundException, UserNotFoundException
InternalErrorExceptionHomeNotFoundExceptionUserNotFoundExceptionCopyright © 2020. All Rights Reserved.