Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.acl.basic
Interface BasicAclEntryCache  view BasicAclEntryCache download BasicAclEntryCache.java


public interface BasicAclEntryCache

Provides a cache of BasicAclEntry objects.

Implementations should provide appropriate methods to set their cache parameters (eg time-to-live) and/or force removal of entities before their normal expiration. These are not part of the BasicAclEntryCache interface contract because they vary depending on the type of caching system used (eg in-memory vs disk vs cluster vs hybrid).

Version:
$Id: BasicAclEntryCache.java,v 1.2 2005/11/17 00:55:47 benalex Exp $

Method Summary
 BasicAclEntry[] getEntriesFromCache(AclObjectIdentity aclObjectIdentity)
          Obtains an array of BasicAclEntrys from the cache.
 void putEntriesInCache(BasicAclEntry[] basicAclEntry)
          Places an array of BasicAclEntrys in the cache.
 

Method Detail

getEntriesFromCache

public BasicAclEntry[] getEntriesFromCache(AclObjectIdentity aclObjectIdentity)
Obtains an array of BasicAclEntrys from the cache.


putEntriesInCache

public void putEntriesInCache(BasicAclEntry[] basicAclEntry)
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.