1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.service; |
17 | |
|
18 | |
import java.util.Collection; |
19 | |
import java.util.List; |
20 | |
import java.util.Map; |
21 | |
|
22 | |
import javax.jws.WebMethod; |
23 | |
import javax.jws.WebParam; |
24 | |
import javax.jws.WebService; |
25 | |
import javax.jws.soap.SOAPBinding; |
26 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
27 | |
|
28 | |
import org.kuali.rice.core.jaxb.AttributeSetAdapter; |
29 | |
import org.kuali.rice.core.jaxb.MapStringStringAdapter; |
30 | |
import org.kuali.rice.core.xml.dto.AttributeSet; |
31 | |
import org.kuali.rice.kim.bo.Role; |
32 | |
import org.kuali.rice.kim.bo.role.dto.DelegateMemberCompleteInfo; |
33 | |
import org.kuali.rice.kim.bo.role.dto.DelegateTypeInfo; |
34 | |
import org.kuali.rice.kim.bo.role.dto.KimRoleInfo; |
35 | |
import org.kuali.rice.kim.bo.role.dto.RoleMemberCompleteInfo; |
36 | |
import org.kuali.rice.kim.bo.role.dto.RoleMembershipInfo; |
37 | |
import org.kuali.rice.kim.bo.role.dto.RoleResponsibilityActionInfo; |
38 | |
import org.kuali.rice.kim.bo.role.dto.RoleResponsibilityInfo; |
39 | |
import org.kuali.rice.kim.util.KIMWebServiceConstants; |
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
|
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
@WebService(name = KIMWebServiceConstants.RoleService.WEB_SERVICE_NAME, targetNamespace = KIMWebServiceConstants.MODULE_TARGET_NAMESPACE) |
70 | |
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) |
71 | |
public interface RoleService { |
72 | |
|
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
|
79 | |
|
80 | |
|
81 | |
KimRoleInfo getRole( @WebParam(name="roleId") String roleId ); |
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
List<KimRoleInfo> getRoles( @WebParam(name="roleIds") List<String> roleIds ); |
87 | |
|
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
KimRoleInfo getRoleByName( @WebParam(name="namespaceCode") String namespaceCode, @WebParam(name="roleName") String roleName ); |
94 | |
|
95 | |
|
96 | |
|
97 | |
|
98 | |
|
99 | |
String getRoleIdByName( @WebParam(name="namespaceCode") String namespaceCode, @WebParam(name="roleName") String roleName ); |
100 | |
|
101 | |
|
102 | |
|
103 | |
|
104 | |
|
105 | |
|
106 | |
|
107 | |
boolean isRoleActive( @WebParam(name="roleId") String roleId ); |
108 | |
|
109 | |
|
110 | |
|
111 | |
|
112 | |
|
113 | |
|
114 | |
@WebMethod(operationName = "getRoleQualifersForPrincipalRoleIds") |
115 | |
List<AttributeSet> getRoleQualifiersForPrincipal( @WebParam(name="principalId") String principalId, @WebParam(name="roleIds") List<String> roleIds, @WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
116 | |
|
117 | |
|
118 | |
|
119 | |
|
120 | |
|
121 | |
|
122 | |
@WebMethod(operationName = "getRoleQualifersForPrincipalNamespaceRolename") |
123 | |
List<AttributeSet> getRoleQualifiersForPrincipal( @WebParam(name="principalId") String principalId, @WebParam(name="namespaceCode") String namespaceCode, @WebParam(name="roleName") String roleName, @WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
124 | |
|
125 | |
|
126 | |
|
127 | |
|
128 | |
|
129 | |
@WebMethod(operationName = "getRoleQualifersForPrincipalIncludingNestedNamespaceRolename") |
130 | |
List<AttributeSet> getRoleQualifiersForPrincipalIncludingNested( @WebParam(name="principalId") String principalId, @WebParam(name="namespaceCode") String namespaceCode, @WebParam(name="roleName") String roleName, @WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
131 | |
|
132 | |
|
133 | |
|
134 | |
|
135 | |
|
136 | |
@WebMethod(operationName = "getRoleQualifersForPrincipalIncludingNestedRoleIds") |
137 | |
List<AttributeSet> getRoleQualifiersForPrincipalIncludingNested( @WebParam(name="principalId") String principalId, @WebParam(name="roleIds") List<String> roleIds, @WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
138 | |
|
139 | |
|
140 | |
|
141 | |
|
142 | |
|
143 | |
|
144 | |
|
145 | |
|
146 | |
|
147 | |
|
148 | |
|
149 | |
|
150 | |
List<RoleMembershipInfo> getRoleMembers( @WebParam(name="roleIds") List<String> roleIds, @WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
151 | |
|
152 | |
|
153 | |
|
154 | |
|
155 | |
|
156 | |
|
157 | |
Collection<String> getRoleMemberPrincipalIds(@WebParam(name="namespaceCode") String namespaceCode, @WebParam(name="roleName") String roleName, @WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification); |
158 | |
|
159 | |
|
160 | |
|
161 | |
|
162 | |
boolean principalHasRole( @WebParam(name="principalId") String principalId, @WebParam(name="roleIds") List<String> roleIds, @WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
163 | |
|
164 | |
|
165 | |
|
166 | |
|
167 | |
|
168 | |
List<String> getPrincipalIdSubListWithRole( @WebParam(name="principalIds") List<String> principalIds, @WebParam(name="roleNamespaceCode") String roleNamespaceCode, @WebParam(name="roleName") String roleName, @WebParam(name="qualification") @XmlJavaTypeAdapter(value = AttributeSetAdapter.class) AttributeSet qualification ); |
169 | |
|
170 | |
|
171 | |
|
172 | |
|
173 | |
|
174 | |
List<? extends Role> getRolesSearchResults(@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name = "fieldValues") java.util.Map<String,String> fieldValues); |
175 | |
|
176 | |
|
177 | |
|
178 | |
|
179 | |
void principalInactivated( @WebParam(name="principalId") String principalId ); |
180 | |
|
181 | |
|
182 | |
|
183 | |
|
184 | |
void roleInactivated(@WebParam(name="roleId") String roleId); |
185 | |
|
186 | |
|
187 | |
|
188 | |
|
189 | |
void groupInactivated(@WebParam(name="groupId") String groupId); |
190 | |
|
191 | |
|
192 | |
|
193 | |
|
194 | |
|
195 | |
|
196 | |
|
197 | |
|
198 | |
|
199 | |
|
200 | |
List<RoleMembershipInfo> getFirstLevelRoleMembers(@WebParam(name="roleIds") List<String> roleIds); |
201 | |
|
202 | |
|
203 | |
|
204 | |
|
205 | |
|
206 | |
|
207 | |
List<RoleMembershipInfo> findRoleMembers(@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name="fieldValues") java.util.Map<String, String> fieldValues); |
208 | |
|
209 | |
|
210 | |
|
211 | |
|
212 | |
|
213 | |
|
214 | |
List<String> getMemberParentRoleIds(String memberType, String memberId); |
215 | |
|
216 | |
List<RoleMemberCompleteInfo> findRoleMembersCompleteInfo(@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name="fieldValues") java.util.Map<String, String> fieldValues); |
217 | |
|
218 | |
List<DelegateMemberCompleteInfo> findDelegateMembersCompleteInfo(@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) @WebParam(name="fieldValues") java.util.Map<String, String> fieldValues); |
219 | |
|
220 | |
|
221 | |
|
222 | |
|
223 | |
|
224 | |
|
225 | |
List<DelegateMemberCompleteInfo> getDelegationMembersByDelegationId(@WebParam(name="delegationId") String delegationId); |
226 | |
|
227 | |
DelegateMemberCompleteInfo getDelegationMemberByDelegationAndMemberId(@WebParam(name="delegationId") String delegationId, @WebParam(name="memberId") String memberId); |
228 | |
|
229 | |
DelegateMemberCompleteInfo getDelegationMemberById(@WebParam(name="delegationMemberId") String delegationMemberId); |
230 | |
|
231 | |
List<RoleResponsibilityInfo> getRoleResponsibilities(@WebParam(name="roleId") String roleId); |
232 | |
|
233 | |
List<RoleResponsibilityActionInfo> getRoleMemberResponsibilityActionInfo( @WebParam(name="roleMemberId") String roleMemberId); |
234 | |
|
235 | |
DelegateTypeInfo getDelegateTypeInfo( @WebParam(name="roleId") String roleId, @WebParam(name="delegationTypeCode") String delegationTypeCode); |
236 | |
|
237 | |
DelegateTypeInfo getDelegateTypeInfoById( @WebParam(name="delegationId") String delegationId); |
238 | |
|
239 | |
void applicationRoleMembershipChanged( @WebParam(name="roleId") String roleId ); |
240 | |
|
241 | |
List<KimRoleInfo> lookupRoles(@WebParam(name="searchCriteria") @XmlJavaTypeAdapter(value = MapStringStringAdapter.class) Map<String, String> searchCriteria); |
242 | |
|
243 | |
|
244 | |
|
245 | |
|
246 | |
void flushInternalRoleCache(); |
247 | |
|
248 | |
|
249 | |
|
250 | |
|
251 | |
void flushInternalRoleMemberCache(); |
252 | |
|
253 | |
|
254 | |
|
255 | |
|
256 | |
void flushInternalDelegationCache(); |
257 | |
|
258 | |
|
259 | |
|
260 | |
|
261 | |
void flushInternalDelegationMemberCache(); |
262 | |
} |