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