@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)
GroupHierarchyCacheGroup from the cache.getGroup in interface GroupHierarchyCachepublic void invalidate(Long groupId)
GroupHierarchyCacheinvalidate in interface GroupHierarchyCachepublic long getCacheHitCount()
getCacheHitCount in interface GroupHierarchyCachepublic long getCacheLoadCount()
getCacheLoadCount in interface GroupHierarchyCachepublic long getCacheMissCount()
getCacheMissCount in interface GroupHierarchyCachepublic void reset()
reset in interface GroupHierarchyCacheCopyright © 2014–2015 Alfresco. All rights reserved.