Class OfBizGroupDao
java.lang.Object
com.atlassian.jira.crowd.embedded.ofbiz.OfBizGroupDao
- All Implemented Interfaces:
com.atlassian.crowd.embedded.spi.GroupDao,InitializingComponent
public class OfBizGroupDao
extends Object
implements com.atlassian.crowd.embedded.spi.GroupDao, InitializingComponent
-
Constructor Summary
ConstructorsConstructorDescriptionOfBizGroupDao(OfBizDelegator ofBizDelegator, com.atlassian.crowd.embedded.spi.DirectoryDao directoryDao, InternalMembershipDao membershipDao, com.atlassian.cache.CacheManager cacheManager, com.atlassian.beehive.ClusterLockService clusterLockService, ApplicationProperties applicationProperties) -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.crowd.model.group.Groupadd(com.atlassian.crowd.model.group.Group group) com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.group.Group>com.atlassian.crowd.model.group.GroupaddLocal(com.atlassian.crowd.model.group.Group group) voidCalled after all the beans are constructed and the ApplicationContext is fully populated.findByExternalIds(long directoryId, Set<String> externalIds) com.atlassian.crowd.model.group.InternalDirectoryGroupfindByName(long directoryId, String name) com.atlassian.crowd.model.group.GroupWithAttributesfindByNameWithAttributes(long directoryId, String name) findExternalIdsByNames(long directoryId, Set<String> names) voidInvoked byOfBizCacheFlushingManagerto ensure caches are being flushed in the right order onXMLRestoreFinishedEventgetAllExternalIds(long directoryId) longgetExternalGroupCount(long directoryId) longgetGroupCount(long directoryId) getLocalGroupNames(long directoryId) voidremove(com.atlassian.crowd.model.group.Group group) com.atlassian.crowd.util.BatchResult<String>removeAllGroups(long directoryId, Set<String> groupNames) voidremoveAttribute(com.atlassian.crowd.model.group.Group group, String attributeName) com.atlassian.crowd.model.group.Group<T> List<T>search(long directoryId, com.atlassian.crowd.search.query.entity.EntityQuery<T> query) voidstoreAttributes(com.atlassian.crowd.model.group.Group group, Map<String, Set<String>> attributes) com.atlassian.crowd.model.group.Groupupdate(com.atlassian.crowd.model.group.Group group)
-
Constructor Details
-
OfBizGroupDao
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)
-
-
Method Details
-
afterInstantiation
Description copied from interface:InitializingComponentCalled after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.- Specified by:
afterInstantiationin interfaceInitializingComponent- Throws:
Exception
-
findByName
@Nonnull public com.atlassian.crowd.model.group.InternalDirectoryGroup findByName(long directoryId, @Nonnull String name) throws GroupNotFoundException - Specified by:
findByNamein interfacecom.atlassian.crowd.embedded.spi.GroupDao- Throws:
GroupNotFoundException
-
findByNameWithAttributes
public com.atlassian.crowd.model.group.GroupWithAttributes findByNameWithAttributes(long directoryId, String name) throws GroupNotFoundException - Specified by:
findByNameWithAttributesin interfacecom.atlassian.crowd.embedded.spi.GroupDao- Throws:
GroupNotFoundException
-
add
public com.atlassian.crowd.model.group.Group add(com.atlassian.crowd.model.group.Group group) - Specified by:
addin interfacecom.atlassian.crowd.embedded.spi.GroupDao
-
addLocal
public com.atlassian.crowd.model.group.Group addLocal(com.atlassian.crowd.model.group.Group group) - Specified by:
addLocalin interfacecom.atlassian.crowd.embedded.spi.GroupDao
-
addAll
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 - Specified by:
addAllin interfacecom.atlassian.crowd.embedded.spi.GroupDao- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
update
public com.atlassian.crowd.model.group.Group update(com.atlassian.crowd.model.group.Group group) throws GroupNotFoundException - Specified by:
updatein interfacecom.atlassian.crowd.embedded.spi.GroupDao- Throws:
GroupNotFoundException
-
rename
public com.atlassian.crowd.model.group.Group rename(com.atlassian.crowd.model.group.Group group, String newName) - Specified by:
renamein interfacecom.atlassian.crowd.embedded.spi.GroupDao
-
storeAttributes
public void storeAttributes(com.atlassian.crowd.model.group.Group group, Map<String, Set<String>> attributes) throws GroupNotFoundException- Specified by:
storeAttributesin interfacecom.atlassian.crowd.embedded.spi.GroupDao- Throws:
GroupNotFoundException
-
removeAttribute
public void removeAttribute(com.atlassian.crowd.model.group.Group group, String attributeName) throws GroupNotFoundException - Specified by:
removeAttributein interfacecom.atlassian.crowd.embedded.spi.GroupDao- Throws:
GroupNotFoundException
-
remove
- Specified by:
removein interfacecom.atlassian.crowd.embedded.spi.GroupDao- Throws:
GroupNotFoundException
-
search
public <T> List<T> search(long directoryId, com.atlassian.crowd.search.query.entity.EntityQuery<T> query) - Specified by:
searchin interfacecom.atlassian.crowd.embedded.spi.GroupDao
-
removeAllGroups
public com.atlassian.crowd.util.BatchResult<String> removeAllGroups(long directoryId, Set<String> groupNames) - Specified by:
removeAllGroupsin interfacecom.atlassian.crowd.embedded.spi.GroupDao
-
getAllExternalIds
public Set<String> getAllExternalIds(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException - Specified by:
getAllExternalIdsin interfacecom.atlassian.crowd.embedded.spi.GroupDao- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
getGroupCount
public long getGroupCount(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException - Specified by:
getGroupCountin interfacecom.atlassian.crowd.embedded.spi.GroupDao- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
getLocalGroupNames
public Set<String> getLocalGroupNames(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException - Specified by:
getLocalGroupNamesin interfacecom.atlassian.crowd.embedded.spi.GroupDao- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
findByExternalIds
- Specified by:
findByExternalIdsin interfacecom.atlassian.crowd.embedded.spi.GroupDao
-
findExternalIdsByNames
- Specified by:
findExternalIdsByNamesin interfacecom.atlassian.crowd.embedded.spi.GroupDao
-
getExternalGroupCount
public long getExternalGroupCount(long directoryId) throws com.atlassian.crowd.exception.DirectoryNotFoundException - Specified by:
getExternalGroupCountin interfacecom.atlassian.crowd.embedded.spi.GroupDao- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
-
flushCache
public void flushCache()Invoked byOfBizCacheFlushingManagerto ensure caches are being flushed in the right order onXMLRestoreFinishedEvent
-