|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserAdministration
Interface for user administration. Manages the users and groups.
| Method Summary | |
|---|---|
void |
addUserToGroup(User aUser,
Group aGroup)
Adds a user to a group. |
Group |
createGroup(java.lang.String aName)
Creates a new group. |
User |
createUser(java.lang.String aUser,
java.lang.String aPassword,
Group aGroup)
Creates a new user. |
Group |
getGroup(java.lang.String aName)
Gets the group for a given group name. |
int |
getGroupCount()
|
java.util.Set<Group> |
getGroups()
Gets all known groups. |
User |
getUser(java.lang.String aName)
Gets the user for a given name. |
int |
getUserCount()
|
java.util.Set<User> |
getUsers()
Get the users. |
java.util.Set<User> |
getUsers(Group aGroup)
Gets the users for a given group. |
void |
groupModified(Group aGroup)
Must be called when the group is modified. |
void |
removeGroup(Group aGroup)
Removes the group. |
void |
removeUser(User aUser)
Removes the user. |
void |
removeUserFromGroup(User aUser,
Group aGroup)
Removes a user from a group. |
void |
renameGroup(Group aGroup,
java.lang.String aGroupName)
Renames a group. |
void |
renameUser(User aUser,
java.lang.String aUserName)
Renames a user. |
void |
userModified(User aUser)
Must be called when the user is modified. |
| Method Detail |
|---|
User createUser(java.lang.String aUser,
java.lang.String aPassword,
Group aGroup)
throws UserMgtException
aUser - Username.aPassword - Password.aGroup - Group.
UserMgtException - In case there is a conflict with an existing user.
Group createGroup(java.lang.String aName)
throws UserMgtException
aName - Group name.
UserMgtException - In case there is a conflict with an existing group.int getUserCount()
int getGroupCount()
void userModified(User aUser)
aUser - User.void groupModified(Group aGroup)
aGroup - Group.User getUser(java.lang.String aName)
aName - User name.
Group getGroup(java.lang.String aName)
aName - Group name.
java.util.Set<User> getUsers()
java.util.Set<User> getUsers(Group aGroup)
aGroup - Group.
java.util.Set<Group> getGroups()
void renameUser(User aUser,
java.lang.String aUserName)
throws UserMgtException
aUser - User object for which user name must be changed.aUserName - New user name.
UserMgtException - In case the user is not known or the new user
name is already in use by another user.
void renameGroup(Group aGroup,
java.lang.String aGroupName)
throws UserMgtException
aGroup - Group to rename.aGroupName - New name for the group.
UserMgtException - In case the new group name is already used by
another group of if the existing group is unknown.
void removeUser(User aUser)
throws UserMgtException
aUser - User to remove.
UserMgtException - In case the user does not exist.
void removeGroup(Group aGroup)
throws UserMgtException
aGroup - Group to remove.
UserMgtException - In case there are still users that are in the given group.
void addUserToGroup(User aUser,
Group aGroup)
throws UserMgtException
aUser - User.aGroup - Group.
UserMgtException - In case the user or group or not known or if the user
is already part of the group.
void removeUserFromGroup(User aUser,
Group aGroup)
throws UserMgtException
aUser - UseraGroup - Group
UserMgtException - In case the user or group are unknown or if the user
is not part of the group.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||