|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserManager
A UserManager is used to organize (add/find/remove users from) a resource.
| Method Summary | |
|---|---|
void |
addDefaultGroup(java.lang.String name)
Adds a group to the set of default groups which all users of this manager are members of. |
Group |
createGroup(java.lang.String name)
Creates a new Group. |
User |
createUser(java.lang.String username,
java.lang.String password)
Creates a new User. |
User |
getAdminUser()
Returns the "default" admin user or null if there is none. |
User |
getAnonymousUser()
Returns the default anonymous user or null if none exists. |
java.util.Set |
getDefaultGroups()
Gets the Set of default groups for this UserManager. |
Group |
getGroup(java.lang.String name)
Returns the group with the specified name or null if none exists. |
int |
getGroupCount()
Return the number of users contained in this manager. |
java.util.List |
getGroups(int start,
int max)
Returns a list of Groups (between the specified indexes) contained in this manager. |
UserManager |
getParent()
Gets the parent manager of this UserManager if any. |
User |
getUser(java.lang.String username)
Returns the user with the specified username or null if none exists. |
User |
getUser(java.lang.String issuerDN,
java.math.BigInteger serial)
Returns the user associated with this certificate or null if either certificates arent supported or there is no user associated with this certificate. |
User |
getUser(java.security.cert.X509Certificate certificate)
Returns the user associated with this certificate or null if either certificates arent supported or there is no user associated with this certificate. |
int |
getUserCount()
Return the number of users contained in this manager. |
java.util.List |
getUsers(int start,
int max)
Returns a list of Users (between the specified indexes) contained in this manager. |
void |
init(java.util.Properties properties)
Instantiates this UserManager with the specified settings. |
boolean |
remove(Group group)
Removes the specified group from this UserManager. |
boolean |
remove(User user)
Removes the specified user from this UserManager. |
void |
setParent(UserManager parent)
Sets the parent UserManager if any. |
| Methods inherited from interface com.evermind.util.Config |
|---|
create, invalidate, isUpdated, store, update |
| Method Detail |
|---|
void init(java.util.Properties properties)
throws java.lang.InstantiationException
java.lang.InstantiationException - if the init() fails.void setParent(UserManager parent)
UserManager getParent()
User getUser(java.lang.String username)
User getAnonymousUser()
Group getGroup(java.lang.String name)
User createUser(java.lang.String username,
java.lang.String password)
throws java.lang.InstantiationException,
UserAlreadyExistsException
java.lang.InstantiationException - if the user exists.
UserAlreadyExistsException
Group createGroup(java.lang.String name)
throws java.lang.InstantiationException
java.lang.InstantiationException - if the group exists.
User getUser(java.lang.String issuerDN,
java.math.BigInteger serial)
User getUser(java.security.cert.X509Certificate certificate)
User getAdminUser()
boolean remove(User user)
boolean remove(Group group)
void addDefaultGroup(java.lang.String name)
java.util.Set getDefaultGroups()
int getUserCount()
int getGroupCount()
java.util.List getUsers(int start,
int max)
java.util.List getGroups(int start,
int max)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||