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.util.jaxb.MapStringStringAdapter; |
19 | |
import org.kuali.rice.kim.api.KimConstants; |
20 | |
import org.kuali.rice.kim.api.common.delegate.DelegateMember; |
21 | |
import org.kuali.rice.kim.api.common.delegate.DelegateType; |
22 | |
|
23 | |
import javax.jws.WebMethod; |
24 | |
import javax.jws.WebParam; |
25 | |
import javax.jws.WebResult; |
26 | |
import javax.jws.WebService; |
27 | |
import javax.jws.soap.SOAPBinding; |
28 | |
import javax.xml.bind.annotation.XmlElement; |
29 | |
import javax.xml.bind.annotation.XmlElementWrapper; |
30 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
31 | |
import java.util.Collection; |
32 | |
import java.util.List; |
33 | |
import java.util.Map; |
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
|
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
@WebService(name = "RoleService", targetNamespace = KimConstants.Namespaces.KIM_NAMESPACE_2_0 ) |
64 | |
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) |
65 | |
public interface RoleService { |
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
@WebMethod(operationName = "getRole") |
76 | |
@WebResult(name = "role") |
77 | |
Role getRole(@WebParam(name = "roleId") String roleId); |
78 | |
|
79 | |
|
80 | |
|
81 | |
|
82 | |
@WebMethod(operationName = "getRoles") |
83 | |
@XmlElementWrapper(name = "roles", required = true) |
84 | |
@XmlElement(name = "role", required = false) |
85 | |
@WebResult(name = "roles") |
86 | |
List<Role> getRoles( @WebParam(name="roleIds") List<String> roleIds ); |
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
@WebMethod(operationName = "getRoleByName") |
94 | |
@WebResult(name = "role") |
95 | |
Role getRoleByName(@WebParam(name = "namespaceCode") String namespaceCode, |
96 | |
@WebParam(name = "roleName") String roleName); |
97 | |
|
98 | |
|
99 | |
|
100 | |
|
101 | |
|
102 | |
@WebMethod(operationName = "getRoleIdByName") |
103 | |
@WebResult(name = "roleId") |
104 | |
String getRoleIdByName( @WebParam(name="namespaceCode") String namespaceCode, |
105 | |
@WebParam(name="roleName") String roleName ); |
106 | |
|
107 | |
|
108 | |
|
109 | |
|
110 | |
|
111 | |
|
112 | |
|
113 | |
@WebMethod(operationName = "isRoleActive") |
114 | |
@WebResult(name = "isRoleActive") |
115 | |
boolean isRoleActive( @WebParam(name="roleId") String roleId ); |
116 | |
|
117 | |
|
118 | |
|
119 | |
|
120 | |
|
121 | |
|
122 | |
@WebMethod(operationName = "getRoleQualifersForPrincipalByRoleIds") |
123 | |
@XmlElementWrapper(name = "attributes", required = true) |
124 | |
@XmlElement(name = "attribute", required = false) |
125 | |
@WebResult(name = "attributes") |
126 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
127 | |
List<Map<String, String>> getRoleQualifiersForPrincipal(@WebParam(name="principalId") String principalId, |
128 | |
@WebParam(name="roleIds") List<String> roleIds, |
129 | |
@WebParam(name="qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification ); |
130 | |
|
131 | |
|
132 | |
|
133 | |
|
134 | |
|
135 | |
|
136 | |
@WebMethod(operationName = "getRoleQualifersForPrincipalByNamespaceAndRolename") |
137 | |
@XmlElementWrapper(name = "attributes", required = true) |
138 | |
@XmlElement(name = "attribute", required = false) |
139 | |
@WebResult(name = "attributes") |
140 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
141 | |
List<Map<String, String>> getRoleQualifiersForPrincipal(@WebParam(name="principalId") String principalId, |
142 | |
@WebParam(name="namespaceCode") String namespaceCode, |
143 | |
@WebParam(name="roleName") String roleName, |
144 | |
@WebParam(name="qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification ); |
145 | |
|
146 | |
|
147 | |
|
148 | |
|
149 | |
|
150 | |
@WebMethod(operationName = "getNestedRoleQualifersForPrincipalByNamespaceAndRolename") |
151 | |
@XmlElementWrapper(name = "attributes", required = true) |
152 | |
@XmlElement(name = "attribute", required = false) |
153 | |
@WebResult(name = "attributes") |
154 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
155 | |
List<Map<String, String>> getNestedRoleQualifiersForPrincipal(@WebParam(name = "principalId") String principalId, |
156 | |
@WebParam(name = "namespaceCode") String namespaceCode, |
157 | |
@WebParam(name = "roleName") String roleName, |
158 | |
@WebParam(name = "qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification); |
159 | |
|
160 | |
|
161 | |
|
162 | |
|
163 | |
|
164 | |
@WebMethod(operationName = "getNestedRoleQualifiersForPrincipalByRoleIds") |
165 | |
@XmlElementWrapper(name = "attributes", required = true) |
166 | |
@XmlElement(name = "attribute", required = false) |
167 | |
@WebResult(name = "attributes") |
168 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
169 | |
List<Map<String, String>> getNestedRoleQualifiersForPrincipal(@WebParam(name = "principalId") String principalId, |
170 | |
@WebParam(name = "roleIds") List<String> roleIds, |
171 | |
@WebParam(name = "qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification); |
172 | |
|
173 | |
|
174 | |
|
175 | |
|
176 | |
|
177 | |
|
178 | |
|
179 | |
|
180 | |
|
181 | |
|
182 | |
|
183 | |
|
184 | |
|
185 | |
@WebMethod(operationName = "getRoleMembers") |
186 | |
@XmlElementWrapper(name = "roleMemberships", required = true) |
187 | |
@XmlElement(name = "roleMembership", required = false) |
188 | |
@WebResult(name = "roleMemberships") |
189 | |
List<RoleMembership> getRoleMembers( @WebParam(name="roleIds") List<String> roleIds, |
190 | |
@WebParam(name="qualification")@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification ); |
191 | |
|
192 | |
|
193 | |
|
194 | |
|
195 | |
|
196 | |
|
197 | |
@WebMethod(operationName = "getRoleMemberPrincipalIds") |
198 | |
@XmlElementWrapper(name = "principalIds", required = true) |
199 | |
@XmlElement(name = "principalId", required = false) |
200 | |
@WebResult(name = "principalIds") |
201 | |
Collection<String> getRoleMemberPrincipalIds(@WebParam(name="namespaceCode") String namespaceCode, |
202 | |
@WebParam(name="roleName") String roleName, |
203 | |
@WebParam(name="qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification); |
204 | |
|
205 | |
|
206 | |
|
207 | |
|
208 | |
@WebMethod(operationName = "principalHasRole") |
209 | |
@WebResult(name = "principalHasRole") |
210 | |
boolean principalHasRole( @WebParam(name="principalId") String principalId, |
211 | |
@WebParam(name="roleIds") List<String> roleIds, |
212 | |
@WebParam(name="qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification ); |
213 | |
|
214 | |
|
215 | |
|
216 | |
|
217 | |
|
218 | |
@WebMethod(operationName = "getPrincipalIdSubListWithRole") |
219 | |
@XmlElementWrapper(name = "principalIds", required = true) |
220 | |
@XmlElement(name = "principalId", required = false) |
221 | |
@WebResult(name = "principalIds") |
222 | |
List<String> getPrincipalIdSubListWithRole( @WebParam(name="principalIds") List<String> principalIds, |
223 | |
@WebParam(name="roleNamespaceCode") String roleNamespaceCode, |
224 | |
@WebParam(name="roleName") String roleName, |
225 | |
@WebParam(name="qualification") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> qualification ); |
226 | |
|
227 | |
|
228 | |
|
229 | |
|
230 | |
|
231 | |
@WebMethod(operationName = "getRolesSearchResults") |
232 | |
@XmlElementWrapper(name = "roles", required = true) |
233 | |
@XmlElement(name = "role", required = false) |
234 | |
@WebResult(name = "roles") |
235 | |
List<Role> getRolesSearchResults( |
236 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name = "fieldValues") Map<String,String> fieldValues); |
237 | |
|
238 | |
|
239 | |
|
240 | |
|
241 | |
@WebMethod(operationName = "principalInactivated") |
242 | |
void principalInactivated( @WebParam(name="principalId") String principalId ); |
243 | |
|
244 | |
|
245 | |
|
246 | |
|
247 | |
@WebMethod(operationName = "roleInactivated") |
248 | |
void roleInactivated(@WebParam(name="roleId") String roleId); |
249 | |
|
250 | |
|
251 | |
|
252 | |
|
253 | |
@WebMethod(operationName = "groupInactivated") |
254 | |
void groupInactivated(@WebParam(name="groupId") String groupId); |
255 | |
|
256 | |
|
257 | |
|
258 | |
|
259 | |
|
260 | |
|
261 | |
|
262 | |
|
263 | |
|
264 | |
|
265 | |
@WebMethod(operationName = "getFirstLevelRoleMembers") |
266 | |
@XmlElementWrapper(name = "roleMemberships", required = true) |
267 | |
@XmlElement(name = "roleMembership", required = false) |
268 | |
@WebResult(name = "roleMemberships") |
269 | |
List<RoleMembership> getFirstLevelRoleMembers(@WebParam(name="roleIds") List<String> roleIds); |
270 | |
|
271 | |
|
272 | |
|
273 | |
|
274 | |
|
275 | |
|
276 | |
@WebMethod(operationName = "findRoleMemberships") |
277 | |
@XmlElementWrapper(name = "roleMemberships", required = true) |
278 | |
@XmlElement(name = "roleMembership", required = false) |
279 | |
@WebResult(name = "roleMemberships") |
280 | |
List<RoleMembership> findRoleMemberships( |
281 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name="fieldValues") java.util.Map<String, String> fieldValues); |
282 | |
|
283 | |
|
284 | |
|
285 | |
|
286 | |
@WebMethod(operationName = "getMemberParentRoleIds") |
287 | |
@XmlElementWrapper(name = "roleIds", required = true) |
288 | |
@XmlElement(name = "roleId", required = false) |
289 | |
@WebResult(name = "roleIds") |
290 | |
List<String> getMemberParentRoleIds(String memberType, String memberId); |
291 | |
|
292 | |
|
293 | |
@WebMethod(operationName = "findRoleMembers") |
294 | |
@XmlElementWrapper(name = "roleMembers", required = true) |
295 | |
@XmlElement(name = "roleMember", required = false) |
296 | |
@WebResult(name = "roleMembers") |
297 | |
List<RoleMember> findRoleMembers( |
298 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name="fieldValues") java.util.Map<String, String> fieldValues); |
299 | |
|
300 | |
@WebMethod(operationName = "findDelegateMembers") |
301 | |
@XmlElementWrapper(name = "delegateMembers", required = true) |
302 | |
@XmlElement(name = "delegateMember", required = false) |
303 | |
@WebResult(name = "delegateMembers") |
304 | |
List<DelegateMember> findDelegateMembers |
305 | |
(@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name = "fieldValues") java.util.Map<String, String> fieldValues); |
306 | |
|
307 | |
|
308 | |
|
309 | |
|
310 | |
|
311 | |
|
312 | |
@WebMethod(operationName = "getDelegationMembersByDelegationId") |
313 | |
@XmlElementWrapper(name = "delegateMembers", required = true) |
314 | |
@XmlElement(name = "delegateMember", required = false) |
315 | |
@WebResult(name = "delegateMembers") |
316 | |
List<DelegateMember> getDelegationMembersByDelegationId( |
317 | |
@WebParam(name = "delegationId") String delegationId); |
318 | |
|
319 | |
@WebMethod(operationName = "getDelegationMemberByDelegationAndMemberId") |
320 | |
@WebResult(name = "delegateMemberInfo") |
321 | |
DelegateMember getDelegationMemberByDelegationAndMemberId( |
322 | |
@WebParam(name = "delegationId") String delegationId, @WebParam(name = "memberId") String memberId); |
323 | |
|
324 | |
@WebMethod(operationName = "getDelegationMemberById") |
325 | |
@WebResult(name = "delegateMemberInfo") |
326 | |
DelegateMember getDelegationMemberById(@WebParam(name = "delegationMemberId") String delegationMemberId); |
327 | |
|
328 | |
@WebMethod(operationName = "getRoleResponsibilities") |
329 | |
@XmlElementWrapper(name = "roleResponsibilities", required = true) |
330 | |
@XmlElement(name = "roleResponsibility", required = false) |
331 | |
@WebResult(name = "roleResponsibilities") |
332 | |
List<RoleResponsibility> getRoleResponsibilities(@WebParam(name="roleId") String roleId); |
333 | |
|
334 | |
@WebMethod(operationName = "getRoleMemberResponsibilityActions") |
335 | |
@XmlElementWrapper(name = "roleResponsibilityActions", required = true) |
336 | |
@XmlElement(name = "roleResponsibilityAction", required = false) |
337 | |
@WebResult(name = "roleResponsibilityActions") |
338 | |
List<RoleResponsibilityAction> getRoleMemberResponsibilityActions( |
339 | |
@WebParam(name = "roleMemberId") String roleMemberId); |
340 | |
|
341 | |
@WebMethod(operationName = "getDelegateTypeInfo") |
342 | |
@WebResult(name = "delegateType") |
343 | |
DelegateType getDelegateTypeInfo( |
344 | |
@WebParam(name="roleId") String roleId, @WebParam(name="delegationTypeCode") String delegationTypeCode); |
345 | |
|
346 | |
@WebMethod(operationName = "getDelegateTypeInfoById") |
347 | |
@WebResult(name = "delegateType") |
348 | |
DelegateType getDelegateTypeInfoById( @WebParam(name="delegationId") String delegationId); |
349 | |
|
350 | |
@WebMethod(operationName = "applicationRoleMembershipChanged") |
351 | |
void applicationRoleMembershipChanged( @WebParam(name="roleId") String roleId ); |
352 | |
|
353 | |
@WebMethod(operationName = "lookupRoles") |
354 | |
@XmlElementWrapper(name = "roles", required = true) |
355 | |
@XmlElement(name = "role", required = false) |
356 | |
@WebResult(name = "roles") |
357 | |
List<Role> lookupRoles(@WebParam(name="searchCriteria") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> searchCriteria); |
358 | |
|
359 | |
|
360 | |
|
361 | |
|
362 | |
@WebMethod(operationName = "flushInternalRoleCache") |
363 | |
void flushInternalRoleCache(); |
364 | |
|
365 | |
|
366 | |
|
367 | |
|
368 | |
@WebMethod(operationName = "flushInternalRoleMemberCache") |
369 | |
void flushInternalRoleMemberCache(); |
370 | |
|
371 | |
|
372 | |
|
373 | |
|
374 | |
@WebMethod(operationName = "flushInternalDelegationCache") |
375 | |
void flushInternalDelegationCache(); |
376 | |
|
377 | |
|
378 | |
|
379 | |
|
380 | |
@WebMethod(operationName = "flushInternalDelegationMemberCache") |
381 | |
void flushInternalDelegationMemberCache(); |
382 | |
} |