|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserManager
The main interface for managing user details.
DirectoryManager
Method Summary | |
---|---|
void |
createUser(UserDetails userDetails)
Create a new user with the specified userDetails . |
void |
deleteUser(String username)
Delete an existing user represented by the specified username . |
UserDetails |
getUser(String username)
Retrieve the user details by username . |
boolean |
isReadOnly()
Indicates that this manager is for read-only purposes, and that any invocation of a destructive operation will throw an AccessDeniedException . |
Map<String,UserDetails> |
mapUsers()
Returns a map containing mapping between username and user-details. |
void |
updateUser(UserDetails userDetails)
Updates the user details, excluding the username which must remain the same. |
boolean |
userExists(String username)
Queries for presence of a user by username. |
Method Detail |
---|
boolean isReadOnly()
AccessDeniedException
.
true
if read-only access is allowed.void createUser(UserDetails userDetails) throws UserAlreadyExistsException, UserDataAccessException, AccessDeniedException
userDetails
.
userDetails
- new user details to store.
UserAlreadyExistsException
- if the user details represent a non-unique user
UserDataAccessException
- if could not store the specified user details.
AccessDeniedException
- if read-only access is allowed.void deleteUser(String username) throws UserNotFoundException, UserDataAccessException, AccessDeniedException
username
.
username
- an existing user name.
UserNotFoundException
- if the user was not found.
UserDataAccessException
- if could not delete the specified user details.
AccessDeniedException
- if read-only access is allowed.UserDetails getUser(String username) throws UserNotFoundException, UserDataAccessException
username
.
username
- an existing user to retrieve.
UserNotFoundException
- if the user was not found.
UserDataAccessException
- if could not retrieve the specified user details.Map<String,UserDetails> mapUsers() throws UserDataAccessException
UserDataAccessException
- if could not retrieve user-details to map.void updateUser(UserDetails userDetails) throws UserNotFoundException, UserDataAccessException, AccessDeniedException
userDetails
- the user details to update.
UserNotFoundException
- if the user was not found.
UserDataAccessException
- if could not update the user details.
AccessDeniedException
- if read-only access is allowed.boolean userExists(String username) throws UserDataAccessException
username
- the user to check existence for.
true
if the user exists; false
otherwise.
UserDataAccessException
- if could not query for the specified user.
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |