Source code: org/acegisecurity/acl/basic/cache/NullAclEntryCache.java
1 /* Copyright 2004 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.
25 *
26 * <P>
27 * <B>Do not use in production settings</B>, as ACL queries are likely to be
28 * extensive.
29 * </p>
30 *
31 * @author Ben Alex
32 * @version $Id: NullAclEntryCache.java,v 1.2 2005/11/17 00:56:47 benalex Exp $
33 */
34 public class NullAclEntryCache implements BasicAclEntryCache {
35 //~ Methods ================================================================
36
37 /**
38 * As nothing ever stored in the cache, will always return
39 * <code>null</code>.
40 *
41 * @param aclObjectIdentity ignored
42 *
43 * @return always <code>null</code>
44 */
45 public BasicAclEntry[] getEntriesFromCache(
46 AclObjectIdentity aclObjectIdentity) {
47 return null;
48 }
49
50 /**
51 * Meets method signature but doesn't store in any cache.
52 *
53 * @param basicAclEntry ignored
54 */
55 public void putEntriesInCache(BasicAclEntry[] basicAclEntry) {}
56 }