001
014
015 package com.liferay.portal.kernel.ldap;
016
017 import javax.naming.Name;
018 import javax.naming.NamingEnumeration;
019 import javax.naming.NamingException;
020 import javax.naming.OperationNotSupportedException;
021 import javax.naming.directory.Attributes;
022 import javax.naming.directory.DirContext;
023 import javax.naming.directory.ModificationItem;
024 import javax.naming.directory.SearchControls;
025 import javax.naming.directory.SearchResult;
026
027
030 public class DummyDirContext extends DummyContext implements DirContext {
031
032 @Override
033 public void bind(Name name, Object obj, Attributes attrs)
034 throws NamingException {
035
036 throw new OperationNotSupportedException();
037 }
038
039 @Override
040 public void bind(String name, Object obj, Attributes attrs)
041 throws NamingException {
042
043 throw new OperationNotSupportedException();
044 }
045
046 @Override
047 public DirContext createSubcontext(Name name, Attributes attrs)
048 throws NamingException {
049
050 throw new OperationNotSupportedException();
051 }
052
053 @Override
054 public DirContext createSubcontext(String name, Attributes attrs)
055 throws NamingException {
056
057 throw new OperationNotSupportedException();
058 }
059
060 @Override
061 public Attributes getAttributes(Name name) throws NamingException {
062 throw new OperationNotSupportedException();
063 }
064
065 @Override
066 public Attributes getAttributes(Name name, String[] attrIds)
067 throws NamingException {
068
069 throw new OperationNotSupportedException();
070 }
071
072 @Override
073 public Attributes getAttributes(String name) throws NamingException {
074 throw new OperationNotSupportedException();
075 }
076
077 @Override
078 public Attributes getAttributes(String name, String[] attrIds)
079 throws NamingException {
080
081 throw new OperationNotSupportedException();
082 }
083
084 @Override
085 public DirContext getSchema(Name name) throws NamingException {
086 throw new OperationNotSupportedException();
087 }
088
089 @Override
090 public DirContext getSchema(String name) throws NamingException {
091 throw new OperationNotSupportedException();
092 }
093
094 @Override
095 public DirContext getSchemaClassDefinition(Name name)
096 throws NamingException {
097
098 throw new OperationNotSupportedException();
099 }
100
101 @Override
102 public DirContext getSchemaClassDefinition(String name)
103 throws NamingException {
104
105 throw new OperationNotSupportedException();
106 }
107
108 @Override
109 public void modifyAttributes(
110 Name name, int modificationOp, Attributes attrs)
111 throws NamingException {
112
113 throw new OperationNotSupportedException();
114 }
115
116 @Override
117 public void modifyAttributes(Name name, ModificationItem[] mods)
118 throws NamingException {
119
120 throw new OperationNotSupportedException();
121 }
122
123 @Override
124 public void modifyAttributes(
125 String name, int modificationOp, Attributes attrs)
126 throws NamingException {
127
128 throw new OperationNotSupportedException();
129 }
130
131 @Override
132 public void modifyAttributes(String name, ModificationItem[] mods)
133 throws NamingException {
134
135 throw new OperationNotSupportedException();
136 }
137
138 @Override
139 public void rebind(Name name, Object obj, Attributes attrs)
140 throws NamingException {
141
142 throw new OperationNotSupportedException();
143 }
144
145 @Override
146 public void rebind(String name, Object obj, Attributes attrs)
147 throws NamingException {
148
149 throw new OperationNotSupportedException();
150 }
151
152 @Override
153 public NamingEnumeration<SearchResult> search(
154 Name name, Attributes matchingAttributes)
155 throws NamingException {
156
157 throw new OperationNotSupportedException();
158 }
159
160 @Override
161 public NamingEnumeration<SearchResult> search(
162 Name name, Attributes matchingAttributes,
163 String[] attributesToReturn)
164 throws NamingException {
165
166 throw new OperationNotSupportedException();
167 }
168
169 @Override
170 public NamingEnumeration<SearchResult> search(
171 Name name, String filterExpr, Object[] filterArgs,
172 SearchControls cons)
173 throws NamingException {
174
175 throw new OperationNotSupportedException();
176 }
177
178 @Override
179 public NamingEnumeration<SearchResult> search(
180 Name name, String filter, SearchControls cons)
181 throws NamingException {
182
183 throw new OperationNotSupportedException();
184 }
185
186 @Override
187 public NamingEnumeration<SearchResult> search(
188 String name, Attributes matchingAttributes)
189 throws NamingException {
190
191 throw new OperationNotSupportedException();
192 }
193
194 @Override
195 public NamingEnumeration<SearchResult> search(
196 String name, Attributes matchingAttributes,
197 String[] attributesToReturn)
198 throws NamingException {
199
200 throw new OperationNotSupportedException();
201 }
202
203 @Override
204 public NamingEnumeration<SearchResult> search(
205 String name, String filterExpr, Object[] filterArgs,
206 SearchControls cons)
207 throws NamingException {
208
209 throw new OperationNotSupportedException();
210 }
211
212 @Override
213 public NamingEnumeration<SearchResult> search(
214 String name, String filter, SearchControls cons)
215 throws NamingException {
216
217 throw new OperationNotSupportedException();
218 }
219
220 }