1
22
23 package com.liferay.util.ldap;
24
25 import java.util.Hashtable;
26
27 import javax.naming.Binding;
28 import javax.naming.Context;
29 import javax.naming.Name;
30 import javax.naming.NameClassPair;
31 import javax.naming.NameParser;
32 import javax.naming.NamingEnumeration;
33 import javax.naming.NamingException;
34 import javax.naming.OperationNotSupportedException;
35
36
42 public class DummyContext implements Context {
43
44 public Object addToEnvironment(String propName, Object propVal)
45 throws NamingException {
46
47 throw new OperationNotSupportedException();
48 }
49
50 public void bind(Name name, Object obj) throws NamingException {
51 throw new OperationNotSupportedException();
52 }
53
54 public void bind(String name, Object obj) throws NamingException {
55 throw new OperationNotSupportedException();
56 }
57
58 public void close() throws NamingException {
59 throw new OperationNotSupportedException();
60 }
61
62 public Name composeName(Name name, Name prefix) throws NamingException {
63 throw new OperationNotSupportedException();
64 }
65
66 public String composeName(String name, String prefix)
67 throws NamingException {
68
69 throw new OperationNotSupportedException();
70 }
71
72 public Context createSubcontext(Name name) throws NamingException {
73 throw new OperationNotSupportedException();
74 }
75
76 public Context createSubcontext(String name) throws NamingException {
77 throw new OperationNotSupportedException();
78 }
79
80 public void destroySubcontext(Name name) throws NamingException {
81 throw new OperationNotSupportedException();
82 }
83
84 public void destroySubcontext(String name) throws NamingException {
85 throw new OperationNotSupportedException();
86 }
87
88 public Hashtable<?, ?> getEnvironment() throws NamingException {
89 throw new OperationNotSupportedException();
90 }
91
92 public String getNameInNamespace() throws NamingException {
93 throw new OperationNotSupportedException();
94 }
95
96 public NameParser getNameParser(Name name) throws NamingException {
97 throw new OperationNotSupportedException();
98 }
99
100 public NameParser getNameParser(String name) throws NamingException {
101 throw new OperationNotSupportedException();
102 }
103
104 public NamingEnumeration<NameClassPair> list(Name name)
105 throws NamingException {
106
107 throw new OperationNotSupportedException();
108 }
109
110 public NamingEnumeration<NameClassPair> list(String name)
111 throws NamingException {
112
113 throw new OperationNotSupportedException();
114 }
115
116 public NamingEnumeration<Binding> listBindings(Name name)
117 throws NamingException {
118
119 throw new OperationNotSupportedException();
120 }
121
122 public NamingEnumeration<Binding> listBindings(String name)
123 throws NamingException {
124
125 throw new OperationNotSupportedException();
126 }
127
128 public Object lookup(Name name) throws NamingException {
129 throw new OperationNotSupportedException();
130 }
131
132 public Object lookup(String name) throws NamingException {
133 throw new OperationNotSupportedException();
134 }
135
136 public Object lookupLink(Name name) throws NamingException {
137 throw new OperationNotSupportedException();
138 }
139
140 public Object lookupLink(String name) throws NamingException {
141 throw new OperationNotSupportedException();
142 }
143
144 public void rebind(Name name, Object obj) throws NamingException {
145 throw new OperationNotSupportedException();
146 }
147
148 public void rebind(String name, Object obj) throws NamingException {
149 throw new OperationNotSupportedException();
150 }
151
152 public Object removeFromEnvironment(String propName)
153 throws NamingException {
154
155 throw new OperationNotSupportedException();
156 }
157
158 public void rename(Name oldName, Name newName) throws NamingException {
159 throw new OperationNotSupportedException();
160 }
161
162 public void rename(String oldName, String newName)
163 throws NamingException {
164
165 throw new OperationNotSupportedException();
166 }
167
168 public void unbind(Name name) throws NamingException {
169 throw new OperationNotSupportedException();
170 }
171
172 public void unbind(String name) throws NamingException {
173 throw new OperationNotSupportedException();
174 }
175
176 }