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