1
19
20 package com.liferay.util.ldap;
21
22 import javax.naming.Name;
23 import javax.naming.NamingEnumeration;
24 import javax.naming.NamingException;
25 import javax.naming.OperationNotSupportedException;
26 import javax.naming.directory.Attributes;
27 import javax.naming.directory.DirContext;
28 import javax.naming.directory.ModificationItem;
29 import javax.naming.directory.SearchControls;
30 import javax.naming.directory.SearchResult;
31
32
38 public class DummyDirContext extends DummyContext implements DirContext {
39
40 public void bind(Name name, Object obj, Attributes attrs)
41 throws NamingException {
42
43 throw new OperationNotSupportedException();
44 }
45
46 public void bind(String name, Object obj, Attributes attrs)
47 throws NamingException {
48
49 throw new OperationNotSupportedException();
50 }
51
52 public DirContext createSubcontext(Name name, Attributes attrs)
53 throws NamingException {
54
55 throw new OperationNotSupportedException();
56 }
57
58 public DirContext createSubcontext(String name, Attributes attrs)
59 throws NamingException {
60
61 throw new OperationNotSupportedException();
62 }
63
64 public Attributes getAttributes(Name name) throws NamingException {
65 throw new OperationNotSupportedException();
66 }
67
68 public Attributes getAttributes(String name) throws NamingException {
69 throw new OperationNotSupportedException();
70 }
71
72 public Attributes getAttributes(Name name, String[] attrIds)
73 throws NamingException {
74
75 throw new OperationNotSupportedException();
76 }
77
78 public Attributes getAttributes(String name, String[] attrIds)
79 throws NamingException {
80
81 throw new OperationNotSupportedException();
82 }
83
84 public DirContext getSchema(Name name) throws NamingException {
85 throw new OperationNotSupportedException();
86 }
87
88 public DirContext getSchema(String name) throws NamingException {
89 throw new OperationNotSupportedException();
90 }
91
92 public DirContext getSchemaClassDefinition(Name name)
93 throws NamingException {
94
95 throw new OperationNotSupportedException();
96 }
97
98 public DirContext getSchemaClassDefinition(String name)
99 throws NamingException {
100
101 throw new OperationNotSupportedException();
102 }
103
104 public void modifyAttributes(
105 Name name, int modificationOp, Attributes attrs)
106 throws NamingException {
107
108 throw new OperationNotSupportedException();
109 }
110
111 public void modifyAttributes(
112 String name, int modificationOp, Attributes attrs)
113 throws NamingException {
114
115 throw new OperationNotSupportedException();
116 }
117
118 public void modifyAttributes(Name name, ModificationItem[] mods)
119 throws NamingException {
120
121 throw new OperationNotSupportedException();
122 }
123
124 public void modifyAttributes(String name, ModificationItem[] mods)
125 throws NamingException {
126
127 throw new OperationNotSupportedException();
128 }
129
130 public void rebind(Name name, Object obj, Attributes attrs)
131 throws NamingException {
132
133 throw new OperationNotSupportedException();
134 }
135
136 public void rebind(String name, Object obj, Attributes attrs)
137 throws NamingException {
138
139 throw new OperationNotSupportedException();
140 }
141
142 public NamingEnumeration<SearchResult> search(
143 Name name, Attributes matchingAttributes,
144 String[] attributesToReturn)
145 throws NamingException {
146
147 throw new OperationNotSupportedException();
148 }
149
150 public NamingEnumeration<SearchResult> search(
151 String name, Attributes matchingAttributes,
152 String[] attributesToReturn)
153 throws NamingException {
154
155 throw new OperationNotSupportedException();
156 }
157
158 public NamingEnumeration<SearchResult> search(
159 Name name, Attributes matchingAttributes)
160 throws NamingException {
161
162 throw new OperationNotSupportedException();
163 }
164
165 public NamingEnumeration<SearchResult> search(
166 String name, Attributes matchingAttributes)
167 throws NamingException {
168
169 throw new OperationNotSupportedException();
170 }
171
172 public NamingEnumeration<SearchResult> search(
173 Name name, String filter, SearchControls cons)
174 throws NamingException {
175
176 throw new OperationNotSupportedException();
177 }
178
179 public NamingEnumeration<SearchResult> search(
180 String name, String filter, SearchControls cons)
181 throws NamingException {
182
183 throw new OperationNotSupportedException();
184 }
185
186 public NamingEnumeration<SearchResult> search(
187 Name name, String filterExpr, Object[] filterArgs,
188 SearchControls cons)
189 throws NamingException {
190
191 throw new OperationNotSupportedException();
192 }
193
194 public NamingEnumeration<SearchResult> search(
195 String name, String filterExpr, Object[] filterArgs,
196 SearchControls cons)
197 throws NamingException {
198
199 throw new OperationNotSupportedException();
200 }
201
202 }