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.AttributeSet; |
19 | |
import org.kuali.rice.core.util.jaxb.AttributeSetAdapter; |
20 | |
import org.kuali.rice.core.util.jaxb.MapStringStringAdapter; |
21 | |
import org.kuali.rice.kim.api.KimConstants; |
22 | |
import org.kuali.rice.kim.api.common.delegate.Delegate; |
23 | |
import org.kuali.rice.kim.api.common.delegate.DelegateType; |
24 | |
|
25 | |
import javax.jws.WebMethod; |
26 | |
import javax.jws.WebParam; |
27 | |
import javax.jws.WebResult; |
28 | |
import javax.jws.WebService; |
29 | |
import javax.jws.soap.SOAPBinding; |
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 | |
@WebResult(name = "roles") |
84 | |
List<Role> getRoles( @WebParam(name="roleIds") List<String> roleIds ); |
85 | |
|
86 | |
|
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
@WebMethod(operationName = "getRoleByName") |
92 | |
@WebResult(name = "role") |
93 | |
Role getRoleByName(@WebParam(name = "namespaceCode") String namespaceCode, |
94 | |
@WebParam(name = "roleName") String roleName); |
95 | |
|
96 | |
|
97 | |
|
98 | |
|
99 | |
|
100 | |
@WebMethod(operationName = "getRoleIdByName") |
101 | |
@WebResult(name = "roleId") |
102 | |
String getRoleIdByName( @WebParam(name="namespaceCode") String namespaceCode, |
103 | |
@WebParam(name="roleName") String roleName ); |
104 | |
|
105 | |
|
106 | |
|
107 | |
|
108 | |
|
109 | |
|
110 | |
|
111 | |
@WebMethod(operationName = "isRoleActive") |
112 | |
@WebResult(name = "isRoleActive") |
113 | |
boolean isRoleActive( @WebParam(name="roleId") String roleId ); |
114 | |
|
115 | |
|
116 | |
|
117 | |
|
118 | |
|
119 | |
|
120 | |
@WebMethod(operationName = "getRoleQualifersForPrincipalByRoleIds") |
121 | |
@WebResult(name = "attributeSets") |
122 | |
List<AttributeSet> getRoleQualifiersForPrincipal(@WebParam(name="principalId") String principalId, |
123 | |
@WebParam(name="roleIds") List<String> roleIds, |
124 | |
@WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
125 | |
|
126 | |
|
127 | |
|
128 | |
|
129 | |
|
130 | |
|
131 | |
@WebMethod(operationName = "getRoleQualifersForPrincipalByNamespaceAndRolename") |
132 | |
@WebResult(name = "attributeSets") |
133 | |
List<AttributeSet> getRoleQualifiersForPrincipal(@WebParam(name="principalId") String principalId, |
134 | |
@WebParam(name="namespaceCode") String namespaceCode, |
135 | |
@WebParam(name="roleName") String roleName, |
136 | |
@WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
137 | |
|
138 | |
|
139 | |
|
140 | |
|
141 | |
|
142 | |
@WebMethod(operationName = "getNestedRoleQualifersForPrincipalByNamespaceAndRolename") |
143 | |
@WebResult(name = "attributeSets") |
144 | |
List<AttributeSet> getNestedRoleQualifiersForPrincipal(@WebParam(name = "principalId") String principalId, |
145 | |
@WebParam(name = "namespaceCode") String namespaceCode, |
146 | |
@WebParam(name = "roleName") String roleName, |
147 | |
@WebParam(name = "qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification); |
148 | |
|
149 | |
|
150 | |
|
151 | |
|
152 | |
|
153 | |
@WebMethod(operationName = "getNestedRoleQualifiersForPrincipalByRoleIds") |
154 | |
@WebResult(name = "attributeSets") |
155 | |
List<AttributeSet> getNestedRoleQualifiersForPrincipal(@WebParam(name = "principalId") String principalId, @WebParam(name = "roleIds") List<String> roleIds, @WebParam(name = "qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification); |
156 | |
|
157 | |
|
158 | |
|
159 | |
|
160 | |
|
161 | |
|
162 | |
|
163 | |
|
164 | |
|
165 | |
|
166 | |
|
167 | |
|
168 | |
|
169 | |
@WebMethod(operationName = "getRoleMembers") |
170 | |
@WebResult(name = "roleMemberships") |
171 | |
List<RoleMembership> getRoleMembers( @WebParam(name="roleIds") List<String> roleIds, |
172 | |
@WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
173 | |
|
174 | |
|
175 | |
|
176 | |
|
177 | |
|
178 | |
|
179 | |
@WebMethod(operationName = "getRoleMemberPrincipalIds") |
180 | |
@WebResult(name = "principalIds") |
181 | |
Collection<String> getRoleMemberPrincipalIds(@WebParam(name="namespaceCode") String namespaceCode, |
182 | |
@WebParam(name="roleName") String roleName, |
183 | |
@WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification); |
184 | |
|
185 | |
|
186 | |
|
187 | |
|
188 | |
@WebMethod(operationName = "principalHasRole") |
189 | |
@WebResult(name = "principalHasRole") |
190 | |
boolean principalHasRole( @WebParam(name="principalId") String principalId, |
191 | |
@WebParam(name="roleIds") List<String> roleIds, |
192 | |
@WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
193 | |
|
194 | |
|
195 | |
|
196 | |
|
197 | |
|
198 | |
@WebMethod(operationName = "getPrincipalIdSubListWithRole") |
199 | |
@WebResult(name = "principalIds") |
200 | |
List<String> getPrincipalIdSubListWithRole( @WebParam(name="principalIds") List<String> principalIds, |
201 | |
@WebParam(name="roleNamespaceCode") String roleNamespaceCode, |
202 | |
@WebParam(name="roleName") String roleName, |
203 | |
@WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
204 | |
|
205 | |
|
206 | |
|
207 | |
|
208 | |
|
209 | |
@WebMethod(operationName = "getRolesSearchResults") |
210 | |
@WebResult(name = "roles") |
211 | |
List<? extends Role> getRolesSearchResults( |
212 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name = "fieldValues") Map<String,String> fieldValues); |
213 | |
|
214 | |
|
215 | |
|
216 | |
|
217 | |
@WebMethod(operationName = "principalInactivated") |
218 | |
void principalInactivated( @WebParam(name="principalId") String principalId ); |
219 | |
|
220 | |
|
221 | |
|
222 | |
|
223 | |
@WebMethod(operationName = "roleInactivated") |
224 | |
void roleInactivated(@WebParam(name="roleId") String roleId); |
225 | |
|
226 | |
|
227 | |
|
228 | |
|
229 | |
@WebMethod(operationName = "groupInactivated") |
230 | |
void groupInactivated(@WebParam(name="groupId") String groupId); |
231 | |
|
232 | |
|
233 | |
|
234 | |
|
235 | |
|
236 | |
|
237 | |
|
238 | |
|
239 | |
|
240 | |
|
241 | |
@WebMethod(operationName = "getFirstLevelRoleMembers") |
242 | |
@WebResult(name = "roleMemberships") |
243 | |
List<RoleMembership> getFirstLevelRoleMembers(@WebParam(name="roleIds") List<String> roleIds); |
244 | |
|
245 | |
|
246 | |
|
247 | |
|
248 | |
|
249 | |
|
250 | |
@WebMethod(operationName = "findRoleMembers") |
251 | |
@WebResult(name = "roleMemberships") |
252 | |
List<RoleMembership> findRoleMembers( |
253 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name="fieldValues") java.util.Map<String, String> fieldValues); |
254 | |
|
255 | |
|
256 | |
|
257 | |
|
258 | |
@WebMethod(operationName = "getMemberParentRoleIds") |
259 | |
@WebResult(name = "roleIds") |
260 | |
List<String> getMemberParentRoleIds(String memberType, String memberId); |
261 | |
|
262 | |
|
263 | |
@WebMethod(operationName = "findRoleMembersCompleteInfo") |
264 | |
@WebResult(name = "roleMemberInfos") |
265 | |
List<RoleMember> findRoleMembersCompleteInfo( |
266 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name="fieldValues") java.util.Map<String, String> fieldValues); |
267 | |
|
268 | |
@WebMethod(operationName = "findDelegateMembersCompleteInfo") |
269 | |
@WebResult(name = "delegateMemberInfos") |
270 | |
List<Delegate> findDelegateMembersCompleteInfo |
271 | |
(@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name = "fieldValues") java.util.Map<String, String> fieldValues); |
272 | |
|
273 | |
|
274 | |
|
275 | |
|
276 | |
|
277 | |
|
278 | |
@WebMethod(operationName = "getDelegationMembersByDelegationId") |
279 | |
@WebResult(name = "delegateMemberInfos") |
280 | |
List<Delegate> getDelegationMembersByDelegationId( |
281 | |
@WebParam(name = "delegationId") String delegationId); |
282 | |
|
283 | |
@WebMethod(operationName = "getDelegationMemberByDelegationAndMemberId") |
284 | |
@WebResult(name = "delegateMemberInfo") |
285 | |
Delegate getDelegationMemberByDelegationAndMemberId( |
286 | |
@WebParam(name = "delegationId") String delegationId, @WebParam(name = "memberId") String memberId); |
287 | |
|
288 | |
@WebMethod(operationName = "getDelegationMemberById") |
289 | |
@WebResult(name = "delegateMemberInfo") |
290 | |
Delegate getDelegationMemberById(@WebParam(name = "delegationMemberId") String delegationMemberId); |
291 | |
|
292 | |
@WebMethod(operationName = "getRoleResponsibilities") |
293 | |
@WebResult(name = "roleResponsibilities") |
294 | |
List<RoleResponsibility> getRoleResponsibilities(@WebParam(name="roleId") String roleId); |
295 | |
|
296 | |
@WebMethod(operationName = "getRoleMemberResponsibilityActionInfo") |
297 | |
@WebResult(name = "roleResponsibilityActions") |
298 | |
List<RoleResponsibilityAction> getRoleMemberResponsibilityActionInfo( |
299 | |
@WebParam(name="roleMemberId") String roleMemberId); |
300 | |
|
301 | |
@WebMethod(operationName = "getDelegateTypeInfo") |
302 | |
@WebResult(name = "delegateType") |
303 | |
DelegateType getDelegateTypeInfo( |
304 | |
@WebParam(name="roleId") String roleId, @WebParam(name="delegationTypeCode") String delegationTypeCode); |
305 | |
|
306 | |
@WebMethod(operationName = "getDelegateTypeInfoById") |
307 | |
@WebResult(name = "delegateType") |
308 | |
DelegateType getDelegateTypeInfoById( @WebParam(name="delegationId") String delegationId); |
309 | |
|
310 | |
@WebMethod(operationName = "applicationRoleMembershipChanged") |
311 | |
void applicationRoleMembershipChanged( @WebParam(name="roleId") String roleId ); |
312 | |
|
313 | |
@WebMethod(operationName = "lookupRoles") |
314 | |
@WebResult(name = "roles") |
315 | |
List<Role> lookupRoles(@WebParam(name="searchCriteria") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> searchCriteria); |
316 | |
|
317 | |
|
318 | |
|
319 | |
|
320 | |
@WebMethod(operationName = "flushInternalRoleCache") |
321 | |
void flushInternalRoleCache(); |
322 | |
|
323 | |
|
324 | |
|
325 | |
|
326 | |
@WebMethod(operationName = "flushInternalRoleMemberCache") |
327 | |
void flushInternalRoleMemberCache(); |
328 | |
|
329 | |
|
330 | |
|
331 | |
|
332 | |
@WebMethod(operationName = "flushInternalDelegationCache") |
333 | |
void flushInternalDelegationCache(); |
334 | |
|
335 | |
|
336 | |
|
337 | |
|
338 | |
@WebMethod(operationName = "flushInternalDelegationMemberCache") |
339 | |
void flushInternalDelegationMemberCache(); |
340 | |
} |