|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimpleGroupService
Interface that defines a simple LDAP group provisioning interface.
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 named group. |
Method Detail |
---|
void addGroup(SimpleGroup group) throws SimpleGroupException
group
- SimpleGroup instance to add to the directory.
SimpleGroupException
- if the user cannot be added.SimpleGroup getGroup(java.lang.String cn) throws SimpleGroupException
cn
- Strinb containing the common name of the group to return.
SimpleGroupException
- if the group cannot be returned.void addMember(java.lang.String cn, SimpleUser user) throws SimpleGroupException
cn
- String containing the name of the group to modify.user
- SimpleUser instance to add to the group.
SimpleGroupException
void removeMember(java.lang.String cn, SimpleUser user) throws SimpleGroupException
cn
- String containing the name of the group to modify.user
- SimpleUser instance to remove from the group.
SimpleGroupException
void removeGroup(java.lang.String cn) throws SimpleGroupException
cn
- String containing the common name of the group to remove.
SimpleGroupException
- if the group cannot be removed.void updateGroup(SimpleGroup group) throws SimpleGroupException
group
- SimpleGroup that must be updated.
SimpleGroupException
- if the group cannot be updated.java.util.List findGroups(SimpleGroup params) throws SimpleGroupException
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 |