Class Overview
A caching decorator for an InternalUserDao.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.crowd.embedded.hibernate2.InternalGroupDao
InternalGroup
|
internalFindByGroup(Group arg0)
|
InternalGroup
|
internalFindByName(long arg0, String arg1)
|
void
|
removeAllGroups(long arg0)
|
|
From interface
com.atlassian.crowd.embedded.spi.GroupDao
Group
|
add(Group arg0)
|
BatchResult<Group>
|
addAll(Set<? extends Group> arg0)
|
Group
|
addLocal(Group arg0)
|
InternalDirectoryGroup
|
findByName(long arg0, String arg1)
|
GroupWithAttributes
|
findByNameWithAttributes(long arg0, String arg1)
|
void
|
remove(Group arg0)
|
void
|
removeAllGroups(long arg0, Set<String> arg1)
|
void
|
removeAttribute(Group arg0, String arg1)
|
Group
|
rename(Group arg0, String arg1)
|
<T>
List<T>
|
search(long arg0, EntityQuery<T> arg1)
|
void
|
storeAttributes(Group arg0, Map<String, Set<String>> arg1)
|
Group
|
update(Group arg0)
|
|
From interface
org.springframework.beans.factory.InitializingBean
void
|
afterPropertiesSet()
|
|
Public Constructors
public
CachedCrowdGroupDao
(InternalGroupDao delegate, CacheFactory cacheFactory)
Public Methods
public
Group
add
(Group group)
Adds the passed in group by calling the delegate dao's add method. Updates the cache to match
the newly created group.
public
BatchResult<Group>
addAll
(Set<? extends Group> groups)
Removes all the adding groups from the cache and delegates to the addAll method of the delegate DAO.
This method will not try and update the cache like add(Group)
because:
- We want to delegate to the "addAll" method on the delegate as its the fastest way to add
a large number of groups, we can't just delegate to add method
- Unlike the add method, we don't get a reference to the added group so we can't reliably
update the cache, so we just remove it.
Returns
- a BatchResult describing the result
public
Group
addLocal
(Group group)
public
void
afterPropertiesSet
()
public
InternalDirectoryGroup
findByName
(long directoryId, String name)
public
GroupWithAttributes
findByNameWithAttributes
(long directoryId, String name)
public
InternalGroup
internalFindByGroup
(Group group)
public
InternalGroup
internalFindByName
(long directoryId, String groupName)
public
void
remove
(Group group)
public
void
removeAllGroups
(long directoryId, Set<String> groupNames)
public
void
removeAllGroups
(long directoryId)
public
void
removeAttribute
(Group group, String attributeName)
public
Group
rename
(Group group, String newName)
public
List<T>
search
(long directoryId, EntityQuery<T> query)
public
Group
update
(Group group)