com.atlassian.jira.crowd.embedded.ofbiz
Class OfBizGroupDao
java.lang.Object
com.atlassian.jira.crowd.embedded.ofbiz.OfBizGroupDao
- All Implemented Interfaces:
- com.atlassian.crowd.embedded.spi.GroupDao
public class OfBizGroupDao
- extends Object
- implements com.atlassian.crowd.embedded.spi.GroupDao
Method Summary |
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.jira.crowd.embedded.ofbiz.OfBizGroup |
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)
|
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OfBizGroupDao
public OfBizGroupDao(OfBizDelegator ofBizDelegator,
com.atlassian.crowd.embedded.spi.DirectoryDao directoryDao,
InternalMembershipDao membershipDao)
removeAllGroups
public com.atlassian.crowd.util.BatchResult<String> removeAllGroups(long directoryId,
Set<String> groupNames)
- Specified by:
removeAllGroups
in interface com.atlassian.crowd.embedded.spi.GroupDao
findByName
public com.atlassian.jira.crowd.embedded.ofbiz.OfBizGroup findByName(long directoryId,
String name)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
findByName
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
findByNameWithAttributes
public com.atlassian.crowd.model.group.GroupWithAttributes findByNameWithAttributes(long directoryId,
String name)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
findByNameWithAttributes
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
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:
addAll
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.DirectoryNotFoundException
add
public com.atlassian.crowd.model.group.Group add(com.atlassian.crowd.model.group.Group group)
- Specified by:
add
in interface com.atlassian.crowd.embedded.spi.GroupDao
addLocal
public com.atlassian.crowd.model.group.Group addLocal(com.atlassian.crowd.model.group.Group group)
- Specified by:
addLocal
in interface com.atlassian.crowd.embedded.spi.GroupDao
update
public com.atlassian.crowd.model.group.Group update(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
update
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
rename
public com.atlassian.crowd.model.group.Group rename(com.atlassian.crowd.model.group.Group group,
String newName)
- Specified by:
rename
in interface com.atlassian.crowd.embedded.spi.GroupDao
storeAttributes
public void storeAttributes(com.atlassian.crowd.model.group.Group group,
Map<String,Set<String>> attributes)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
storeAttributes
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
removeAttribute
public void removeAttribute(com.atlassian.crowd.model.group.Group group,
String attributeName)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
removeAttribute
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
remove
public void remove(com.atlassian.crowd.model.group.Group group)
throws com.atlassian.crowd.exception.GroupNotFoundException
- Specified by:
remove
in interface com.atlassian.crowd.embedded.spi.GroupDao
- Throws:
com.atlassian.crowd.exception.GroupNotFoundException
search
public <T> List<T> search(long directoryId,
com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
- Specified by:
search
in interface com.atlassian.crowd.embedded.spi.GroupDao
flushCache
public void flushCache()
- Invoked by
OfBizCacheFlushingManager
to ensure caches are being flushed in the right order on
XMLRestoreFinishedEvent
Copyright © 2002-2013 Atlassian. All Rights Reserved.