| java.lang.Object org.acegisecurity.acls.jdbc.BasicLookupStrategy
BasicLookupStrategy | final public class BasicLookupStrategy implements LookupStrategy(Code) | | Performs lookups in a manner that is compatible with ANSI SQL. NB: This implementation does attempt to provide
reasonably optimised lookups - within the constraints of a normalised database and standard ANSI SQL features. If
you are willing to sacrifice either of these constraints (eg use a particular database feature such as hierarchical
queries or materalized views, or reduce normalisation) you are likely to achieve better performance. In such
situations you will need to provide your own custom LookupStrategy . This class does not support
subclassing, as it is likely to change in future releases and therefore subclassing is unsupported.
author: Ben Alex version: $Id: BasicLookupStrategy.java 1784 2007-02-24 21:00:24Z luke_t $ |
Method Summary | |
public Map | readAclsById(ObjectIdentity[] objects, Sid[] sids) The main method.WARNING: This implementation completely disregards the "sids" parameter! Every item
in the cache is expected to contain all SIDs. | public void | setBatchSize(int batchSize) |
BasicLookupStrategy | public BasicLookupStrategy(DataSource dataSource, AclCache aclCache, AclAuthorizationStrategy aclAuthorizationStrategy, AuditLogger auditLogger)(Code) | | Constructor accepting mandatory arguments
Parameters: dataSource - to access the database Parameters: aclCache - the cache where fully-loaded elements can be stored Parameters: aclAuthorizationStrategy - authorization strategy (required) |
readAclsById | public Map readAclsById(ObjectIdentity[] objects, Sid[] sids) throws NotFoundException(Code) | | The main method. WARNING: This implementation completely disregards the "sids" parameter! Every item
in the cache is expected to contain all SIDs. If you have serious performance needs (eg a very large number of
SIDs per object identity), you'll probably want to develop a custom
LookupStrategy implementation
instead.
The implementation works in batch sizes specfied by
BasicLookupStrategy.batchSize .
Parameters: objects - DOCUMENT ME! Parameters: sids - DOCUMENT ME! DOCUMENT ME! throws: NotFoundException - DOCUMENT ME! throws: IllegalStateException - DOCUMENT ME! |
setBatchSize | public void setBatchSize(int batchSize)(Code) | | |
|
|