|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimpleUserService
Interface that defines a simple LDAP user provisioning interface.
Method Summary | |
---|---|
void |
addUser(SimpleUser user)
Add a user to the directory. |
void |
bind(java.lang.String uid,
java.lang.String password)
Perform a bind using the provided uid and password values. |
java.util.List |
findUsers(SimpleUser params)
Find users in the directory making use of populate properties in the given SimpleUser instance. |
java.util.List |
getGroupNames(java.lang.String uid)
Return a List of the group names that the given uid belongs to. |
SimpleUser |
getUser(java.lang.String uid)
Return a single user entry from the directory. |
SimpleUser |
getUserByDn(java.lang.String dn)
Return a single user entry from the directory using the DN value. |
void |
removeUser(java.lang.String uid)
Remove a user from the directory. |
void |
updateUser(SimpleUser user)
Update a user in the directory. |
Method Detail |
---|
void addUser(SimpleUser user) throws SimpleUserException
user
- SimpleUser instance to add to the directory.
SimpleUserException
- if the user cannot be added.void updateUser(SimpleUser user) throws SimpleUserException
user
- SimpleUser instance to update in the directory.
SimpleUserException
- if the the user cannot be updated.SimpleUser getUser(java.lang.String uid) throws SimpleUserException
uid
- String containing the uid of the user to return.
SimpleUserException
- if the user cannot be returned.SimpleUser getUserByDn(java.lang.String dn) throws SimpleUserException
dn
- String containing the dn of the user to return.
SimpleUserException
- if the user cannot be returned.void removeUser(java.lang.String uid) throws SimpleUserException
uid
- String containing the uid of the user to remove.
SimpleUserException
- if the user cannot be removed.java.util.List findUsers(SimpleUser params) throws SimpleUserException
params
- SimpleUser instance containing the properties to search on.
SimpleUserException
- if the search cannot be performed.java.util.List getGroupNames(java.lang.String uid) throws SimpleUserException
uid
- String containing the uid to use in the group search.
SimpleUserException
void bind(java.lang.String uid, java.lang.String password) throws SimpleUserException
uid
- String containing uid that must be used during the
bind.password
- String containing the password to use.
java.lang.Exception
- if the bind is unsuccessful.
SimpleUserException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |