|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.user.crowd.CachedCrowdGroupDao
public class CachedCrowdGroupDao
A caching decorator for an InternalUserDao.
Constructor Summary | |
---|---|
CachedCrowdGroupDao(InternalGroupDao delegate,
com.atlassian.cache.CacheFactory cacheFactory)
|
Method Summary | ||
---|---|---|
com.atlassian.crowd.model.group.Group |
add(com.atlassian.crowd.model.group.Group group)
Adds the passed in group by calling the delegate dao's add method. |
|
com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.group.Group> |
addAll(java.util.Set<? extends com.atlassian.crowd.model.group.Group> groups)
Removes all the adding groups from the cache and delegates to the addAll method of the delegate DAO. |
|
com.atlassian.crowd.model.group.Group |
addLocal(com.atlassian.crowd.model.group.Group group)
|
|
void |
afterPropertiesSet()
|
|
com.atlassian.crowd.model.group.InternalDirectoryGroup |
findByName(long directoryId,
java.lang.String name)
|
|
com.atlassian.crowd.model.group.GroupWithAttributes |
findByNameWithAttributes(long directoryId,
java.lang.String name)
|
|
com.atlassian.crowd.model.group.InternalGroup |
internalFindByGroup(com.atlassian.crowd.model.group.Group group)
Find the persistent group object that corresponds to the provided group. |
|
com.atlassian.crowd.model.group.InternalGroup |
internalFindByName(long directoryId,
java.lang.String groupName)
Find a persistent group object from a given directory and group name |
|
void |
remove(com.atlassian.crowd.model.group.Group group)
|
|
void |
removeAllGroups(long directoryId)
Remove all groups from a particular directory (used when deleting an internal directory) |
|
com.atlassian.crowd.util.BatchResult<java.lang.String> |
removeAllGroups(long directoryId,
java.util.Set<java.lang.String> groupNames)
|
|
void |
removeAttribute(com.atlassian.crowd.model.group.Group group,
java.lang.String attributeName)
|
|
com.atlassian.crowd.model.group.Group |
rename(com.atlassian.crowd.model.group.Group group,
java.lang.String newName)
|
|
|
search(long directoryId,
com.atlassian.crowd.search.query.entity.EntityQuery<T> query)
|
|
void |
storeAttributes(com.atlassian.crowd.model.group.Group group,
java.util.Map<java.lang.String,java.util.Set<java.lang.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 |
Constructor Detail |
---|
public CachedCrowdGroupDao(InternalGroupDao delegate, com.atlassian.cache.CacheFactory cacheFactory)
Method Detail |
---|
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public com.atlassian.crowd.model.group.InternalDirectoryGroup findByName(long directoryId, java.lang.String name) throws com.atlassian.crowd.exception.GroupNotFoundException
findByName
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public com.atlassian.crowd.model.group.GroupWithAttributes findByNameWithAttributes(long directoryId, java.lang.String name) throws com.atlassian.crowd.exception.GroupNotFoundException
findByNameWithAttributes
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public com.atlassian.crowd.util.BatchResult<com.atlassian.crowd.model.group.Group> addAll(java.util.Set<? extends com.atlassian.crowd.model.group.Group> groups) throws com.atlassian.crowd.exception.DirectoryNotFoundException
add(Group)
because:
addAll
in interface com.atlassian.crowd.embedded.spi.GroupDao
groups
- the groups to add
com.atlassian.crowd.exception.DirectoryNotFoundException
- if the directory for any of the groups is not foundpublic com.atlassian.crowd.model.group.Group add(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.InvalidGroupException
add
in interface com.atlassian.crowd.embedded.spi.GroupDao
group
- the group to add
com.atlassian.crowd.exception.DirectoryNotFoundException
com.atlassian.crowd.exception.InvalidGroupException
public com.atlassian.crowd.model.group.Group addLocal(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.DirectoryNotFoundException, com.atlassian.crowd.exception.InvalidGroupException
addLocal
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.DirectoryNotFoundException
com.atlassian.crowd.exception.InvalidGroupException
public 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.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public com.atlassian.crowd.model.group.Group rename(com.atlassian.crowd.model.group.Group group, java.lang.String newName) throws com.atlassian.crowd.exception.GroupNotFoundException, com.atlassian.crowd.exception.InvalidGroupException
rename
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
com.atlassian.crowd.exception.InvalidGroupException
public void storeAttributes(com.atlassian.crowd.model.group.Group group, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> attributes) throws com.atlassian.crowd.exception.GroupNotFoundException
storeAttributes
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public void removeAttribute(com.atlassian.crowd.model.group.Group group, java.lang.String attributeName) throws com.atlassian.crowd.exception.GroupNotFoundException
removeAttribute
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public void remove(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.GroupNotFoundException
remove
in interface com.atlassian.crowd.embedded.spi.GroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public <T> java.util.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.model.group.InternalGroup internalFindByName(long directoryId, java.lang.String groupName) throws com.atlassian.crowd.exception.GroupNotFoundException
InternalGroupDao
internalFindByName
in interface InternalGroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public com.atlassian.crowd.model.group.InternalGroup internalFindByGroup(com.atlassian.crowd.model.group.Group group) throws com.atlassian.crowd.exception.GroupNotFoundException
InternalGroupDao
internalFindByGroup
in interface InternalGroupDao
com.atlassian.crowd.exception.GroupNotFoundException
public void removeAllGroups(long directoryId)
InternalGroupDao
removeAllGroups
in interface InternalGroupDao
public com.atlassian.crowd.util.BatchResult<java.lang.String> removeAllGroups(long directoryId, java.util.Set<java.lang.String> groupNames)
removeAllGroups
in interface com.atlassian.crowd.embedded.spi.GroupDao
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |