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