Interface InternalGroupDao<T extends com.atlassian.crowd.model.group.InternalGroup>
- All Superinterfaces:
com.atlassian.crowd.embedded.spi.GroupDao
- All Known Implementing Classes:
CachedCrowdGroupDao
,HibernateGroupDao
public interface InternalGroupDao<T extends com.atlassian.crowd.model.group.InternalGroup>
extends com.atlassian.crowd.embedded.spi.GroupDao
Private-ish interface for methods that should only be called by other DAOs. If you are calling anything on this interface from outside
this package, you are Doing It Wrong.
- Since:
- 7.20.0
-
Method Summary
Modifier and TypeMethodDescriptionadd
(com.atlassian.crowd.model.group.Group group) addLocal
(com.atlassian.crowd.model.group.Group group) com.atlassian.crowd.model.group.InternalGroup
internalFindByGroup
(com.atlassian.crowd.model.group.Group group) Find the persistent group object that corresponds to the provided group.com.atlassian.crowd.model.group.InternalGroup
internalFindByName
(long directoryId, String groupName) Find a persistent group object from a given directory and group namevoid
removeAllGroups
(long directoryId) Remove all groups from a particular directory (used when deleting an internal directory)Methods inherited from interface com.atlassian.crowd.embedded.spi.GroupDao
addAll, findByExternalIds, findByName, findByNameWithAttributes, findExternalIdsByNames, getAllExternalIds, getExternalGroupCount, getGroupCount, getLocalGroupNames, remove, removeAllGroups, removeAttribute, rename, search, storeAttributes, update
-
Method Details
-
internalFindByName
com.atlassian.crowd.model.group.InternalGroup internalFindByName(long directoryId, String groupName) throws com.atlassian.crowd.exception.GroupNotFoundException Find a persistent group object from a given directory and group name- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
-
internalFindByGroup
com.atlassian.crowd.model.group.InternalGroup internalFindByGroup(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.GroupNotFoundException Find the persistent group object that corresponds to the provided group.- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
-
removeAllGroups
void removeAllGroups(long directoryId) Remove all groups from a particular directory (used when deleting an internal directory) -
add
T add(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.InvalidGroupException - Specified by:
add
in interfacecom.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
com.atlassian.crowd.exception.InvalidGroupException
-
addLocal
T addLocal(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.InvalidGroupException - Specified by:
addLocal
in interfacecom.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
com.atlassian.crowd.exception.InvalidGroupException
-