|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.services.BaseService toolbox.services.ldap.LDAPService toolbox.services.ldap.simple.SimpleUserServiceImpl
public class SimpleUserServiceImpl
The default implementation of the SimpleUserService interface.
Constructor Summary | |
---|---|
SimpleUserServiceImpl()
Default constructor. |
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. |
void |
create(java.lang.String name,
java.lang.String confHome,
ServiceEnvironment env,
XMLProperties xmlProps)
Create this service. |
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 |
setSimpleGroupService(SimpleGroupService grpSvc)
Injection point for the SimpleGroupService dependency. |
void |
updateUser(SimpleUser user)
Update a user in the directory. |
Methods inherited from class toolbox.services.ldap.LDAPService |
---|
destroy, getLDAPWorker, search, search |
Methods inherited from class toolbox.services.BaseService |
---|
getConfigHome, getName, getProperties, getProperty, getXMLProperties, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleUserServiceImpl()
Method Detail |
---|
public void create(java.lang.String name, java.lang.String confHome, ServiceEnvironment env, XMLProperties xmlProps) throws ServiceException
create
in interface Service
create
in class LDAPService
name
- The name of the service.confHome
- The path to the configuration home directory.env
- ServiceEnvironment of this service.xmlProps
- XML configuration properties.
ServiceException
- if the service cannot be created.public void addUser(SimpleUser user) throws SimpleUserException
addUser
in interface SimpleUserService
user
- SimpleUser instance to add to the directory.
SimpleUserException
- if the user cannot be added.public void updateUser(SimpleUser user) throws SimpleUserException
updateUser
in interface SimpleUserService
user
- SimpleUser instance to update in the directory.
SimpleUserException
- if the the user cannot be updated.public SimpleUser getUser(java.lang.String uid) throws SimpleUserException
getUser
in interface SimpleUserService
uid
- String containing the uid of the user to return.
SimpleUserException
- if the user cannot be returned.public SimpleUser getUserByDn(java.lang.String dn) throws SimpleUserException
getUserByDn
in interface SimpleUserService
dn
- String containing the dn of the user to return.
SimpleUserException
- if the user cannot be returned.public void removeUser(java.lang.String uid) throws SimpleUserException
removeUser
in interface SimpleUserService
uid
- String containing the uid of the user to remove.
SimpleUserException
- if the user cannot be removed.public java.util.List findUsers(SimpleUser params) throws SimpleUserException
findUsers
in interface SimpleUserService
params
- SimpleUser instance containing the properties to search on.
SimpleUserException
- if the search cannot be performed.public java.util.List getGroupNames(java.lang.String uid) throws SimpleUserException
getGroupNames
in interface SimpleUserService
uid
- String containing the uid to use in the group search.
SimpleUserException
public void bind(java.lang.String uid, java.lang.String password) throws SimpleUserException
bind
in interface SimpleUserService
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
public void setSimpleGroupService(SimpleGroupService grpSvc)
grpSvc
- SimpleGroupService instance.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |