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 @Cacheable(value= RoleMember.Cache.NAME,
318 key="'{principalHasRole}' + 'principalId=' + #p0 + '|' + 'roleIds=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p1) + '|' + 'qualification=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).mapKey(#p2) + '|' + 'checkDelegations=true'",
319 condition="!T(org.kuali.rice.kim.api.cache.KimCacheUtils).isDynamicRoleMembership(#p1)" )
320 boolean principalHasRole( @WebParam(name="principalId") String principalId,
321 @WebParam(name="roleIds") List<String> roleIds,
322 @WebParam(name="qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification )
323 throws RiceIllegalArgumentException;
324
325
326
327
328
329
330
331
332
333
334
335
336 @WebMethod(operationName = "principalHasRoleCheckDelegation")
337 @WebResult(name = "principalHasRoleCheckDelegation")
338 @Cacheable(value= RoleMember.Cache.NAME,
339 key="'{principalHasRole}' + 'principalId=' + #p0 + '|' + 'roleIds=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p1) + '|' + 'qualification=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).mapKey(#p2) + '|' + 'checkDelegations=' + #p3",
340 condition="!T(org.kuali.rice.kim.api.cache.KimCacheUtils).isDynamicRoleMembership(#p1)" )
341 boolean principalHasRole( @WebParam(name="principalId") String principalId,
342 @WebParam(name="roleIds") List<String> roleIds,
343 @WebParam(name="qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification, boolean checkDelegations)
344 throws RiceIllegalArgumentException;
345
346
347
348
349
350
351
352
353
354
355
356
357 @WebMethod(operationName = "getPrincipalIdSubListWithRole")
358 @XmlElementWrapper(name = "principalIds", required = true)
359 @XmlElement(name = "principalId", required = false)
360 @WebResult(name = "principalIds")
361 @Cacheable(value= RoleMember.Cache.NAME,
362 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)",
363 condition="!T(org.kuali.rice.kim.api.cache.KimCacheUtils).isDynamicMembshipRoleByNamespaceAndName(#p1, #p2)" )
364 List<String> getPrincipalIdSubListWithRole( @WebParam(name="principalIds") List<String> principalIds,
365 @WebParam(name="roleNamespaceCode") String roleNamespaceCode,
366 @WebParam(name="roleName") String roleName,
367 @WebParam(name="qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification )
368 throws RiceIllegalArgumentException;
369
370
371
372
373
374
375
376
377
378 @WebMethod(operationName = "getRolesSearchResults")
379 @WebResult(name = "results")
380 RoleQueryResults findRoles(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397 @WebMethod(operationName = "getFirstLevelRoleMembers")
398 @XmlElementWrapper(name = "roleMemberships", required = true)
399 @XmlElement(name = "roleMembership", required = false)
400 @WebResult(name = "roleMemberships")
401 @Cacheable(value=RoleMembership.Cache.NAME, key="'roleIds=' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p0)")
402 List<RoleMembership> getFirstLevelRoleMembers(
403 @WebParam(name="roleIds") List<String> roleIds) throws RiceIllegalArgumentException;
404
405
406
407
408
409
410
411
412 @WebMethod(operationName = "findRoleMemberships")
413 @WebResult(name = "results")
414 RoleMembershipQueryResults findRoleMemberships(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
415
416
417
418
419
420
421
422
423
424 @WebMethod(operationName = "getMemberParentRoleIds")
425 @XmlElementWrapper(name = "roleIds", required = true)
426 @XmlElement(name = "roleId", required = false)
427 @WebResult(name = "roleIds")
428 @Cacheable(value=RoleMembership.Cache.NAME, key="'memberType=' + #p0 + '|' + 'memberId=' + #p1")
429 List<String> getMemberParentRoleIds(String memberType, String memberId) throws RiceIllegalArgumentException;
430
431
432
433
434
435
436
437
438
439 @WebMethod(operationName = "findRoleMembers")
440 @WebResult(name = "results")
441 RoleMemberQueryResults findRoleMembers(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
442
443
444
445
446
447
448
449
450
451 @WebMethod(operationName = "getRoleTypeRoleMemberIds")
452 @XmlElementWrapper(name = "memberIds", required = true)
453 @XmlElement(name = "memberId", required = false)
454 @WebResult(name = "memberIds")
455 @Cacheable(value=RoleMember.Cache.NAME, key="'{getRoleTypeRoleMemberIds}' + 'roleId=' + #p0")
456 Set<String> getRoleTypeRoleMemberIds(@WebParam(name = "roleId") String roleId) throws RiceIllegalArgumentException;
457
458
459
460
461
462
463
464
465
466 @WebMethod(operationName = "findDelegateMembers")
467 @WebResult(name = "results")
468 DelegateMemberQueryResults findDelegateMembers(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
469
470
471
472
473
474
475
476
477 @WebMethod(operationName = "getDelegationMembersByDelegationId")
478 @XmlElementWrapper(name = "delegateMembers", required = true)
479 @XmlElement(name = "delegateMember", required = false)
480 @WebResult(name = "delegateMembers")
481 @Cacheable(value=DelegateMember.Cache.NAME, key="'delegateId=' + #p0")
482 List<DelegateMember> getDelegationMembersByDelegationId(
483 @WebParam(name = "delegateId") String delegateId) throws RiceIllegalArgumentException;
484
485
486
487
488
489
490
491
492
493
494 @WebMethod(operationName = "getDelegationMemberByDelegationAndMemberId")
495 @WebResult(name = "delegateMember")
496 @Cacheable(value=DelegateMember.Cache.NAME, key="'delegationId=' + #p0 + '|' + 'memberId=' + #p1")
497 DelegateMember getDelegationMemberByDelegationAndMemberId(
498 @WebParam(name = "delegationId") String delegationId, @WebParam(name = "memberId") String memberId) throws RiceIllegalArgumentException;
499
500
501
502
503
504
505
506
507
508 @WebMethod(operationName = "getDelegationMemberById")
509 @WebResult(name = "delegateMember")
510 @Cacheable(value=DelegateMember.Cache.NAME, key="'id=' + #p0")
511 DelegateMember getDelegationMemberById(@WebParam(name = "id") String id) throws RiceIllegalArgumentException;
512
513
514
515
516
517
518
519
520
521 @WebMethod(operationName = "getRoleResponsibilities")
522 @XmlElementWrapper(name = "roleResponsibilities", required = true)
523 @XmlElement(name = "roleResponsibility", required = false)
524 @WebResult(name = "roleResponsibilities")
525 @Cacheable(value=RoleResponsibility.Cache.NAME, key="'roleId=' + #p0")
526 List<RoleResponsibility> getRoleResponsibilities(@WebParam(name="roleId") String roleId) throws RiceIllegalArgumentException;
527
528
529
530
531
532
533
534
535
536 @WebMethod(operationName = "getRoleMemberResponsibilityActions")
537 @XmlElementWrapper(name = "roleResponsibilityActions", required = true)
538 @XmlElement(name = "roleResponsibilityAction", required = false)
539 @WebResult(name = "roleResponsibilityActions")
540 @Cacheable(value=RoleResponsibility.Cache.NAME, key="'roleMemberId=' + #p0")
541 List<RoleResponsibilityAction> getRoleMemberResponsibilityActions(
542 @WebParam(name = "roleMemberId") String roleMemberId) throws RiceIllegalArgumentException;
543
544
545
546
547
548
549
550
551
552
553 @WebMethod(operationName = "getDelegateTypeByRoleIdAndDelegateTypeCode")
554 @WebResult(name = "delegateType")
555 @Cacheable(value=DelegateType.Cache.NAME, key="'roleId=' + #p0 + '|' + 'delegateType=' + #p1")
556 DelegateType getDelegateTypeByRoleIdAndDelegateTypeCode(@WebParam(name = "roleId") String roleId,
557 @WebParam(name = "delegateType") DelegationType delegateType) throws RiceIllegalArgumentException;
558
559
560
561
562
563
564
565
566
567 @WebMethod(operationName = "getDelegateTypeByDelegationId")
568 @WebResult(name = "delegateType")
569 @Cacheable(value=DelegateType.Cache.NAME, key="'delegationId=' + #p0")
570 DelegateType getDelegateTypeByDelegationId(@WebParam(name = "delegationId") String delegationId) throws RiceIllegalArgumentException;
571
572
573
574
575
576
577
578
579
580
581
582
583 @WebMethod(operationName = "assignPrincipalToRole")
584 @WebResult(name = "roleMember")
585 @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)
586 RoleMember assignPrincipalToRole(@WebParam(name="principalId") String principalId,
587 @WebParam(name="namespaceCode")
588 String namespaceCode,
589 @WebParam(name="roleName")
590 String roleName,
591 @WebParam(name="qualifications")
592 @XmlJavaTypeAdapter(value = MapStringStringAdapter.class)
593 Map<String, String> qualifications)
594 throws RiceIllegalArgumentException;
595
596
597
598
599
600
601
602
603
604
605
606
607 @WebMethod(operationName = "assignGroupToRole")
608 @WebResult(name = "roleMember")
609 @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)
610 RoleMember assignGroupToRole(@WebParam(name="groupId") String groupId,
611 @WebParam(name="namespaceCode") String namespaceCode,
612 @WebParam(name="roleName") String roleName,
613 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualifications)
614 throws RiceIllegalArgumentException;
615
616
617
618
619
620
621
622
623
624
625
626
627 @WebMethod(operationName = "assignRoleToRole")
628 @WebResult(name = "roleMember")
629 @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)
630 RoleMember assignRoleToRole(@WebParam(name="roleId") String roleId,
631 @WebParam(name="namespaceCode") String namespaceCode,
632 @WebParam(name="roleName") String roleName,
633 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualifications)
634 throws RiceIllegalArgumentException;
635
636
637
638
639
640
641
642
643
644 @WebMethod(operationName = "createRoleMember")
645 @WebResult(name = "roleMember")
646 @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)
647 RoleMember createRoleMember(
648 @WebParam(name = "roleMember")
649 RoleMember roleMember) throws RiceIllegalArgumentException, RiceIllegalStateException;
650
651
652
653
654
655
656
657
658
659 @WebMethod(operationName = "updateRoleMember")
660 @WebResult(name = "roleMember")
661 @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)
662 RoleMember updateRoleMember(@WebParam(name = "roleMember") RoleMember roleMember) throws RiceIllegalArgumentException, RiceIllegalStateException;
663
664
665
666
667
668
669
670
671
672 @WebMethod(operationName = "updateDelegateMember")
673 @WebResult(name = "delegateMember")
674 @CacheEvict(value={Role.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
675 DelegateMember updateDelegateMember(@WebParam(name = "delegateMember") DelegateMember delegateMember) throws RiceIllegalArgumentException, RiceIllegalStateException;
676
677
678
679
680
681
682
683
684
685 @WebMethod(operationName = "createDelegateMember")
686 @WebResult(name = "delegateMember")
687 @CacheEvict(value={Role.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
688 DelegateMember createDelegateMember(
689 @WebParam(name = "delegateMember")
690 DelegateMember delegateMember) throws RiceIllegalArgumentException, RiceIllegalStateException;
691
692
693
694
695
696
697
698 @WebMethod(operationName = "removeDelegateMembers")
699 @CacheEvict(value={Role.Cache.NAME, RoleMembership.Cache.NAME, RoleMember.Cache.NAME, DelegateMember.Cache.NAME, RoleResponsibility.Cache.NAME, DelegateType.Cache.NAME }, allEntries = true)
700 void removeDelegateMembers(
701 @WebParam(name = "delegateMembers")
702 List<DelegateMember> delegateMembers) throws RiceIllegalArgumentException, RiceIllegalStateException;
703
704
705
706
707
708
709
710
711
712
713 @WebMethod(operationName = "createRoleResponsibilityAction")
714 @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)
715 RoleResponsibilityAction createRoleResponsibilityAction(@WebParam(name = "roleResponsibilityAction") RoleResponsibilityAction roleResponsibilityAction) throws RiceIllegalArgumentException;
716
717
718
719
720
721
722
723
724
725
726 @WebMethod(operationName = "createDelegateType")
727 @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)
728 DelegateType createDelegateType(@WebParam(name="delegateType") DelegateType delegateType) throws RiceIllegalArgumentException, RiceIllegalStateException;
729
730
731
732
733
734
735
736
737
738 @WebMethod(operationName = "updateDelegateType")
739 @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)
740 DelegateType updateDelegateType(@WebParam(name="delegateType") DelegateType delegateType) throws RiceIllegalArgumentException, RiceIllegalStateException;
741
742
743
744
745
746
747
748
749
750
751
752
753 @WebMethod(operationName = "removePrincipalFromRole")
754 @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)
755 void removePrincipalFromRole(@WebParam(name="principalId") String principalId,
756 @WebParam(name="namespaceCode") String namespaceCode,
757 @WebParam(name="roleName") String roleName,
758 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualifications) throws RiceIllegalArgumentException;
759
760
761
762
763
764
765
766
767
768
769
770
771 @WebMethod(operationName = "removeGroupFromRole")
772 @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)
773 void removeGroupFromRole(@WebParam(name="groupId") String groupId,
774 @WebParam(name="namespaceCode") String namespaceCode,
775 @WebParam(name="roleName") String roleName,
776 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualifications) throws RiceIllegalArgumentException;
777
778
779
780
781
782
783
784
785
786
787
788
789 @WebMethod(operationName = "removeRoleFromRole")
790 @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)
791 void removeRoleFromRole(@WebParam(name="roleId") String roleId,
792 @WebParam(name="namespaceCode") String namespaceCode,
793 @WebParam(name="roleName") String roleName,
794 @WebParam(name="qualifications") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualifications) throws RiceIllegalArgumentException;
795
796
797
798
799
800
801
802
803
804 @WebMethod(operationName = "assignPermissionToRole")
805 @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)
806 void assignPermissionToRole(
807 @WebParam(name = "permissionId") String permissionId,
808 @WebParam(name = "roleId") String roleId)
809 throws RiceIllegalArgumentException;
810
811
812
813
814
815
816
817
818
819 @WebMethod(operationName = "revokePermissionFromRole")
820 @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)
821 void revokePermissionFromRole(
822 @WebParam(name = "permissionId") String permissionId,
823 @WebParam(name = "roleId") String roleId)
824 throws RiceIllegalArgumentException;
825
826
827
828
829
830
831
832
833
834
835 @WebMethod(operationName = "isDerivedRole")
836 @WebResult(name = "isDerivedRole")
837 @Cacheable(value= Role.Cache.NAME, key="'{isDerivedRole}' + 'roleId=' + #p0")
838 boolean isDerivedRole(@WebParam(name = "roleId") String roleId) throws RiceIllegalArgumentException;
839
840
841
842
843
844
845
846
847
848 @WebMethod(operationName = "isDynamicRoleMembership")
849 @WebResult(name = "isDynamicRoleMembership")
850 @Cacheable(value= Role.Cache.NAME, key="'{isDynamicRoleMembership}' + 'roleId=' + #p0")
851 boolean isDynamicRoleMembership(@WebParam(name = "roleId") String roleId) throws RiceIllegalArgumentException;
852 }