Package com.atlassian.crowd.dao.group
Interface InternalGroupDao
- All Superinterfaces:
GroupDao
- All Known Implementing Classes:
GroupDAOHibernate
Persistance methods necessary to modify an
InternalDirectory
group
.-
Method Summary
Modifier and TypeMethodDescriptionaddAll
(Collection<InternalGroupWithAttributes> groups) Bulk add of groups and their attributes.findByIds
(Collection<Long> groupIds) Bulk find of groups with the specified database identifiers.findByName
(long directoryId, String groupName) Finds internal group by directory id and group name.findByNames
(long directoryId, Collection<String> groupnames) Bulk find of groups using SQL disjunction.findGroupAttributes
(long groupId) Finds group attributes of the given group identified by group id.void
removeAll
(long directoryId) Removes all groups from a directory, but does not audit group removal operationMethods inherited from interface com.atlassian.crowd.embedded.spi.GroupDao
add, addAll, addLocal, findByExternalIds, findByNameWithAttributes, findExternalIdsByNames, getAllExternalIds, getExternalGroupCount, getGroupCount, getLocalGroupNames, remove, removeAllGroups, removeAttribute, rename, search, storeAttributes, update
-
Method Details
-
findByName
Finds internal group by directory id and group name.- Specified by:
findByName
in interfaceGroupDao
- Parameters:
directoryId
- Directory id.groupName
- Group name.- Returns:
- An internal group.
- Throws:
GroupNotFoundException
- If the group cannot be found.
-
findGroupAttributes
Finds group attributes of the given group identified by group id.- Parameters:
groupId
- Group id.- Returns:
- Set of group attributes.
-
removeAll
void removeAll(long directoryId) Removes all groups from a directory, but does not audit group removal operation- Parameters:
directoryId
- Directory Id.
-
addAll
Bulk add of groups and their attributes.- Parameters:
groups
- Groups with attributes.- Returns:
- Batch result.
-
findByNames
Bulk find of groups using SQL disjunction.- Parameters:
directoryId
- the directory to search for the groups.groupnames
- names of groups to find- Returns:
- collection of found groups.
-
findByIds
Bulk find of groups with the specified database identifiers. The result collection may be smaller than the input if ids that did not match with any groups were supplied- Parameters:
groupIds
- identifiers of groups that will be found- Returns:
- the matching groups
-