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