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) |
com.atlassian.crowd.model.group.InternalDirectoryGroup |
findByName(long directoryId,
String name) |
com.atlassian.crowd.model.group.GroupWithAttributes |
findByNameWithAttributes(long directoryId,
String name) |
void |
flushCache()
Invoked by
OfBizCacheFlushingManager to ensure caches are being flushed in the right order on
XMLRestoreFinishedEvent |
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 void flushCache()
OfBizCacheFlushingManager
to ensure caches are being flushed in the right order on
XMLRestoreFinishedEvent
Copyright © 2002-2018 Atlassian. All Rights Reserved.