Coverage Report - org.acegisecurity.acl.basic.cache.NullAclEntryCache
 
Classes in this File Line Coverage Branch Coverage Complexity
NullAclEntryCache
100% 
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.basic.cache;
 17  
 
 18  
 import org.acegisecurity.acl.basic.AclObjectIdentity;
 19  
 import org.acegisecurity.acl.basic.BasicAclEntry;
 20  
 import org.acegisecurity.acl.basic.BasicAclEntryCache;
 21  
 
 22  
 
 23  
 /**
 24  
  * Does not perform any caching.<P><B>Do not use in production settings</B>, as ACL queries are likely to be
 25  
  * extensive.</p>
 26  
  *
 27  
  * @author Ben Alex
 28  
  * @version $Id: NullAclEntryCache.java 1496 2006-05-23 13:38:33Z benalex $
 29  
  */
 30  23
 public class NullAclEntryCache implements BasicAclEntryCache {
 31  
     //~ Methods ========================================================================================================
 32  
 
 33  
     /**
 34  
      * As nothing ever stored in the cache, will always return <code>null</code>.
 35  
      *
 36  
      * @param aclObjectIdentity ignored
 37  
      *
 38  
      * @return always <code>null</code>
 39  
      */
 40  
     public BasicAclEntry[] getEntriesFromCache(AclObjectIdentity aclObjectIdentity) {
 41  11
         return null;
 42  
     }
 43  
 
 44  
     /**
 45  
      * Meets method signature but doesn't store in any cache.
 46  
      *
 47  
      * @param basicAclEntry ignored
 48  
      */
 49  11
     public void putEntriesInCache(BasicAclEntry[] basicAclEntry) {}
 50  
 
 51  
     /**
 52  
      * Meets method signature but doesn't remove from cache.
 53  
      *
 54  
      * @param aclObjectIdentity ignored
 55  
      */
 56  21
     public void removeEntriesFromCache(AclObjectIdentity aclObjectIdentity) {}
 57  
 }