public class OfBizGroupDao extends Object implements com.atlassian.crowd.embedded.spi.GroupDao
Constructor and Description |
---|
OfBizGroupDao(OfBizDelegator ofBizDelegator,
com.atlassian.crowd.embedded.spi.DirectoryDao directoryDao,
InternalMembershipDao membershipDao,
com.atlassian.cache.CacheManager cacheManager,
com.atlassian.beehive.ClusterLockService clusterLockService,
ApplicationProperties applicationProperties) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.crowd.model.group.Group |
add(com.atlassian.crowd.model.group.Group group) |
com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.group.Group> |
addAll(Set<? extends com.atlassian.crowd.model.group.Group> groups) |
com.atlassian.crowd.model.group.Group |
addLocal(com.atlassian.crowd.model.group.Group group) |
Map<String,String> |
findByExternalIds(long directoryId,
Set<String> externalIds) |
com.atlassian.crowd.model.group.InternalDirectoryGroup |
findByName(long directoryId,
String name) |
com.atlassian.crowd.model.group.GroupWithAttributes |
findByNameWithAttributes(long directoryId,
String name) |
Map<String,String> |
findExternalIdsByNames(long directoryId,
Set<String> names) |
void |
flushCache()
Invoked by
OfBizCacheFlushingManager to ensure caches are being flushed in the right order on
XMLRestoreFinishedEvent |
Set<String> |
getAllExternalIds(long directoryId) |
long |
getExternalGroupCount(long directoryId) |
long |
getGroupCount(long directoryId) |
Set<String> |
getLocalGroupNames(long directoryId) |
void |
remove(com.atlassian.crowd.model.group.Group group) |
com.atlassian.crowd.util.BatchResult<String> |
removeAllGroups(long directoryId,
Set<String> groupNames) |
void |
removeAttribute(com.atlassian.crowd.model.group.Group group,
String attributeName) |
com.atlassian.crowd.model.group.Group |
rename(com.atlassian.crowd.model.group.Group group,
String newName) |
<T> List<T> |
search(long directoryId,
com.atlassian.crowd.search.query.entity.EntityQuery<T> query) |
void |
storeAttributes(com.atlassian.crowd.model.group.Group group,
Map<String,Set<String>> attributes) |
com.atlassian.crowd.model.group.Group |
update(com.atlassian.crowd.model.group.Group group) |
public OfBizGroupDao(OfBizDelegator ofBizDelegator, com.atlassian.crowd.embedded.spi.DirectoryDao directoryDao, InternalMembershipDao membershipDao, com.atlassian.cache.CacheManager cacheManager, com.atlassian.beehive.ClusterLockService clusterLockService, ApplicationProperties applicationProperties)
@Nonnull public com.atlassian.crowd.model.group.InternalDirectoryGroup findByName(long directoryId, @Nonnull String name) throws GroupNotFoundException
findByName
in interface com.atlassian.crowd.embedded.spi.GroupDao
GroupNotFoundException
public com.atlassian.crowd.model.group.GroupWithAttributes findByNameWithAttributes(long directoryId, String name) throws GroupNotFoundException
findByNameWithAttributes
in interface com.atlassian.crowd.embedded.spi.GroupDao
GroupNotFoundException
public com.atlassian.crowd.model.group.Group add(com.atlassian.crowd.model.group.Group group)
add
in interface com.atlassian.crowd.embedded.spi.GroupDao
public com.atlassian.crowd.model.group.Group addLocal(com.atlassian.crowd.model.group.Group group)
addLocal
in interface com.atlassian.crowd.embedded.spi.GroupDao
public 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.GroupDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public com.atlassian.crowd.model.group.Group update(com.atlassian.crowd.model.group.Group group) throws GroupNotFoundException
update
in interface com.atlassian.crowd.embedded.spi.GroupDao
GroupNotFoundException
public com.atlassian.crowd.model.group.Group rename(com.atlassian.crowd.model.group.Group group, String newName)
rename
in interface com.atlassian.crowd.embedded.spi.GroupDao
public void storeAttributes(com.atlassian.crowd.model.group.Group group, Map<String,Set<String>> attributes) throws GroupNotFoundException
storeAttributes
in interface com.atlassian.crowd.embedded.spi.GroupDao
GroupNotFoundException
public void removeAttribute(com.atlassian.crowd.model.group.Group group, String attributeName) throws GroupNotFoundException
removeAttribute
in interface com.atlassian.crowd.embedded.spi.GroupDao
GroupNotFoundException
public void remove(com.atlassian.crowd.model.group.Group group) throws GroupNotFoundException
remove
in interface com.atlassian.crowd.embedded.spi.GroupDao
GroupNotFoundException
public <T> List<T> search(long directoryId, com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
search
in interface com.atlassian.crowd.embedded.spi.GroupDao
public com.atlassian.crowd.util.BatchResult<String> removeAllGroups(long directoryId, Set<String> groupNames)
removeAllGroups
in interface com.atlassian.crowd.embedded.spi.GroupDao
public Set<String> getAllExternalIds(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException
getAllExternalIds
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public long getGroupCount(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException
getGroupCount
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public Set<String> getLocalGroupNames(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException
getLocalGroupNames
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public Map<String,String> findByExternalIds(long directoryId, Set<String> externalIds)
findByExternalIds
in interface com.atlassian.crowd.embedded.spi.GroupDao
public Map<String,String> findExternalIdsByNames(long directoryId, Set<String> names)
findExternalIdsByNames
in interface com.atlassian.crowd.embedded.spi.GroupDao
public long getExternalGroupCount(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException
getExternalGroupCount
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.DirectoryNotFoundException
public void flushCache()
OfBizCacheFlushingManager
to ensure caches are being flushed in the right order on
XMLRestoreFinishedEvent
Copyright © 2002-2021 Atlassian. All Rights Reserved.