|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acegisecurity.acl.basic.cache.EhCacheBasedAclEntryCache
public class EhCacheBasedAclEntryCache
Caches BasicAclEntry
s using a Spring IoC defined EHCACHE.
Constructor Summary | |
---|---|
EhCacheBasedAclEntryCache()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
net.sf.ehcache.Ehcache |
getCache()
|
BasicAclEntry[] |
getEntriesFromCache(AclObjectIdentity aclObjectIdentity)
Obtains an array of BasicAclEntry s from the cache. |
void |
putEntriesInCache(BasicAclEntry[] basicAclEntry)
Places an array of BasicAclEntry s in the cache. |
void |
removeEntriesFromCache(AclObjectIdentity aclObjectIdentity)
Removes all ACL entries related to an AclObjectIdentity from the cache. |
void |
setCache(net.sf.ehcache.Ehcache cache)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EhCacheBasedAclEntryCache()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public BasicAclEntry[] getEntriesFromCache(AclObjectIdentity aclObjectIdentity)
BasicAclEntryCache
BasicAclEntry
s from the cache.
getEntriesFromCache
in interface BasicAclEntryCache
aclObjectIdentity
- which should be obtained from the cache
BasicAclEntry
s (no null
s are permitted in the returned array)
or null
if the object identity could not be found or if the cache entry has expiredpublic void putEntriesInCache(BasicAclEntry[] basicAclEntry)
BasicAclEntryCache
BasicAclEntry
s in the cache.No null
s are allowed in the
passed array. If any null
is passed, the implementation may throw an exception.
putEntriesInCache
in interface BasicAclEntryCache
basicAclEntry
- the ACL entries to cache (the key will be extracted from the BasicAclEntry.getAclObjectIdentity()
methodpublic void removeEntriesFromCache(AclObjectIdentity aclObjectIdentity)
BasicAclEntryCache
AclObjectIdentity
from the cache.
removeEntriesFromCache
in interface BasicAclEntryCache
aclObjectIdentity
- which should be removed from the cachepublic net.sf.ehcache.Ehcache getCache()
public void setCache(net.sf.ehcache.Ehcache cache)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |