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