1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.directory.server.core.authz.support;
21
22
23 import java.util.ArrayList;
24 import java.util.Iterator;
25 import java.util.List;
26 import java.util.Map;
27
28 import javax.naming.NamingException;
29
30 import org.apache.directory.server.core.authz.support.ACITupleFilter;
31 import org.apache.directory.server.schema.registries.OidRegistry;
32
33
34
35
36
37
38
39
40
41 class DummyOidRegistry implements OidRegistry
42 {
43 public String getOid( String name ) throws NamingException
44 {
45 return name.toLowerCase();
46 }
47
48
49 public boolean hasOid( String id )
50 {
51 return true;
52 }
53
54
55 public String getPrimaryName( String oid ) throws NamingException
56 {
57 return oid;
58 }
59
60
61 public List<String> getNameSet( String oid ) throws NamingException
62 {
63 List<String> list = new ArrayList<String>();
64 list.add( oid );
65 return list;
66 }
67
68
69 public Iterator list()
70 {
71
72 return new ArrayList().iterator();
73 }
74
75
76 public void register( String name, String oid )
77 {
78
79 }
80
81
82
83
84
85
86 public Map getOidByName()
87 {
88 return null;
89 }
90
91
92
93
94
95
96 public Map getNameByOid()
97 {
98 return null;
99 }
100
101
102 public void unregister( String numericOid ) throws NamingException
103 {
104 }
105 }