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