|
|||||||||
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.SimpleGroupServiceImpl
public class SimpleGroupServiceImpl
Default implementation of the SimpleGroupService interface.
Constructor Summary | |
---|---|
SimpleGroupServiceImpl()
Default constructor. |
Method Summary | |
---|---|
void |
addGroup(SimpleGroup group)
Add a group to the directory. |
void |
addMember(java.lang.String cn,
SimpleUser user)
Add the given user to the named group. |
java.util.List |
findGroups(SimpleGroup params)
Find groups in the directory making use of populated properties in the given SimpleGroup instance. |
SimpleGroup |
getGroup(java.lang.String cn)
Return a single group entry from the directory. |
void |
removeGroup(java.lang.String cn)
Remove a group from the directory. |
void |
removeMember(java.lang.String cn,
SimpleUser user)
Remove the given user from the named group. |
void |
updateGroup(SimpleGroup group)
Update the given group. |
Methods inherited from class toolbox.services.ldap.LDAPService |
---|
create, 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 SimpleGroupServiceImpl()
Method Detail |
---|
public void addGroup(SimpleGroup group) throws SimpleGroupException
addGroup
in interface SimpleGroupService
group
- SimpleGroup instance to add to the directory.
SimpleGroupException
- if the user cannot be added.public void updateGroup(SimpleGroup group) throws SimpleGroupException
updateGroup
in interface SimpleGroupService
group
- SimpleGroup instance to update in the directory.
SimpleGroupException
- if the group cannot be updated.public SimpleGroup getGroup(java.lang.String cn) throws SimpleGroupException
getGroup
in interface SimpleGroupService
cn
- String containing the common name of the group to return.
SimpleGroupException
- if the group cannot be returned.public void addMember(java.lang.String cn, SimpleUser user) throws SimpleGroupException
addMember
in interface SimpleGroupService
cn
- String containing the name of the group to modify.user
- SimpleUser instance to add to the group.
SimpleGroupException
public void removeMember(java.lang.String cn, SimpleUser user) throws SimpleGroupException
removeMember
in interface SimpleGroupService
cn
- String containing the name of the group to modify.user
- SimpleUser instance to remove from the group.
SimpleGroupException
public void removeGroup(java.lang.String cn) throws SimpleGroupException
removeGroup
in interface SimpleGroupService
cn
- String containing the common name of the group to remove.
SimpleGroupException
- if the group cannot be removed.public java.util.List findGroups(SimpleGroup params) throws SimpleGroupException
findGroups
in interface SimpleGroupService
params
- SimpleGroup instance containing the properties to search
on.
SimpleGroupException
- if the search cannot be performed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |