Spring Security Framework

org.springframework.security.acl.basic.cache
Class EhCacheBasedAclEntryCache

java.lang.Object
  extended by org.springframework.security.acl.basic.cache.EhCacheBasedAclEntryCache
All Implemented Interfaces:
InitializingBean, BasicAclEntryCache

Deprecated. Use new spring-security-acl module instead

public class EhCacheBasedAclEntryCache
extends Object
implements BasicAclEntryCache, InitializingBean

Caches BasicAclEntrys using a Spring IoC defined EHCACHE.

Version:
$Id$
Author:
Ben Alex

Constructor Summary
EhCacheBasedAclEntryCache()
          Deprecated.  
 
Method Summary
 void afterPropertiesSet()
          Deprecated.  
 net.sf.ehcache.Ehcache getCache()
          Deprecated.  
 BasicAclEntry[] getEntriesFromCache(AclObjectIdentity aclObjectIdentity)
          Deprecated. Obtains an array of BasicAclEntrys from the cache.
 void putEntriesInCache(BasicAclEntry[] basicAclEntry)
          Deprecated. Places an array of BasicAclEntrys in the cache.
 void removeEntriesFromCache(AclObjectIdentity aclObjectIdentity)
          Deprecated. Removes all ACL entries related to an AclObjectIdentity from the cache.
 void setCache(net.sf.ehcache.Ehcache cache)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCacheBasedAclEntryCache

public EhCacheBasedAclEntryCache()
Deprecated. 
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Deprecated. 
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

getEntriesFromCache

public BasicAclEntry[] getEntriesFromCache(AclObjectIdentity aclObjectIdentity)
Deprecated. 
Description copied from interface: BasicAclEntryCache
Obtains an array of BasicAclEntrys from the cache.

Specified by:
getEntriesFromCache in interface BasicAclEntryCache
Parameters:
aclObjectIdentity - which should be obtained from the cache
Returns:
any applicable BasicAclEntrys (no nulls are permitted in the returned array) or null if the object identity could not be found or if the cache entry has expired

putEntriesInCache

public void putEntriesInCache(BasicAclEntry[] basicAclEntry)
Deprecated. 
Description copied from interface: BasicAclEntryCache
Places an array of BasicAclEntrys in the cache.

No nulls are allowed in the passed array. If any null is passed, the implementation may throw an exception.

Specified by:
putEntriesInCache in interface BasicAclEntryCache
Parameters:
basicAclEntry - the ACL entries to cache (the key will be extracted from the BasicAclEntry.getAclObjectIdentity() method

removeEntriesFromCache

public void removeEntriesFromCache(AclObjectIdentity aclObjectIdentity)
Deprecated. 
Description copied from interface: BasicAclEntryCache
Removes all ACL entries related to an AclObjectIdentity from the cache.

Specified by:
removeEntriesFromCache in interface BasicAclEntryCache
Parameters:
aclObjectIdentity - which should be removed from the cache

getCache

public net.sf.ehcache.Ehcache getCache()
Deprecated. 

setCache

public void setCache(net.sf.ehcache.Ehcache cache)
Deprecated. 

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.