|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GroupDao
| Method Summary | ||
|---|---|---|
Group |
add(Group group)
Adds a new group. |
|
BatchResult<Group> |
addAll(java.util.Set<? extends Group> groups)
Bulk add of groups. |
|
Group |
addLocal(Group group)
Add a new local group. |
|
InternalDirectoryGroup |
findByName(long directoryId,
java.lang.String name)
Finds group by name. |
|
GroupWithAttributes |
findByNameWithAttributes(long directoryId,
java.lang.String name)
Finds group by name. |
|
void |
remove(Group group)
Removes group. |
|
void |
removeAllGroups(long directoryId,
java.util.Set<java.lang.String> groupNames)
Removes all the given groups. |
|
void |
removeAttribute(Group group,
java.lang.String attributeName)
Remove attributes from group. |
|
Group |
rename(Group group,
java.lang.String newName)
Renames group. |
|
|
search(long directoryId,
EntityQuery<T> query)
Searches for group based on the given criteria. |
|
void |
storeAttributes(Group group,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributes)
Stores attributes into group. |
|
Group |
update(Group group)
Updates group. |
|
| Method Detail |
|---|
InternalDirectoryGroup findByName(long directoryId,
java.lang.String name)
throws GroupNotFoundException
directoryId - the ID of the directory to look for groupname - group name
GroupNotFoundException - if the group does not exist
GroupWithAttributes findByNameWithAttributes(long directoryId,
java.lang.String name)
throws GroupNotFoundException
findByName(long, String) in that it also returns
the group attributes associated with the retrieved group.
directoryId - the ID of the directory to look for groupname - group name
GroupNotFoundException - if the group does not exist
Group add(Group group)
throws DirectoryNotFoundException
group - group
DirectoryNotFoundException - if the directory specified in group object does not exist
Group addLocal(Group group)
throws DirectoryNotFoundException
group - group
DirectoryNotFoundException - if the directory specified in group object does not exist
Group update(Group group)
throws GroupNotFoundException
group - group
GroupNotFoundException - if the group does not exist
Group rename(Group group,
java.lang.String newName)
throws GroupNotFoundException
group - groupnewName - the new name
GroupNotFoundException - if the group does not exist
void storeAttributes(Group group,
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributes)
throws GroupNotFoundException
group - groupattributes - attributes
GroupNotFoundException - if the group does not exist
void removeAttribute(Group group,
java.lang.String attributeName)
throws GroupNotFoundException
group - groupattributeName - attribute to be removed
GroupNotFoundException - if the group does not exist
void remove(Group group)
throws GroupNotFoundException
group - group
GroupNotFoundException - if the group does not exist
<T> java.util.List<T> search(long directoryId,
EntityQuery<T> query)
directoryId - directory to perform the search operation onquery - criteria
BatchResult<Group> addAll(java.util.Set<? extends Group> groups)
throws DirectoryNotFoundException
groups - to be added
DirectoryNotFoundException - if the directory cannot be found
void removeAllGroups(long directoryId,
java.util.Set<java.lang.String> groupNames)
directoryId - directory to perform the operationgroupNames - groups to be removed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||