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.authz.support;
21
22
23 import java.util.Collection;
24
25 import org.apache.directory.api.ldap.aci.ACITuple;
26 import org.apache.directory.api.ldap.aci.MicroOperation;
27 import org.apache.directory.api.ldap.model.constants.AuthenticationLevel;
28 import org.apache.directory.api.ldap.model.entry.Entry;
29 import org.apache.directory.api.ldap.model.entry.Value;
30 import org.apache.directory.api.ldap.model.name.Dn;
31 import org.apache.directory.api.ldap.model.schema.AttributeType;
32 import org.apache.directory.api.ldap.model.schema.SchemaManager;
33 import org.apache.directory.server.core.api.interceptor.context.OperationContext;
34
35
36
37
38
39
40
41
42 public class AciContext
43 {
44
45 private SchemaManager schemaManager;
46
47
48 private OperationContext operationContext;
49
50
51 private Collection<String> userGroupNames;
52
53
54 private Dn userDn;
55
56
57 private AuthenticationLevel authenticationLevel = AuthenticationLevel.NONE;
58
59
60 private Dn entryDn;
61
62
63 private AttributeType attributeType;
64
65
66 private Value attrValue;
67
68
69 private Collection<MicroOperation> microOperations;
70
71
72 private Collection<ACITuple> aciTuples;
73
74
75 private Entry entry;
76
77
78 private Entry entryView;
79
80
81
82
83
84
85
86
87 public AciContext( SchemaManager schemaManager, OperationContext operationContext )
88 {
89 this.schemaManager = schemaManager;
90 this.operationContext = operationContext;
91 }
92
93
94
95
96
97 public SchemaManager getSchemaManager()
98 {
99 return schemaManager;
100 }
101
102
103
104
105
106 public void setSchemaManager( SchemaManager schemaManager )
107 {
108 this.schemaManager = schemaManager;
109 }
110
111
112
113
114
115 public OperationContext getOperationContext()
116 {
117 return operationContext;
118 }
119
120
121
122
123
124 public void setOperationContext( OperationContext operationContext )
125 {
126 this.operationContext = operationContext;
127 }
128
129
130
131
132
133 public Collection<String> getUserGroupNames()
134 {
135 return userGroupNames;
136 }
137
138
139
140
141
142 public void setUserGroupNames( Collection<String> userGroupNames )
143 {
144 this.userGroupNames = userGroupNames;
145 }
146
147
148
149
150
151 public Dn getUserDn()
152 {
153 return userDn;
154 }
155
156
157
158
159
160 public void setUserDn( Dn userDn )
161 {
162 this.userDn = userDn;
163 }
164
165
166
167
168
169 public AuthenticationLevel getAuthenticationLevel()
170 {
171 return authenticationLevel;
172 }
173
174
175
176
177
178 public void setAuthenticationLevel( AuthenticationLevel authenticationLevel )
179 {
180 this.authenticationLevel = authenticationLevel;
181 }
182
183
184
185
186
187 public Dn getEntryDn()
188 {
189 return entryDn;
190 }
191
192
193
194
195
196 public void setEntryDn( Dn entryDn )
197 {
198 this.entryDn = entryDn;
199 }
200
201
202
203
204
205 public AttributeType getAttributeType()
206 {
207 return attributeType;
208 }
209
210
211
212
213
214 public void setAttributeType( AttributeType attributeType )
215 {
216 this.attributeType = attributeType;
217 }
218
219
220
221
222
223 public Value getAttrValue()
224 {
225 return attrValue;
226 }
227
228
229
230
231
232 public void setAttrValue( Value attrValue )
233 {
234 this.attrValue = attrValue;
235 }
236
237
238
239
240
241 public Collection<MicroOperation> getMicroOperations()
242 {
243 return microOperations;
244 }
245
246
247
248
249
250 public void setMicroOperations( Collection<MicroOperation> microOperations )
251 {
252 this.microOperations = microOperations;
253 }
254
255
256
257
258
259 public Collection<ACITuple> getAciTuples()
260 {
261 return aciTuples;
262 }
263
264
265
266
267
268 public void setAciTuples( Collection<ACITuple> aciTuples )
269 {
270 this.aciTuples = aciTuples;
271 }
272
273
274
275
276
277 public Entry getEntry()
278 {
279 return entry;
280 }
281
282
283
284
285
286 public void setEntry( Entry entry )
287 {
288 this.entry = entry;
289 }
290
291
292
293
294
295 public Entry getEntryView()
296 {
297 return entryView;
298 }
299
300
301
302
303
304 public void setEntryView( Entry entryView )
305 {
306 this.entryView = entryView;
307 }
308 }