1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
package org.kuali.student.kim.permission.mock; |
6 | |
|
7 | |
import org.kuali.rice.core.api.criteria.QueryByCriteria; |
8 | |
import org.kuali.rice.core.api.exception.RiceIllegalArgumentException; |
9 | |
import org.kuali.rice.core.api.exception.RiceIllegalStateException; |
10 | |
import org.kuali.rice.kim.api.identity.CodedAttribute; |
11 | |
import org.kuali.rice.kim.api.identity.IdentityService; |
12 | |
import org.kuali.rice.kim.api.identity.address.EntityAddress; |
13 | |
import org.kuali.rice.kim.api.identity.affiliation.EntityAffiliation; |
14 | |
import org.kuali.rice.kim.api.identity.affiliation.EntityAffiliationType; |
15 | |
import org.kuali.rice.kim.api.identity.citizenship.EntityCitizenship; |
16 | |
import org.kuali.rice.kim.api.identity.email.EntityEmail; |
17 | |
import org.kuali.rice.kim.api.identity.employment.EntityEmployment; |
18 | |
import org.kuali.rice.kim.api.identity.entity.Entity; |
19 | |
import org.kuali.rice.kim.api.identity.entity.EntityDefault; |
20 | |
import org.kuali.rice.kim.api.identity.entity.EntityDefaultQueryResults; |
21 | |
import org.kuali.rice.kim.api.identity.entity.EntityQueryResults; |
22 | |
import org.kuali.rice.kim.api.identity.external.EntityExternalIdentifier; |
23 | |
import org.kuali.rice.kim.api.identity.external.EntityExternalIdentifierType; |
24 | |
import org.kuali.rice.kim.api.identity.name.EntityName; |
25 | |
import org.kuali.rice.kim.api.identity.personal.EntityBioDemographics; |
26 | |
import org.kuali.rice.kim.api.identity.personal.EntityEthnicity; |
27 | |
import org.kuali.rice.kim.api.identity.phone.EntityPhone; |
28 | |
import org.kuali.rice.kim.api.identity.principal.EntityNamePrincipalName; |
29 | |
import org.kuali.rice.kim.api.identity.principal.Principal; |
30 | |
import org.kuali.rice.kim.api.identity.privacy.EntityPrivacyPreferences; |
31 | |
import org.kuali.rice.kim.api.identity.residency.EntityResidency; |
32 | |
import org.kuali.rice.kim.api.identity.type.EntityTypeContactInfo; |
33 | |
import org.kuali.rice.kim.api.identity.visa.EntityVisa; |
34 | |
|
35 | |
import javax.jws.WebParam; |
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | 0 | public class IdentityServiceDecorator implements IdentityService { |
42 | |
|
43 | |
private IdentityService nextDecorator; |
44 | |
|
45 | |
public IdentityService getNextDecorator() { |
46 | 0 | return nextDecorator; |
47 | |
} |
48 | |
|
49 | |
public void setNextDecorator(IdentityService nextDecorator) { |
50 | 0 | this.nextDecorator = nextDecorator; |
51 | 0 | } |
52 | |
|
53 | |
@Override |
54 | |
public EntityVisa updateVisa(EntityVisa ev) throws RiceIllegalArgumentException, RiceIllegalStateException { |
55 | 0 | return nextDecorator.updateVisa(ev); |
56 | |
} |
57 | |
|
58 | |
@Override |
59 | |
public EntityResidency updateResidency(EntityResidency er) throws RiceIllegalArgumentException, RiceIllegalStateException { |
60 | 0 | return nextDecorator.updateResidency(er); |
61 | |
} |
62 | |
|
63 | |
@Override |
64 | |
public EntityPrivacyPreferences updatePrivacyPreferences(EntityPrivacyPreferences epp) throws RiceIllegalArgumentException, RiceIllegalStateException { |
65 | 0 | return nextDecorator.updatePrivacyPreferences(epp); |
66 | |
} |
67 | |
|
68 | |
@Override |
69 | |
public Principal updatePrincipal(Principal prncpl) throws RiceIllegalArgumentException, RiceIllegalStateException { |
70 | 0 | return nextDecorator.updatePrincipal(prncpl); |
71 | |
} |
72 | |
|
73 | |
@Override |
74 | |
public EntityPhone updatePhone(EntityPhone ep) throws RiceIllegalArgumentException, RiceIllegalStateException { |
75 | 0 | return nextDecorator.updatePhone(ep); |
76 | |
} |
77 | |
|
78 | |
@Override |
79 | |
public EntityName updateName(EntityName en) throws RiceIllegalArgumentException, RiceIllegalStateException { |
80 | 0 | return nextDecorator.updateName(en); |
81 | |
} |
82 | |
|
83 | |
@Override |
84 | |
public EntityExternalIdentifier updateExternalIdentifier(EntityExternalIdentifier eei) throws RiceIllegalArgumentException, RiceIllegalStateException { |
85 | 0 | return nextDecorator.updateExternalIdentifier(eei); |
86 | |
} |
87 | |
|
88 | |
@Override |
89 | |
public EntityEthnicity updateEthnicity(EntityEthnicity ee) throws RiceIllegalArgumentException, RiceIllegalStateException { |
90 | 0 | return nextDecorator.updateEthnicity(ee); |
91 | |
} |
92 | |
|
93 | |
@Override |
94 | |
public EntityTypeContactInfo updateEntityTypeContactInfo(EntityTypeContactInfo etci) throws RiceIllegalArgumentException, RiceIllegalStateException { |
95 | 0 | return nextDecorator.updateEntityTypeContactInfo(etci); |
96 | |
} |
97 | |
|
98 | |
@Override |
99 | |
public Entity updateEntity(Entity entity) throws RiceIllegalArgumentException, RiceIllegalStateException { |
100 | 0 | return nextDecorator.updateEntity(entity); |
101 | |
} |
102 | |
|
103 | |
@Override |
104 | |
public EntityEmployment updateEmployment(EntityEmployment ee) throws RiceIllegalArgumentException, RiceIllegalStateException { |
105 | 0 | return nextDecorator.updateEmployment(ee); |
106 | |
} |
107 | |
|
108 | |
@Override |
109 | |
public EntityEmail updateEmail(EntityEmail ee) throws RiceIllegalArgumentException, RiceIllegalStateException { |
110 | 0 | return nextDecorator.updateEmail(ee); |
111 | |
} |
112 | |
|
113 | |
@Override |
114 | |
public EntityCitizenship updateCitizenship(EntityCitizenship ec) throws RiceIllegalArgumentException, RiceIllegalStateException { |
115 | 0 | return nextDecorator.updateCitizenship(ec); |
116 | |
} |
117 | |
|
118 | |
@Override |
119 | |
public EntityBioDemographics updateBioDemographics(EntityBioDemographics ebd) throws RiceIllegalArgumentException, RiceIllegalStateException { |
120 | 0 | return nextDecorator.updateBioDemographics(ebd); |
121 | |
} |
122 | |
|
123 | |
@Override |
124 | |
public EntityAffiliation updateAffiliation(EntityAffiliation ea) throws RiceIllegalArgumentException, RiceIllegalStateException { |
125 | 0 | return nextDecorator.updateAffiliation(ea); |
126 | |
} |
127 | |
|
128 | |
@Override |
129 | |
public EntityAddress updateAddress(EntityAddress ea) throws RiceIllegalArgumentException, RiceIllegalStateException { |
130 | 0 | return nextDecorator.updateAddress(ea); |
131 | |
} |
132 | |
|
133 | |
@Override |
134 | |
public Principal inactivatePrincipalByName(String string) throws RiceIllegalArgumentException, RiceIllegalStateException { |
135 | 0 | return nextDecorator.inactivatePrincipalByName(string); |
136 | |
} |
137 | |
|
138 | |
@Override |
139 | |
public Principal inactivatePrincipal(String string) throws RiceIllegalArgumentException, RiceIllegalStateException { |
140 | 0 | return nextDecorator.inactivatePrincipal(string); |
141 | |
} |
142 | |
|
143 | |
@Override |
144 | |
public EntityPhone inactivatePhone(String string) throws RiceIllegalArgumentException, RiceIllegalStateException { |
145 | 0 | return nextDecorator.inactivatePhone(string); |
146 | |
} |
147 | |
|
148 | |
@Override |
149 | |
public EntityName inactivateName(String string) throws RiceIllegalArgumentException, RiceIllegalStateException { |
150 | 0 | return nextDecorator.inactivateName(string); |
151 | |
} |
152 | |
|
153 | |
@Override |
154 | |
public EntityTypeContactInfo inactivateEntityTypeContactInfo(String string, String string1) throws RiceIllegalArgumentException, RiceIllegalStateException { |
155 | 0 | return nextDecorator.inactivateEntityTypeContactInfo(string, string1); |
156 | |
} |
157 | |
|
158 | |
@Override |
159 | |
public Entity inactivateEntity(String string) throws RiceIllegalArgumentException, RiceIllegalStateException { |
160 | 0 | return nextDecorator.inactivateEntity(string); |
161 | |
} |
162 | |
|
163 | |
@Override |
164 | |
public EntityEmployment inactivateEmployment(String string) throws RiceIllegalArgumentException, RiceIllegalStateException { |
165 | 0 | return nextDecorator.inactivateEmployment(string); |
166 | |
} |
167 | |
|
168 | |
@Override |
169 | |
public EntityEmail inactivateEmail(String string) throws RiceIllegalArgumentException, RiceIllegalStateException { |
170 | 0 | return nextDecorator.inactivateEmail(string); |
171 | |
} |
172 | |
|
173 | |
@Override |
174 | |
public EntityCitizenship inactivateCitizenship(String string) throws RiceIllegalArgumentException, RiceIllegalStateException { |
175 | 0 | return nextDecorator.inactivateCitizenship(string); |
176 | |
} |
177 | |
|
178 | |
@Override |
179 | |
public EntityAffiliation inactivateAffiliation(String string) throws RiceIllegalArgumentException, RiceIllegalStateException { |
180 | 0 | return nextDecorator.inactivateAffiliation(string); |
181 | |
} |
182 | |
|
183 | |
|
184 | |
|
185 | |
|
186 | |
|
187 | |
|
188 | |
|
189 | |
|
190 | |
@Override |
191 | |
public EntityNamePrincipalName getDefaultNamesForPrincipalId(@WebParam(name = "principalId") String principalId) { |
192 | 0 | return nextDecorator.getDefaultNamesForPrincipalId(principalId); |
193 | |
} |
194 | |
|
195 | |
@Override |
196 | |
public EntityAddress inactivateAddress(String string) throws RiceIllegalArgumentException, RiceIllegalStateException { |
197 | 0 | return nextDecorator.inactivateAddress(string); |
198 | |
} |
199 | |
|
200 | |
@Override |
201 | |
public Principal getPrincipalByPrincipalNameAndPassword(String string, String string1) throws RiceIllegalArgumentException { |
202 | 0 | return nextDecorator.getPrincipalByPrincipalNameAndPassword(string, string1); |
203 | |
} |
204 | |
|
205 | |
@Override |
206 | |
public Principal getPrincipalByPrincipalName(String string) throws RiceIllegalArgumentException { |
207 | 0 | return nextDecorator.getPrincipalByPrincipalName(string); |
208 | |
} |
209 | |
|
210 | |
@Override |
211 | |
public Principal getPrincipal(String string) throws RiceIllegalArgumentException { |
212 | 0 | return nextDecorator.getPrincipal(string); |
213 | |
} |
214 | |
|
215 | |
@Override |
216 | |
public CodedAttribute getPhoneType(String string) throws RiceIllegalArgumentException { |
217 | 0 | return nextDecorator.getPhoneType(string); |
218 | |
} |
219 | |
|
220 | |
@Override |
221 | |
public CodedAttribute getNameType(String string) throws RiceIllegalArgumentException { |
222 | 0 | return nextDecorator.getNameType(string); |
223 | |
} |
224 | |
|
225 | |
@Override |
226 | |
public EntityExternalIdentifierType getExternalIdentifierType(String string) throws RiceIllegalArgumentException { |
227 | 0 | return nextDecorator.getExternalIdentifierType(string); |
228 | |
} |
229 | |
|
230 | |
@Override |
231 | |
public CodedAttribute getEntityType(String string) throws RiceIllegalArgumentException { |
232 | 0 | return nextDecorator.getEntityType(string); |
233 | |
} |
234 | |
|
235 | |
@Override |
236 | |
public EntityPrivacyPreferences getEntityPrivacyPreferences(String string) throws RiceIllegalArgumentException { |
237 | 0 | return nextDecorator.getEntityPrivacyPreferences(string); |
238 | |
} |
239 | |
|
240 | |
@Override |
241 | |
public EntityDefault getEntityDefaultByPrincipalName(String string) throws RiceIllegalArgumentException { |
242 | 0 | return nextDecorator.getEntityDefaultByPrincipalName(string); |
243 | |
} |
244 | |
|
245 | |
|
246 | |
|
247 | |
|
248 | |
|
249 | |
|
250 | |
|
251 | |
|
252 | |
|
253 | |
|
254 | |
|
255 | |
|
256 | |
|
257 | |
|
258 | |
@Override |
259 | |
public EntityDefault getEntityDefaultByEmployeeId(@WebParam(name = "employeeId") String employeeId) throws RiceIllegalArgumentException { |
260 | 0 | return nextDecorator.getEntityDefaultByEmployeeId(employeeId); |
261 | |
} |
262 | |
|
263 | |
@Override |
264 | |
public EntityDefault getEntityDefaultByPrincipalId(String string) throws RiceIllegalArgumentException { |
265 | 0 | return nextDecorator.getEntityDefaultByPrincipalId(string); |
266 | |
} |
267 | |
|
268 | |
@Override |
269 | |
public EntityDefault getEntityDefault(String string) throws RiceIllegalArgumentException { |
270 | 0 | return nextDecorator.getEntityDefault(string); |
271 | |
} |
272 | |
|
273 | |
@Override |
274 | |
public Entity getEntityByPrincipalName(String string) throws RiceIllegalArgumentException { |
275 | 0 | return nextDecorator.getEntityByPrincipalName(string); |
276 | |
} |
277 | |
|
278 | |
|
279 | |
|
280 | |
|
281 | |
|
282 | |
|
283 | |
|
284 | |
|
285 | |
|
286 | |
|
287 | |
|
288 | |
|
289 | |
@Override |
290 | |
public Entity getEntityByEmployeeId(@WebParam(name = "employeeId") String employeeId) throws RiceIllegalArgumentException { |
291 | 0 | return nextDecorator.getEntityByEmployeeId(employeeId); |
292 | |
} |
293 | |
|
294 | |
@Override |
295 | |
public Entity getEntityByPrincipalId(String string) throws RiceIllegalArgumentException { |
296 | 0 | return nextDecorator.getEntityByPrincipalId(string); |
297 | |
} |
298 | |
|
299 | |
@Override |
300 | |
public Entity getEntity(String string) throws RiceIllegalArgumentException { |
301 | 0 | return nextDecorator.getEntity(string); |
302 | |
} |
303 | |
|
304 | |
@Override |
305 | |
public CodedAttribute getEmploymentType(String string) throws RiceIllegalArgumentException { |
306 | 0 | return nextDecorator.getEmploymentType(string); |
307 | |
} |
308 | |
|
309 | |
@Override |
310 | |
public CodedAttribute getEmploymentStatus(String string) throws RiceIllegalArgumentException { |
311 | 0 | return nextDecorator.getEmploymentStatus(string); |
312 | |
} |
313 | |
|
314 | |
@Override |
315 | |
public CodedAttribute getEmailType(String string) throws RiceIllegalArgumentException { |
316 | 0 | return nextDecorator.getEmailType(string); |
317 | |
} |
318 | |
|
319 | |
@Override |
320 | |
public CodedAttribute getCitizenshipStatus(String string) throws RiceIllegalArgumentException { |
321 | 0 | return nextDecorator.getCitizenshipStatus(string); |
322 | |
} |
323 | |
|
324 | |
@Override |
325 | |
public EntityAffiliationType getAffiliationType(String string) throws RiceIllegalArgumentException { |
326 | 0 | return nextDecorator.getAffiliationType(string); |
327 | |
} |
328 | |
|
329 | |
@Override |
330 | |
public CodedAttribute getAddressType(String string) throws RiceIllegalArgumentException { |
331 | 0 | return nextDecorator.getAddressType(string); |
332 | |
} |
333 | |
|
334 | |
@Override |
335 | |
public EntityDefaultQueryResults findEntityDefaults(QueryByCriteria qbc) throws RiceIllegalArgumentException { |
336 | 0 | return nextDecorator.findEntityDefaults(qbc); |
337 | |
} |
338 | |
|
339 | |
@Override |
340 | |
public EntityQueryResults findEntities(QueryByCriteria qbc) throws RiceIllegalArgumentException { |
341 | 0 | return nextDecorator.findEntities(qbc); |
342 | |
} |
343 | |
|
344 | |
@Override |
345 | |
public Entity createEntity(Entity entity) throws RiceIllegalArgumentException, RiceIllegalStateException { |
346 | 0 | return nextDecorator.createEntity(entity); |
347 | |
} |
348 | |
|
349 | |
@Override |
350 | |
public EntityVisa addVisaToEntity(EntityVisa ev) throws RiceIllegalArgumentException, RiceIllegalStateException { |
351 | 0 | return nextDecorator.addVisaToEntity(ev); |
352 | |
} |
353 | |
|
354 | |
@Override |
355 | |
public EntityResidency addResidencyToEntity(EntityResidency er) throws RiceIllegalArgumentException, RiceIllegalStateException { |
356 | 0 | return nextDecorator.addResidencyToEntity(er); |
357 | |
} |
358 | |
|
359 | |
@Override |
360 | |
public EntityPrivacyPreferences addPrivacyPreferencesToEntity(EntityPrivacyPreferences epp) throws RiceIllegalArgumentException, RiceIllegalStateException { |
361 | 0 | return nextDecorator.addPrivacyPreferencesToEntity(epp); |
362 | |
} |
363 | |
|
364 | |
@Override |
365 | |
public Principal addPrincipalToEntity(Principal prncpl) throws RiceIllegalArgumentException, RiceIllegalStateException { |
366 | 0 | return nextDecorator.addPrincipalToEntity(prncpl); |
367 | |
} |
368 | |
|
369 | |
@Override |
370 | |
public EntityPhone addPhoneToEntity(EntityPhone ep) throws RiceIllegalArgumentException, RiceIllegalStateException { |
371 | 0 | return nextDecorator.addPhoneToEntity(ep); |
372 | |
} |
373 | |
|
374 | |
@Override |
375 | |
public EntityName addNameToEntity(EntityName en) throws RiceIllegalArgumentException, RiceIllegalStateException { |
376 | 0 | return nextDecorator.addNameToEntity(en); |
377 | |
} |
378 | |
|
379 | |
@Override |
380 | |
public EntityExternalIdentifier addExternalIdentifierToEntity(EntityExternalIdentifier eei) throws RiceIllegalArgumentException, RiceIllegalStateException { |
381 | 0 | return nextDecorator.addExternalIdentifierToEntity(eei); |
382 | |
} |
383 | |
|
384 | |
@Override |
385 | |
public EntityEthnicity addEthnicityToEntity(EntityEthnicity ee) throws RiceIllegalArgumentException, RiceIllegalStateException { |
386 | 0 | return nextDecorator.addEthnicityToEntity(ee); |
387 | |
} |
388 | |
|
389 | |
@Override |
390 | |
public EntityTypeContactInfo addEntityTypeContactInfoToEntity(EntityTypeContactInfo etci) throws RiceIllegalArgumentException, RiceIllegalStateException { |
391 | 0 | return nextDecorator.addEntityTypeContactInfoToEntity(etci); |
392 | |
} |
393 | |
|
394 | |
@Override |
395 | |
public EntityEmployment addEmploymentToEntity(EntityEmployment ee) throws RiceIllegalArgumentException, RiceIllegalStateException { |
396 | 0 | return nextDecorator.addEmploymentToEntity(ee); |
397 | |
} |
398 | |
|
399 | |
@Override |
400 | |
public EntityEmail addEmailToEntity(EntityEmail ee) throws RiceIllegalArgumentException, RiceIllegalStateException { |
401 | 0 | return nextDecorator.addEmailToEntity(ee); |
402 | |
} |
403 | |
|
404 | |
@Override |
405 | |
public EntityCitizenship addCitizenshipToEntity(EntityCitizenship ec) throws RiceIllegalArgumentException, RiceIllegalStateException { |
406 | 0 | return nextDecorator.addCitizenshipToEntity(ec); |
407 | |
} |
408 | |
|
409 | |
@Override |
410 | |
public EntityBioDemographics addBioDemographicsToEntity(EntityBioDemographics ebd) throws RiceIllegalArgumentException, RiceIllegalStateException { |
411 | 0 | return nextDecorator.addBioDemographicsToEntity(ebd); |
412 | |
} |
413 | |
|
414 | |
@Override |
415 | |
public EntityAffiliation addAffiliationToEntity(EntityAffiliation ea) throws RiceIllegalArgumentException, RiceIllegalStateException { |
416 | 0 | return nextDecorator.addAffiliationToEntity(ea); |
417 | |
} |
418 | |
|
419 | |
@Override |
420 | |
public EntityAddress addAddressToEntity(EntityAddress ea) throws RiceIllegalArgumentException, RiceIllegalStateException { |
421 | 0 | return nextDecorator.addAddressToEntity(ea); |
422 | |
} |
423 | |
|
424 | |
|
425 | |
|
426 | |
} |