@Service public class GroupHierarchyCacheImpl extends Object implements GroupHierarchyCache
Group
objects to prevent too much DB-traffic,
especially when tasks are assigned to 'parent' groups and each of the users
in the 'child' groups need to see this.
This would mean a lot of DB traffic if this needs to be done on each query.
!! NOTE that this cache DOES NOT store user/capability information about a group !!Constructor and Description |
---|
GroupHierarchyCacheImpl() |
Modifier and Type | Method and Description |
---|---|
long |
getCacheHitCount() |
long |
getCacheLoadCount() |
long |
getCacheMissCount() |
com.activiti.domain.idm.Group |
getGroup(Long groupId)
Fetches one
Group from the cache. |
protected void |
initCache() |
void |
invalidate(Long groupId)
Invalidates a cached entry.
|
void |
reset() |
@PostConstruct protected void initCache()
public com.activiti.domain.idm.Group getGroup(Long groupId)
GroupHierarchyCache
Group
from the cache.getGroup
in interface GroupHierarchyCache
public void invalidate(Long groupId)
GroupHierarchyCache
invalidate
in interface GroupHierarchyCache
public long getCacheHitCount()
getCacheHitCount
in interface GroupHierarchyCache
public long getCacheLoadCount()
getCacheLoadCount
in interface GroupHierarchyCache
public long getCacheMissCount()
getCacheMissCount
in interface GroupHierarchyCache
public void reset()
reset
in interface GroupHierarchyCache
Copyright © 2014–2015 Alfresco. All rights reserved.