Coverage Report - org.acegisecurity.acl.AclManager
 
Classes in this File Line Coverage Branch Coverage Complexity
AclManager
N/A 
N/A 
1
 
 1  
 /* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
 2  
  *
 3  
  * Licensed under the Apache License, Version 2.0 (the "License");
 4  
  * you may not use this file except in compliance with the License.
 5  
  * You may obtain a copy of the License at
 6  
  *
 7  
  *     http://www.apache.org/licenses/LICENSE-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing, software
 10  
  * distributed under the License is distributed on an "AS IS" BASIS,
 11  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
  * See the License for the specific language governing permissions and
 13  
  * limitations under the License.
 14  
  */
 15  
 
 16  
 package org.acegisecurity.acl;
 17  
 
 18  
 import org.acegisecurity.Authentication;
 19  
 
 20  
 
 21  
 /**
 22  
  * Obtains the <code>AclEntry</code> instances that apply to a particular
 23  
  * domain object instance.
 24  
  *
 25  
  * @author Ben Alex
 26  
  * @version $Id: AclManager.java 1784 2007-02-24 21:00:24Z luke_t $
 27  
  */
 28  
 public interface AclManager {
 29  
     //~ Methods ========================================================================================================
 30  
 
 31  
     /**
 32  
      * Obtains the ACLs that apply to the specified domain instance.
 33  
      *
 34  
      * @param domainInstance the instance for which ACL information is required (never <code>null</code>)
 35  
      *
 36  
      * @return the ACLs that apply, or <code>null</code> if no ACLs apply to the specified domain instance
 37  
      */
 38  
     AclEntry[] getAcls(Object domainInstance);
 39  
 
 40  
     /**
 41  
      * Obtains the ACLs that apply to the specified domain instance, but only including those ACLs which have
 42  
      * been granted to the presented <code>Authentication</code> object
 43  
      *
 44  
      * @param domainInstance the instance for which ACL information is required (never <code>null</code>)
 45  
      * @param authentication the prncipal for which ACL information should be filtered (never <code>null</code>)
 46  
      *
 47  
      * @return only those ACLs applying to the domain instance that have been granted to the principal (or
 48  
      *         <code>null</code>) if no such ACLs are found
 49  
      */
 50  
     AclEntry[] getAcls(Object domainInstance, Authentication authentication);
 51  
 }