01: /* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
02: *
03: * Licensed under the Apache License, Version 2.0 (the "License");
04: * you may not use this file except in compliance with the License.
05: * You may obtain a copy of the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * 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: * Does not perform any caching.<P><B>Do not use in production settings</B>, as ACL queries are likely to be
24: * extensive.</p>
25: *
26: * @author Ben Alex
27: * @version $Id: NullAclEntryCache.java 1496 2006-05-23 13:38:33Z benalex $
28: */
29: public class NullAclEntryCache implements BasicAclEntryCache {
30: //~ Methods ========================================================================================================
31:
32: /**
33: * As nothing ever stored in the cache, will always return <code>null</code>.
34: *
35: * @param aclObjectIdentity ignored
36: *
37: * @return always <code>null</code>
38: */
39: public BasicAclEntry[] getEntriesFromCache(
40: AclObjectIdentity aclObjectIdentity) {
41: return null;
42: }
43:
44: /**
45: * Meets method signature but doesn't store in any cache.
46: *
47: * @param basicAclEntry ignored
48: */
49: public void putEntriesInCache(BasicAclEntry[] basicAclEntry) {
50: }
51:
52: /**
53: * Meets method signature but doesn't remove from cache.
54: *
55: * @param aclObjectIdentity ignored
56: */
57: public void removeEntriesFromCache(
58: AclObjectIdentity aclObjectIdentity) {
59: }
60: }
|