1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.directory.server.core.interceptor;
21
22
23 import org.apache.directory.server.core.DirectoryService;
24 import org.apache.directory.server.core.entry.ClonedServerEntry;
25 import org.apache.directory.server.core.filtering.EntryFilteringCursor;
26 import org.apache.directory.server.core.interceptor.context.AddContextPartitionOperationContext;
27 import org.apache.directory.server.core.interceptor.context.AddOperationContext;
28 import org.apache.directory.server.core.interceptor.context.BindOperationContext;
29 import org.apache.directory.server.core.interceptor.context.CompareOperationContext;
30 import org.apache.directory.server.core.interceptor.context.DeleteOperationContext;
31 import org.apache.directory.server.core.interceptor.context.EntryOperationContext;
32 import org.apache.directory.server.core.interceptor.context.GetMatchedNameOperationContext;
33 import org.apache.directory.server.core.interceptor.context.GetRootDSEOperationContext;
34 import org.apache.directory.server.core.interceptor.context.GetSuffixOperationContext;
35 import org.apache.directory.server.core.interceptor.context.ListOperationContext;
36 import org.apache.directory.server.core.interceptor.context.ListSuffixOperationContext;
37 import org.apache.directory.server.core.interceptor.context.LookupOperationContext;
38 import org.apache.directory.server.core.interceptor.context.ModifyOperationContext;
39 import org.apache.directory.server.core.interceptor.context.MoveAndRenameOperationContext;
40 import org.apache.directory.server.core.interceptor.context.MoveOperationContext;
41 import org.apache.directory.server.core.interceptor.context.RemoveContextPartitionOperationContext;
42 import org.apache.directory.server.core.interceptor.context.RenameOperationContext;
43 import org.apache.directory.server.core.interceptor.context.SearchOperationContext;
44 import org.apache.directory.server.core.interceptor.context.UnbindOperationContext;
45 import org.apache.directory.server.core.partition.Partition;
46 import org.apache.directory.server.core.partition.PartitionNexus;
47 import org.apache.directory.shared.ldap.name.LdapDN;
48
49 import java.util.Iterator;
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115 public interface Interceptor
116 {
117
118
119
120
121 String getName();
122
123
124
125
126
127
128 void init( DirectoryService directoryService ) throws Exception;
129
130
131
132
133
134
135 void destroy();
136
137
138
139
140
141 ClonedServerEntry getRootDSE( NextInterceptor next, GetRootDSEOperationContext opContext ) throws Exception;
142
143
144
145
146
147 LdapDN getMatchedName( NextInterceptor next, GetMatchedNameOperationContext opContext ) throws Exception;
148
149
150
151
152
153 LdapDN getSuffix ( NextInterceptor next, GetSuffixOperationContext opContext ) throws Exception;
154
155
156
157
158
159 Iterator<String> listSuffixes( NextInterceptor next, ListSuffixOperationContext opContext ) throws Exception;
160
161
162
163
164
165 void addContextPartition( NextInterceptor next, AddContextPartitionOperationContext opContext ) throws Exception;
166
167
168
169
170
171 void removeContextPartition( NextInterceptor next, RemoveContextPartitionOperationContext opContext ) throws Exception;
172
173
174
175
176
177 boolean compare( NextInterceptor next, CompareOperationContext opContext) throws Exception;
178
179
180
181
182
183 void delete( NextInterceptor next, DeleteOperationContext opContext ) throws Exception;
184
185
186
187
188
189 void add( NextInterceptor next, AddOperationContext opContext ) throws Exception;
190
191
192
193
194
195 void modify( NextInterceptor next, ModifyOperationContext opContext ) throws Exception;
196
197
198
199
200
201 EntryFilteringCursor list( NextInterceptor next, ListOperationContext opContext ) throws Exception;
202
203
204
205
206
207 EntryFilteringCursor search( NextInterceptor next, SearchOperationContext opContext ) throws Exception;
208
209
210
211
212
213 ClonedServerEntry lookup( NextInterceptor next, LookupOperationContext opContext ) throws Exception;
214
215
216
217
218
219 boolean hasEntry( NextInterceptor next, EntryOperationContext opContext ) throws Exception;
220
221
222
223
224
225 void rename( NextInterceptor next, RenameOperationContext opContext ) throws Exception;
226
227
228
229
230
231 void move( NextInterceptor next, MoveOperationContext opContext ) throws Exception;
232
233
234
235
236
237 void moveAndRename( NextInterceptor next, MoveAndRenameOperationContext opContext )
238 throws Exception;
239
240
241
242
243 void bind( NextInterceptor next, BindOperationContext opContext )
244 throws Exception;
245
246
247
248
249 void unbind( NextInterceptor next, UnbindOperationContext opContext ) throws Exception;
250 }