1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kim.api.role;
17
18 import org.kuali.rice.core.api.criteria.QueryByCriteria;
19 import org.kuali.rice.core.api.delegation.DelegationType;
20 import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
21 import org.kuali.rice.core.api.exception.RiceIllegalStateException;
22 import org.kuali.rice.core.api.util.jaxb.MapStringStringAdapter;
23 import org.kuali.rice.kim.api.KimApiConstants;
24 import org.kuali.rice.kim.api.common.delegate.DelegateMember;
25 import org.kuali.rice.kim.api.common.delegate.DelegateType;
26 import org.kuali.rice.kim.api.permission.Permission;
27 import org.kuali.rice.kim.api.responsibility.Responsibility;
28 import org.springframework.cache.annotation.CacheEvict;
29 import org.springframework.cache.annotation.Cacheable;
30
31 import javax.jws.WebMethod;
32 import javax.jws.WebParam;
33 import javax.jws.WebResult;
34 import javax.jws.WebService;
35 import javax.jws.soap.SOAPBinding;
36 import javax.xml.bind.annotation.XmlElement;
37 import javax.xml.bind.annotation.XmlElementWrapper;
38 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
39 import java.util.Collection;
40 import java.util.List;
41 import java.util.Map;
42 import java.util.Set;
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66 @WebService(name = "roleService", targetNamespace = KimApiConstants.Namespaces.KIM_NAMESPACE_2_0 )
67 @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
68 public interface RoleService {
69
70
71
72
73
74
75
76
77 @WebMethod(operationName="createRole")
78 @WebResult(name = "role")
79 @CacheEvict(value={Permission.Cache.NAME, Responsibility.Cache.NAME, Role.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME}, allEntries = true)
80 Role createRole(@WebParam(name = "role") Role role)
81 throws RiceIllegalArgumentException, RiceIllegalStateException;
82
83
84
85
86
87
88
89
90 @WebMethod(operationName="updateRole")
91 @WebResult(name = "role")
92 @CacheEvict(value={Permission.Cache.NAME, Responsibility.Cache.NAME, Role.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME}, allEntries = true)
93 Role updateRole(@WebParam(name = "role") Role role)
94 throws RiceIllegalArgumentException, RiceIllegalStateException;
95
96
97
98
99
100
101
102
103 @WebMethod(operationName = "getRole")
104 @WebResult(name = "role")
105 @Cacheable(value= Role.Cache.NAME, key="'id=' + #p0")
106 Role getRole(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
107
108
109
110
111
112
113
114
115 @WebMethod(operationName = "getRoles")
116 @XmlElementWrapper(name = "roles", required = true)
117 @XmlElement(name = "role", required = false)
118 @WebResult(name = "roles")
119 @Cacheable(value= Role.Cache.NAME, key="'ids=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p0)")
120 List<Role> getRoles( @WebParam(name="ids") List<String> ids ) throws RiceIllegalArgumentException;
121
122
123
124
125
126
127
128
129
130 @WebMethod(operationName = "getRoleByNamespaceCodeAndName")
131 @WebResult(name = "role")
132 @Cacheable(value=Role.Cache.NAME, key="'namespaceCode=' + #p0 + '|' + 'name=' + #p1")
133 Role getRoleByNamespaceCodeAndName(@WebParam(name = "namespaceCode") String namespaceCode,
134 @WebParam(name = "name") String name) throws RiceIllegalArgumentException;
135
136
137
138
139
140
141
142
143
144
145 @WebMethod(operationName = "getRoleIdByNamespaceCodeAndName")
146 @WebResult(name = "roleId")
147 @Cacheable(value=Role.Cache.NAME, key="'{getRoleIdByNamespaceCodeAndName}' + 'namespaceCode=' + #p0 + '|' + 'name=' + #p1")
148 String getRoleIdByNamespaceCodeAndName(@WebParam(name = "namespaceCode") String namespaceCode,
149 @WebParam(name = "name") String name) throws RiceIllegalArgumentException;
150
151
152
153
154
155
156
157
158 @WebMethod(operationName = "isRoleActive")
159 @WebResult(name = "isRoleActive")
160 @Cacheable(value=Role.Cache.NAME, key="'{isRoleActive}' + 'id=' + #p0")
161 boolean isRoleActive( @WebParam(name="id") String id ) throws RiceIllegalArgumentException;
162
163
164
165
166
167
168
169
170
171
172
173
174 @WebMethod(operationName = "getRoleQualifersForPrincipalByRoleIds")
175 @XmlElementWrapper(name = "attributes", required = true)
176 @XmlElement(name = "attribute", required = false)
177 @WebResult(name = "attributes")
178 @XmlJavaTypeAdapter(value = MapStringStringAdapter.class)
179 List<Map<String, String>> getRoleQualifersForPrincipalByRoleIds(@WebParam(name = "principalId") String principalId,
180 @WebParam(name = "roleIds") List<String> roleIds, @WebParam(name = "qualification") @XmlJavaTypeAdapter(
181 value = MapStringStringAdapter.class) Map<String, String> qualification)
182 throws RiceIllegalArgumentException;
183
184
185
186
187
188
189
190
191
192
193
194
195
196 @WebMethod(operationName = "getRoleQualifersForPrincipalByNamespaceAndRolename")
197 @XmlElementWrapper(name = "attributes", required = true)
198 @XmlElement(name = "attribute", required = false)
199 @WebResult(name = "attributes")
200 @XmlJavaTypeAdapter(value = MapStringStringAdapter.class)
201 List<Map<String, String>> getRoleQualifersForPrincipalByNamespaceAndRolename(
202 @WebParam(name = "principalId") String principalId, @WebParam(name = "namespaceCode") String namespaceCode,
203 @WebParam(name = "roleName") String roleName, @WebParam(name = "qualification") @XmlJavaTypeAdapter(
204 value = MapStringStringAdapter.class) Map<String, String> qualification)
205 throws RiceIllegalArgumentException;
206
207
208
209
210
211
212
213
214
215
216
217
218 @WebMethod(operationName = "getNestedRoleQualifersForPrincipalByNamespaceAndRolename")
219 @XmlElementWrapper(name = "attributes", required = true)
220 @XmlElement(name = "attribute", required = false)
221 @WebResult(name = "attributes")
222 @XmlJavaTypeAdapter(value = MapStringStringAdapter.class)
223 List<Map<String, String>> getNestedRoleQualifersForPrincipalByNamespaceAndRolename(
224 @WebParam(name = "principalId") String principalId, @WebParam(name = "namespaceCode") String namespaceCode,
225 @WebParam(name = "roleName") String roleName, @WebParam(name = "qualification") @XmlJavaTypeAdapter(
226 value = MapStringStringAdapter.class) Map<String, String> qualification)
227 throws RiceIllegalArgumentException;
228
229
230
231
232
233
234
235
236
237
238
239 @WebMethod(operationName = "getNestedRoleQualifiersForPrincipalByRoleIds")
240 @XmlElementWrapper(name = "attributes", required = true)
241 @XmlElement(name = "attribute", required = false)
242 @WebResult(name = "attributes")
243 @XmlJavaTypeAdapter(value = MapStringStringAdapter.class)
244 List<Map<String, String>> getNestedRoleQualifiersForPrincipalByRoleIds(
245 @WebParam(name = "principalId") String principalId, @WebParam(name = "roleIds") List<String> roleIds,
246 @WebParam(name = "qualification") @XmlJavaTypeAdapter(
247 value = MapStringStringAdapter.class) Map<String, String> qualification)
248 throws RiceIllegalArgumentException;
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268 @WebMethod(operationName = "getRoleMembers")
269 @XmlElementWrapper(name = "roleMemberships", required = true)
270 @XmlElement(name = "roleMembership", required = false)
271 @WebResult(name = "roleMemberships")
272 @Cacheable(value= RoleMember.Cache.NAME,
273 key="'roleIds=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p0) + '|' + 'qualification=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).mapKey(#p1)",
274 condition="!T(org.kuali.rice.kim.api.cache.KimCacheUtils).isDynamicRoleMembership(#p0)" )
275 List<RoleMembership> getRoleMembers(
276 @WebParam(name="roleIds")
277 List<String> roleIds,
278 @WebParam(name="qualification")
279 @XmlJavaTypeAdapter(value = MapStringStringAdapter.class)
280 Map<String, String> qualification )
281 throws RiceIllegalArgumentException;
282
283
284
285
286
287
288
289
290
291
292 @WebMethod(operationName = "getRoleMemberPrincipalIds")
293 @XmlElementWrapper(name = "principalIds", required = true)
294 @XmlElement(name = "principalId", required = false)
295 @WebResult(name = "principalIds")
296 @Cacheable(value= RoleMember.Cache.NAME,
297 key="'namespaceCode=' + #p0 + '|' + 'roleName=' + #p1 + '|' + 'qualification=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).mapKey(#p2)",
298 condition="!T(org.kuali.rice.kim.api.cache.KimCacheUtils).isDynamicMembshipRoleByNamespaceAndName(#p0, #p1)" )
299 Collection<String> getRoleMemberPrincipalIds(@WebParam(name="namespaceCode") String namespaceCode,
300 @WebParam(name="roleName") String roleName,
301 @WebParam(name="qualification")
302 @XmlJavaTypeAdapter(value = MapStringStringAdapter.class)
303 Map<String, String> qualification)
304 throws RiceIllegalArgumentException;
305
306
307
308
309
310
311
312
313
314
315 @WebMethod(operationName = "principalHasRole")
316 @WebResult(name = "principalHasRole")
317 boolean principalHasRole( @WebParam(name="principalId") String principalId,
318 @WebParam(name="roleIds") List<String> roleIds,
319 @WebParam(name="qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification )
320 throws RiceIllegalArgumentException;
321
322
323
324
325
326
327
328
329
330
331
332
333 @WebMethod(operationName = "principalHasRoleCheckDelegation")
334 @WebResult(name = "principalHasRoleCheckDelegation")
335 boolean principalHasRole( @WebParam(name="principalId") String principalId,
336 @WebParam(name="roleIds") List<String> roleIds,
337 @WebParam(name="qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification, boolean checkDelegations)
338 throws RiceIllegalArgumentException;
339
340
341
342
343
344
345
346
347
348
349
350
351 @WebMethod(operationName = "getPrincipalIdSubListWithRole")
352 @XmlElementWrapper(name = "principalIds", required = true)
353 @XmlElement(name = "principalId", required = false)
354 @WebResult(name = "principalIds")
355 @Cacheable(value= RoleMember.Cache.NAME,
356 key="'getPrincipalIdSubListWithRole' + 'principalIds=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p0) + '|' + 'roleNamespaceCode=' + #p1 + '|' + 'roleName=' + #p2 + '|' + 'qualification=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).mapKey(#p3)",
357 condition="!T(org.kuali.rice.kim.api.cache.KimCacheUtils).isDynamicMembshipRoleByNamespaceAndName(#p1, #p2)" )
358 List<String> getPrincipalIdSubListWithRole( @WebParam(name="principalIds") List<String> principalIds,
359 @WebParam(name="roleNamespaceCode") String roleNamespaceCode,
360 @WebParam(name="roleName") String roleName,
361 @WebParam(name="qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification )
362 throws RiceIllegalArgumentException;
363
364
365
366
367
368
369
370
371
372 @WebMethod(operationName = "getRolesSearchResults")
373 @WebResult(name = "results")
374 RoleQueryResults findRoles(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391 @WebMethod(operationName = "getFirstLevelRoleMembers")
392 @XmlElementWrapper(name = "roleMemberships", required = true)
393 @XmlElement(name = "roleMembership", required = false)
394 @WebResult(name = "roleMemberships")
395 @Cacheable(value=RoleMembership.Cache.NAME, key="'roleIds=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p0)")
396 List<RoleMembership> getFirstLevelRoleMembers(
397 @WebParam(name="roleIds") List<String> roleIds) throws RiceIllegalArgumentException;
398
399
400
401
402
403
404
405
406 @WebMethod(operationName = "findRoleMemberships")
407 @WebResult(name = "results")
408 RoleMembershipQueryResults findRoleMemberships(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
409
410
411
412
413
414
415
416
417
418 @WebMethod(operationName = "getMemberParentRoleIds")
419 @XmlElementWrapper(name = "roleIds", required = true)
420 @XmlElement(name = "roleId", required = false)
421 @WebResult(name = "roleIds")
422 @Cacheable(value=RoleMembership.Cache.NAME, key="'memberType=' + #p0 + '|' + 'memberId=' + #p1")
423 List<String> getMemberParentRoleIds(String memberType, String memberId) throws RiceIllegalArgumentException;
424
425
426
427
428
429
430
431
432
433 @WebMethod(operationName = "findRoleMembers")
434 @WebResult(name = "results")
435 RoleMemberQueryResults findRoleMembers(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
436
437
438
439
440
441
442
443
444
445 @WebMethod(operationName = "getRoleTypeRoleMemberIds")
446 @XmlElementWrapper(name = "memberIds", required = true)
447 @XmlElement(name = "memberId", required = false)
448 @WebResult(name = "memberIds")
449 @Cacheable(value=RoleMember.Cache.NAME, key="'{getRoleTypeRoleMemberIds}' + 'roleId=' + #p0")
450 Set<String> getRoleTypeRoleMemberIds(@WebParam(name = "roleId") String roleId) throws RiceIllegalArgumentException;
451
452
453
454
455
456
457
458
459
460 @WebMethod(operationName = "findDelegateMembers")
461 @WebResult(name = "results")
462 DelegateMemberQueryResults findDelegateMembers(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
463
464
465
466
467
468
469
470
471 @WebMethod(operationName = "getDelegationMembersByDelegationId")
472 @XmlElementWrapper(name = "delegateMembers", required = true)
473 @XmlElement(name = "delegateMember", required = false)
474 @WebResult(name = "delegateMembers")
475 @Cacheable(value=DelegateMember.Cache.NAME, key="'delegateId=' + #p0")
476 List<DelegateMember> getDelegationMembersByDelegationId(
477 @WebParam(name = "delegateId") String delegateId) throws RiceIllegalArgumentException;
478
479
480
481
482
483
484
485
486
487
488 @WebMethod(operationName = "getDelegationMemberByDelegationAndMemberId")
489 @WebResult(name = "delegateMember")
490 @Cacheable(value=DelegateMember.Cache.NAME, key="'delegationId=' + #p0 + '|' + 'memberId=' + #p1")
491 DelegateMember getDelegationMemberByDelegationAndMemberId(
492 @WebParam(name = "delegationId") String delegationId, @WebParam(name = "memberId") String memberId) throws RiceIllegalArgumentException;
493
494
495
496
497
498
499
500
501
502 @WebMethod(operationName = "getDelegationMemberById")
503 @WebResult(name = "delegateMember")
504 @Cacheable(value=DelegateMember.Cache.NAME, key="'id=' + #p0")
505 DelegateMember getDelegationMemberById(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
506
507
508
509
510
511
512
513
514
515 @WebMethod(operationName = "getRoleResponsibilities")
516 @XmlElementWrapper(name = "roleResponsibilities", required = true)
517 @XmlElement(name = "roleResponsibility", required = false)
518 @WebResult(name = "roleResponsibilities")
519 @Cacheable(value=RoleResponsibility.Cache.NAME, key="'roleId=' + #p0")
520 List<RoleResponsibility> getRoleResponsibilities(@WebParam(name="roleId") String roleId) throws RiceIllegalArgumentException;
521
522
523
524
525
526
527
528
529
530 @WebMethod(operationName = "getRoleMemberResponsibilityActions")
531 @XmlElementWrapper(name = "roleResponsibilityActions", required = true)
532 @XmlElement(name = "roleResponsibilityAction", required = false)
533 @WebResult(name = "roleResponsibilityActions")
534 @Cacheable(value=RoleResponsibility.Cache.NAME, key="'roleMemberId=' + #p0")
535 List<RoleResponsibilityAction> getRoleMemberResponsibilityActions(
536 @WebParam(name = "roleMemberId") String roleMemberId) throws RiceIllegalArgumentException;
537
538
539
540
541
542
543
544
545
546
547 @WebMethod(operationName = "getDelegateTypeByRoleIdAndDelegateTypeCode")
548 @WebResult(name = "delegateType")
549 @Cacheable(value=DelegateType.Cache.NAME, key="'roleId=' + #p0 + '|' + 'delegateType=' + #p1")
550 DelegateType getDelegateTypeByRoleIdAndDelegateTypeCode(@WebParam(name = "roleId") String roleId,
551 @WebParam(name = "delegateType") DelegationType delegateType) throws RiceIllegalArgumentException;
552
553
554
555
556
557
558
559
560
561 @WebMethod(operationName = "getDelegateTypeByDelegationId")
562 @WebResult(name = "delegateType")
563 @Cacheable(value=DelegateType.Cache.NAME, key="'delegationId=' + #p0")
564 DelegateType getDelegateTypeByDelegationId(@WebParam(name = "delegationId") String delegationId) throws RiceIllegalArgumentException;
565
566
567
568
569
570
571
572
573
574
575
576
577 @WebMethod(operationName = "assignPrincipalToRole")
578 @WebResult(name = "roleMember")
579 @CacheEvict(value={Role.Cache.NAME, Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
580 RoleMember assignPrincipalToRole(@WebParam(name="principalId") String principalId,
581 @WebParam(name="namespaceCode")
582 String namespaceCode,
583 @WebParam(name="roleName")
584 String roleName,
585 @WebParam(name="qualifications")
586 @XmlJavaTypeAdapter(value = MapStringStringAdapter.class)
587 Map<String, String> qualifications)
588 throws RiceIllegalArgumentException;
589
590
591
592
593
594
595
596
597
598
599
600
601 @WebMethod(operationName = "assignGroupToRole")
602 @WebResult(name = "roleMember")
603 @CacheEvict(value={Role.Cache.NAME, Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
604 RoleMember assignGroupToRole(@WebParam(name="groupId") String groupId,
605 @WebParam(name="namespaceCode") String namespaceCode,
606 @WebParam(name="roleName") String roleName,
607 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualifications)
608 throws RiceIllegalArgumentException;
609
610
611
612
613
614
615
616
617
618
619
620
621 @WebMethod(operationName = "assignRoleToRole")
622 @WebResult(name = "roleMember")
623 @CacheEvict(value={Role.Cache.NAME, Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
624 RoleMember assignRoleToRole(@WebParam(name="roleId") String roleId,
625 @WebParam(name="namespaceCode") String namespaceCode,
626 @WebParam(name="roleName") String roleName,
627 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualifications)
628 throws RiceIllegalArgumentException;
629
630
631
632
633
634
635
636
637
638 @WebMethod(operationName = "createRoleMember")
639 @WebResult(name = "roleMember")
640 @CacheEvict(value={Role.Cache.NAME, Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
641 RoleMember createRoleMember(
642 @WebParam(name = "roleMember")
643 RoleMember roleMember) throws RiceIllegalArgumentException, RiceIllegalStateException;
644
645
646
647
648
649
650
651
652
653 @WebMethod(operationName = "updateRoleMember")
654 @WebResult(name = "roleMember")
655 @CacheEvict(value={Role.Cache.NAME, Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
656 RoleMember updateRoleMember(@WebParam(name = "roleMember") RoleMember roleMember) throws RiceIllegalArgumentException, RiceIllegalStateException;
657
658
659
660
661
662
663
664
665
666 @WebMethod(operationName = "updateDelegateMember")
667 @WebResult(name = "delegateMember")
668 @CacheEvict(value={Role.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
669 DelegateMember updateDelegateMember(@WebParam(name = "delegateMember") DelegateMember delegateMember) throws RiceIllegalArgumentException, RiceIllegalStateException;
670
671
672
673
674
675
676
677
678
679 @WebMethod(operationName = "createDelegateMember")
680 @WebResult(name = "delegateMember")
681 @CacheEvict(value={Role.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
682 DelegateMember createDelegateMember(
683 @WebParam(name = "delegateMember")
684 DelegateMember delegateMember) throws RiceIllegalArgumentException, RiceIllegalStateException;
685
686
687
688
689
690
691
692 @WebMethod(operationName = "removeDelegateMembers")
693 @CacheEvict(value={Role.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
694 void removeDelegateMembers(
695 @WebParam(name = "delegateMembers")
696 List<DelegateMember> delegateMembers) throws RiceIllegalArgumentException, RiceIllegalStateException;
697
698
699
700
701
702
703
704
705
706
707 @WebMethod(operationName = "createRoleResponsibilityAction")
708 @CacheEvict(value={Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
709 RoleResponsibilityAction createRoleResponsibilityAction(@WebParam(name = "roleResponsibilityAction") RoleResponsibilityAction roleResponsibilityAction) throws RiceIllegalArgumentException;
710
711
712
713
714
715
716
717
718
719
720 @WebMethod(operationName = "updateRoleResponsibilityAction")
721 @CacheEvict(value={Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
722 RoleResponsibilityAction updateRoleResponsibilityAction(@WebParam(name = "roleResponsibilityAction") RoleResponsibilityAction roleResponsibilityAction) throws RiceIllegalArgumentException;
723
724
725
726
727
728
729
730
731
732 @WebMethod(operationName = "deleteRoleResponsibilityAction")
733 @CacheEvict(value={Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
734 void deleteRoleResponsibilityAction(@WebParam(name = "roleResponsibilityActionId") String roleResponsibilityActionId) throws RiceIllegalArgumentException;
735
736
737
738
739
740
741
742
743
744
745 @WebMethod(operationName = "createDelegateType")
746 @CacheEvict(value={Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
747 DelegateType createDelegateType(@WebParam(name="delegateType") DelegateType delegateType) throws RiceIllegalArgumentException, RiceIllegalStateException;
748
749
750
751
752
753
754
755
756
757 @WebMethod(operationName = "updateDelegateType")
758 @CacheEvict(value={Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
759 DelegateType updateDelegateType(@WebParam(name="delegateType") DelegateType delegateType) throws RiceIllegalArgumentException, RiceIllegalStateException;
760
761
762
763
764
765
766
767
768
769
770
771
772 @WebMethod(operationName = "removePrincipalFromRole")
773 @CacheEvict(value={Role.Cache.NAME, Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
774 void removePrincipalFromRole(@WebParam(name="principalId") String principalId,
775 @WebParam(name="namespaceCode") String namespaceCode,
776 @WebParam(name="roleName") String roleName,
777 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualifications) throws RiceIllegalArgumentException;
778
779
780
781
782
783
784
785
786
787
788
789
790 @WebMethod(operationName = "removeGroupFromRole")
791 @CacheEvict(value={Role.Cache.NAME, Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
792 void removeGroupFromRole(@WebParam(name="groupId") String groupId,
793 @WebParam(name="namespaceCode") String namespaceCode,
794 @WebParam(name="roleName") String roleName,
795 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualifications) throws RiceIllegalArgumentException;
796
797
798
799
800
801
802
803
804
805
806
807
808 @WebMethod(operationName = "removeRoleFromRole")
809 @CacheEvict(value={Role.Cache.NAME, Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
810 void removeRoleFromRole(@WebParam(name="roleId") String roleId,
811 @WebParam(name="namespaceCode") String namespaceCode,
812 @WebParam(name="roleName") String roleName,
813 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualifications) throws RiceIllegalArgumentException;
814
815
816
817
818
819
820
821
822
823 @WebMethod(operationName = "assignPermissionToRole")
824 @CacheEvict(value={Role.Cache.NAME, Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
825 void assignPermissionToRole(
826 @WebParam(name = "permissionId") String permissionId,
827 @WebParam(name = "roleId") String roleId)
828 throws RiceIllegalArgumentException;
829
830
831
832
833
834
835
836
837
838 @WebMethod(operationName = "revokePermissionFromRole")
839 @CacheEvict(value={Role.Cache.NAME, Permission.Cache.NAME, Responsibility.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
840 void revokePermissionFromRole(
841 @WebParam(name = "permissionId") String permissionId,
842 @WebParam(name = "roleId") String roleId)
843 throws RiceIllegalArgumentException;
844
845
846
847
848
849
850
851
852
853
854 @WebMethod(operationName = "isDerivedRole")
855 @WebResult(name = "isDerivedRole")
856 @Cacheable(value= Role.Cache.NAME, key="'{isDerivedRole}' + 'roleId=' + #p0")
857 boolean isDerivedRole(@WebParam(name = "roleId") String roleId) throws RiceIllegalArgumentException;
858
859
860
861
862
863
864
865
866
867 @WebMethod(operationName = "isDynamicRoleMembership")
868 @WebResult(name = "isDynamicRoleMembership")
869 @Cacheable(value= Role.Cache.NAME, key="'{isDynamicRoleMembership}' + 'roleId=' + #p0")
870 boolean isDynamicRoleMembership(@WebParam(name = "roleId") String roleId) throws RiceIllegalArgumentException;
871
872
873 @WebMethod(operationName = "notifyOnMemberRemoval")
874 void notifyOnMemberRemoval(@WebParam(name = "member") RoleMember member);
875 }