@Deprecated public class HibernateGroupDao extends Object implements InternalGroupDao<com.atlassian.crowd.model.group.InternalGroup>
| Constructor and Description |
|---|
HibernateGroupDao(org.hibernate.SessionFactory sessionFactory,
Supplier<com.atlassian.crowd.embedded.spi.DirectoryDao> directoryDao,
InternalMembershipDao membershipDao,
com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessor<net.sf.hibernate.Session> batchProcessor,
com.atlassian.crowd.util.persistence.hibernate.batch.BatchFinder batchFinder)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.crowd.model.group.InternalGroup |
add(com.atlassian.crowd.model.group.Group group)
Deprecated.
|
com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.group.Group> |
addAll(Set<? extends com.atlassian.crowd.model.group.Group> groups)
Deprecated.
|
com.atlassian.crowd.model.group.InternalGroup |
addLocal(com.atlassian.crowd.model.group.Group group)
Deprecated.
|
Map<String,String> |
findByExternalIds(long directoryId,
Set<String> externalIds)
Deprecated.
|
com.atlassian.crowd.model.group.InternalDirectoryGroup |
findByName(long directoryId,
String name)
Deprecated.
|
com.atlassian.crowd.model.group.GroupWithAttributes |
findByNameWithAttributes(long directoryId,
String name)
Deprecated.
|
Map<String,String> |
findExternalIdsByNames(long directoryId,
Set<String> groupNames)
Deprecated.
|
Set<String> |
getAllExternalIds(long directoryId)
Deprecated.
|
long |
getExternalGroupCount(long directoryId)
Deprecated.
|
long |
getGroupCount(long directoryId)
Deprecated.
|
Set<String> |
getLocalGroupNames(long directoryId)
Deprecated.
|
com.atlassian.crowd.model.group.InternalGroup |
internalFindByGroup(com.atlassian.crowd.model.group.Group group)
Deprecated.
Find the persistent group object that corresponds to the provided group.
|
com.atlassian.crowd.model.group.InternalGroup |
internalFindByName(long directoryId,
String name)
Deprecated.
Find a persistent group object from a given directory and group name
|
void |
remove(com.atlassian.crowd.model.group.Group group)
Deprecated.
|
void |
removeAllGroups(long directoryId)
Deprecated.
Remove all groups from a particular directory (used when deleting an internal directory)
|
com.atlassian.crowd.util.BatchResult<String> |
removeAllGroups(long directoryId,
Set<String> groupNames)
Deprecated.
|
void |
removeAttribute(com.atlassian.crowd.model.group.Group group,
String attributeName)
Deprecated.
|
com.atlassian.crowd.model.group.Group |
rename(com.atlassian.crowd.model.group.Group group,
String newName)
Deprecated.
|
<T> List<T> |
search(long directoryId,
com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
Deprecated.
|
void |
storeAttributes(com.atlassian.crowd.model.group.Group group,
Map<String,Set<String>> attributes)
Deprecated.
|
com.atlassian.crowd.model.group.Group |
update(com.atlassian.crowd.model.group.Group group)
Deprecated.
|
public HibernateGroupDao(org.hibernate.SessionFactory sessionFactory,
Supplier<com.atlassian.crowd.embedded.spi.DirectoryDao> directoryDao,
InternalMembershipDao membershipDao,
com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessor<net.sf.hibernate.Session> batchProcessor,
com.atlassian.crowd.util.persistence.hibernate.batch.BatchFinder batchFinder)
public com.atlassian.crowd.model.group.InternalDirectoryGroup findByName(long directoryId,
String name)
throws com.atlassian.crowd.exception.GroupNotFoundException
findByName in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.GroupNotFoundExceptionpublic com.atlassian.crowd.util.BatchResult<String> removeAllGroups(long directoryId, Set<String> groupNames)
removeAllGroups in interface com.atlassian.crowd.embedded.spi.GroupDaopublic Set<String> getAllExternalIds(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException
getAllExternalIds in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.DirectoryNotFoundExceptionpublic long getGroupCount(long directoryId)
throws com.atlassian.crowd.exception.DirectoryNotFoundException
getGroupCount in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.DirectoryNotFoundExceptionpublic Set<String> getLocalGroupNames(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException
getLocalGroupNames in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.DirectoryNotFoundExceptionpublic Map<String,String> findByExternalIds(long directoryId, Set<String> externalIds)
findByExternalIds in interface com.atlassian.crowd.embedded.spi.GroupDaopublic Map<String,String> findExternalIdsByNames(long directoryId, Set<String> groupNames)
findExternalIdsByNames in interface com.atlassian.crowd.embedded.spi.GroupDaopublic long getExternalGroupCount(long directoryId)
throws com.atlassian.crowd.exception.DirectoryNotFoundException
getExternalGroupCount in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.DirectoryNotFoundExceptionpublic com.atlassian.crowd.model.group.GroupWithAttributes findByNameWithAttributes(long directoryId,
String name)
throws com.atlassian.crowd.exception.GroupNotFoundException
findByNameWithAttributes in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.GroupNotFoundExceptionpublic com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.group.Group> addAll(Set<? extends com.atlassian.crowd.model.group.Group> groups) throws com.atlassian.crowd.exception.DirectoryNotFoundException
addAll in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.DirectoryNotFoundExceptionpublic com.atlassian.crowd.model.group.InternalGroup add(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.DirectoryNotFoundException
add in interface InternalGroupDao<com.atlassian.crowd.model.group.InternalGroup>add in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.DirectoryNotFoundExceptionpublic com.atlassian.crowd.model.group.InternalGroup addLocal(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.DirectoryNotFoundException
addLocal in interface InternalGroupDao<com.atlassian.crowd.model.group.InternalGroup>addLocal in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.DirectoryNotFoundExceptionpublic com.atlassian.crowd.model.group.Group update(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.GroupNotFoundException
update in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.GroupNotFoundExceptionpublic com.atlassian.crowd.model.group.Group rename(com.atlassian.crowd.model.group.Group group,
String newName)
throws com.atlassian.crowd.exception.GroupNotFoundException
rename in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.GroupNotFoundExceptionpublic com.atlassian.crowd.model.group.InternalGroup internalFindByGroup(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.GroupNotFoundException
InternalGroupDaointernalFindByGroup in interface InternalGroupDao<com.atlassian.crowd.model.group.InternalGroup>com.atlassian.crowd.exception.GroupNotFoundExceptionpublic void removeAllGroups(long directoryId)
InternalGroupDaoremoveAllGroups in interface InternalGroupDao<com.atlassian.crowd.model.group.InternalGroup>public void storeAttributes(com.atlassian.crowd.model.group.Group group,
Map<String,Set<String>> attributes)
throws com.atlassian.crowd.exception.GroupNotFoundException
storeAttributes in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.GroupNotFoundExceptionpublic void removeAttribute(com.atlassian.crowd.model.group.Group group,
String attributeName)
throws com.atlassian.crowd.exception.GroupNotFoundException
removeAttribute in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.GroupNotFoundExceptionpublic void remove(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.GroupNotFoundException
remove in interface com.atlassian.crowd.embedded.spi.GroupDaocom.atlassian.crowd.exception.GroupNotFoundExceptionpublic <T> List<T> search(long directoryId, com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
search in interface com.atlassian.crowd.embedded.spi.GroupDaopublic com.atlassian.crowd.model.group.InternalGroup internalFindByName(long directoryId,
String name)
throws com.atlassian.crowd.exception.GroupNotFoundException
InternalGroupDaointernalFindByName in interface InternalGroupDao<com.atlassian.crowd.model.group.InternalGroup>com.atlassian.crowd.exception.GroupNotFoundExceptionCopyright © 2003–2022 Atlassian. All rights reserved.