|
|||||||||
| 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(Set<? extends Group> groups)
Bulk add of groups. |
|
Group |
addLocal(Group group)
Add a new local group. |
|
InternalDirectoryGroup |
findByName(long directoryId,
String name)
Finds group by name. |
|
GroupWithAttributes |
findByNameWithAttributes(long directoryId,
String name)
Finds group by name. |
|
void |
remove(Group group)
Removes group. |
|
BatchResult<String> |
removeAllGroups(long directoryId,
Set<String> groupNames)
Bulk remove all the given groups. |
|
void |
removeAttribute(Group group,
String attributeName)
Remove the attribute from the group. |
|
Group |
rename(Group group,
String newName)
Renames group. |
|
|
search(long directoryId,
EntityQuery<T> query)
Searches for group based on the given criteria. |
|
void |
storeAttributes(Group group,
Map<String,Set<String>> attributes)
Stores attributes into group. |
|
Group |
update(Group group)
Updates group. |
|
| Method Detail |
|---|
InternalDirectoryGroup findByName(long directoryId,
String name)
throws com.atlassian.crowd.exception.GroupNotFoundException
directoryId - the ID of the directory to look for groupname - group name
com.atlassian.crowd.exception.GroupNotFoundException - if the group does not exist
GroupWithAttributes findByNameWithAttributes(long directoryId,
String name)
throws com.atlassian.crowd.exception.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
com.atlassian.crowd.exception.GroupNotFoundException - if the group does not exist
Group add(Group group)
throws com.atlassian.crowd.exception.DirectoryNotFoundException,
com.atlassian.crowd.exception.InvalidGroupException
group - group
com.atlassian.crowd.exception.DirectoryNotFoundException - if the directory specified in group object does not exist
com.atlassian.crowd.exception.InvalidGroupException - if a group with the same directory and name (case-insensitive) already exists
Group addLocal(Group group)
throws com.atlassian.crowd.exception.DirectoryNotFoundException,
com.atlassian.crowd.exception.InvalidGroupException
group - group
com.atlassian.crowd.exception.DirectoryNotFoundException - if the directory specified in group object does not exist
com.atlassian.crowd.exception.InvalidGroupException - if a group with the same directory and name (case-insensitive) already exists
Group update(Group group)
throws com.atlassian.crowd.exception.GroupNotFoundException
group - group
com.atlassian.crowd.exception.GroupNotFoundException - if the group does not exist
Group rename(Group group,
String newName)
throws com.atlassian.crowd.exception.GroupNotFoundException,
com.atlassian.crowd.exception.InvalidGroupException
group - groupnewName - the new name
com.atlassian.crowd.exception.GroupNotFoundException - if the group does not exist
com.atlassian.crowd.exception.InvalidGroupException - if a group with the same directory and name (case-insensitive) already exists
void storeAttributes(Group group,
Map<String,Set<String>> attributes)
throws com.atlassian.crowd.exception.GroupNotFoundException
group - groupattributes - attributes
com.atlassian.crowd.exception.GroupNotFoundException - if the group does not exist
void removeAttribute(Group group,
String attributeName)
throws com.atlassian.crowd.exception.GroupNotFoundException
group - groupattributeName - attribute to be removed
com.atlassian.crowd.exception.GroupNotFoundException - if the group does not exist
void remove(Group group)
throws com.atlassian.crowd.exception.GroupNotFoundException
group - group
com.atlassian.crowd.exception.GroupNotFoundException - if the group does not exist
<T> List<T> search(long directoryId,
EntityQuery<T> query)
directoryId - directory to perform the search operation onquery - criteria
BatchResult<Group> addAll(Set<? extends Group> groups)
throws com.atlassian.crowd.exception.DirectoryNotFoundException
groups - to be added
com.atlassian.crowd.exception.DirectoryNotFoundException - if the directory cannot be found
BatchResult<String> removeAllGroups(long directoryId,
Set<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 | ||||||||