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

Quick Search    Search Deep

org.acegisecurity.acl
Class AclProviderManager  view AclProviderManager download AclProviderManager.java

java.lang.Object
  extended byorg.acegisecurity.acl.AclProviderManager
All Implemented Interfaces:
AclManager, org.springframework.beans.factory.InitializingBean

public class AclProviderManager
extends java.lang.Object
implements AclManager, org.springframework.beans.factory.InitializingBean

Iterates through a list of AclProviders to locate the ACLs that apply to a given domain object instance.

If no compatible provider is found, it is assumed that no ACLs apply for the specified domain object instance and null is returned.

Version:
$Id: AclProviderManager.java,v 1.4 2005/11/17 00:55:51 benalex Exp $

Field Summary
private static org.apache.commons.logging.Log logger
           
private  java.util.List providers
           
 
Constructor Summary
AclProviderManager()
           
 
Method Summary
 void afterPropertiesSet()
          Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
private  void checkIfValidList(java.util.List listToCheck)
           
 AclEntry[] getAcls(java.lang.Object domainInstance)
          Obtains the ACLs that apply to the specified domain instance.
 AclEntry[] getAcls(java.lang.Object domainInstance, org.acegisecurity.Authentication authentication)
          Obtains the ACLs that apply to the specified domain instance, but only including those ACLs which have been granted to the presented Authentication object
 java.util.List getProviders()
           
 void setProviders(java.util.List newList)
          Sets the AclProvider objects to be used for ACL determinations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.commons.logging.Log logger

providers

private java.util.List providers
Constructor Detail

AclProviderManager

public AclProviderManager()
Method Detail

getAcls

public AclEntry[] getAcls(java.lang.Object domainInstance)
Description copied from interface: AclManager
Obtains the ACLs that apply to the specified domain instance.

Specified by:
getAcls in interface AclManager

getAcls

public AclEntry[] getAcls(java.lang.Object domainInstance,
                          org.acegisecurity.Authentication authentication)
Description copied from interface: AclManager
Obtains the ACLs that apply to the specified domain instance, but only including those ACLs which have been granted to the presented Authentication object

Specified by:
getAcls in interface AclManager

setProviders

public void setProviders(java.util.List newList)
Sets the AclProvider objects to be used for ACL determinations.


getProviders

public java.util.List getProviders()

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Description copied from interface: org.springframework.beans.factory.InitializingBean
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).

This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

checkIfValidList

private void checkIfValidList(java.util.List listToCheck)