1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.api.responsibility; |
17 | |
|
18 | |
import org.kuali.rice.core.api.CoreConstants; |
19 | |
import org.kuali.rice.core.api.criteria.QueryByCriteria; |
20 | |
import org.kuali.rice.core.api.exception.RiceIllegalArgumentException; |
21 | |
import org.kuali.rice.core.api.exception.RiceIllegalStateException; |
22 | |
import org.kuali.rice.core.util.jaxb.MapStringStringAdapter; |
23 | |
import org.kuali.rice.kim.api.common.template.Template; |
24 | |
import org.kuali.rice.kim.api.common.template.TemplateQueryResults; |
25 | |
|
26 | |
import javax.jws.WebMethod; |
27 | |
import javax.jws.WebParam; |
28 | |
import javax.jws.WebResult; |
29 | |
import javax.jws.WebService; |
30 | |
import javax.jws.soap.SOAPBinding; |
31 | |
import javax.xml.bind.annotation.XmlElement; |
32 | |
import javax.xml.bind.annotation.XmlElementWrapper; |
33 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
34 | |
import java.util.List; |
35 | |
import java.util.Map; |
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 | |
@WebService(name = "ResponsibilityServiceSoap", targetNamespace = CoreConstants.Namespaces.CORE_NAMESPACE_2_0) |
61 | |
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) |
62 | |
public interface ResponsibilityService { |
63 | |
|
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
@WebMethod(operationName="createResponsibility") |
73 | |
@WebResult(name = "responsibility") |
74 | |
Responsibility createResponsibility(@WebParam(name = "responsibility") Responsibility responsibility) |
75 | |
throws RiceIllegalArgumentException, RiceIllegalStateException; |
76 | |
|
77 | |
|
78 | |
|
79 | |
|
80 | |
|
81 | |
|
82 | |
|
83 | |
|
84 | |
@WebMethod(operationName="updateResponsibility") |
85 | |
@WebResult(name = "responsibility") |
86 | |
Responsibility updateResponsibility(@WebParam(name = "responsibility") Responsibility responsibility) |
87 | |
throws RiceIllegalArgumentException, RiceIllegalStateException; |
88 | |
|
89 | |
|
90 | |
|
91 | |
|
92 | |
|
93 | |
|
94 | |
|
95 | |
|
96 | |
|
97 | |
|
98 | |
|
99 | |
|
100 | |
@WebMethod(operationName = "getResponsibility") |
101 | |
@WebResult(name = "responsibility") |
102 | |
Responsibility getResponsibility(@WebParam(name = "id") String id); |
103 | |
|
104 | |
@WebMethod(operationName = "findRespByNamespaceCodeAndName") |
105 | |
@WebResult(name = "responsibility") |
106 | |
Responsibility findRespByNamespaceCodeAndName(@WebParam(name = "namespaceCode") String namespaceCode, |
107 | |
@WebParam(name = "name") String name); |
108 | |
|
109 | |
|
110 | |
|
111 | |
|
112 | |
|
113 | |
|
114 | |
|
115 | |
|
116 | |
|
117 | |
|
118 | |
|
119 | |
@WebMethod(operationName = "getResponsibilityTemplate") |
120 | |
@WebResult(name = "template") |
121 | |
Template getResponsibilityTemplate(@WebParam(name = "id") String id); |
122 | |
|
123 | |
@WebMethod(operationName = "findRespTemplateByNamespaceCodeAndName") |
124 | |
@WebResult(name = "template") |
125 | |
Template findRespTemplateByNamespaceCodeAndName(@WebParam(name = "namespaceCode") String namespaceCode, |
126 | |
@WebParam(name = "name") String name); |
127 | |
|
128 | |
@WebMethod(operationName = "hasResponsibility") |
129 | |
@WebResult(name = "result") |
130 | |
boolean hasResponsibility(@WebParam(name = "principalId") String principalId, |
131 | |
@WebParam(name = "namespaceCode") String namespaceCode, |
132 | |
@WebParam(name = "respName") String respName, |
133 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
134 | |
@WebParam(name = "qualification") Map<String, String> qualification, |
135 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
136 | |
@WebParam(name = "responsibilityDetails") Map<String, String> responsibilityDetails); |
137 | |
|
138 | |
@WebMethod(operationName = "hasResponsibilityByTemplateName") |
139 | |
@WebResult(name = "result") |
140 | |
boolean hasResponsibilityByTemplateName(@WebParam(name = "principalId") String principalId, |
141 | |
@WebParam(name = "namespaceCode") String namespaceCode, |
142 | |
@WebParam(name = "respTemplateName") String respTemplateName, |
143 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
144 | |
@WebParam(name = "qualification") Map<String, String> qualification, |
145 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
146 | |
@WebParam(name = "responsibilityDetails") Map<String, String> responsibilityDetails); |
147 | |
|
148 | |
@WebMethod(operationName = "getResponsibilityActions") |
149 | |
@XmlElementWrapper(name = "responsibilityActions", required = true) |
150 | |
@XmlElement(name = "responsibilityAction", required = false) |
151 | |
@WebResult(name = "responsibilityActions") |
152 | |
List<ResponsibilityAction> getResponsibilityActions(@WebParam(name = "namespaceCode") String namespaceCode, |
153 | |
@WebParam(name = "responsibilityName") String responsibilityName, |
154 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
155 | |
@WebParam(name = "qualification") Map<String, String> qualification, |
156 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
157 | |
@WebParam(name = "responsibilityDetails") Map<String, String> responsibilityDetails); |
158 | |
|
159 | |
@WebMethod(operationName = "getResponsibilityActionsByTemplateName") |
160 | |
@XmlElementWrapper(name = "responsibilityActions", required = true) |
161 | |
@XmlElement(name = "responsibilityAction", required = false) |
162 | |
@WebResult(name = "responsibilityActions") |
163 | |
List<ResponsibilityAction> getResponsibilityActionsByTemplateName(@WebParam(name = "namespaceCode") String namespaceCode, |
164 | |
@WebParam(name = "responsibilityTemplateName") String respTemplateName, |
165 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
166 | |
@WebParam(name = "qualification") Map<String, String> qualification, |
167 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
168 | |
@WebParam(name = "responsibilityDetails") Map<String, String> responsibilityDetails); |
169 | |
|
170 | |
@WebMethod(operationName = "getRoleIdsForResponsibility") |
171 | |
@XmlElementWrapper(name = "roleIds", required = true) |
172 | |
@XmlElement(name = "roleId", required = false) |
173 | |
@WebResult(name = "roleIds") |
174 | |
List<String> getRoleIdsForResponsibility(@WebParam(name = "id") String id, |
175 | |
@XmlJavaTypeAdapter(value = MapStringStringAdapter.class) |
176 | |
@WebParam(name = "qualification") Map<String, String> qualification); |
177 | |
|
178 | |
|
179 | |
|
180 | |
|
181 | |
|
182 | |
|
183 | |
|
184 | |
|
185 | |
@WebMethod(operationName = "findResponsibilities") |
186 | |
@WebResult(name = "results") |
187 | |
ResponsibilityQueryResults findResponsibilities(@WebParam(name = "query") QueryByCriteria queryByCriteria); |
188 | |
|
189 | |
|
190 | |
|
191 | |
|
192 | |
|
193 | |
|
194 | |
|
195 | |
|
196 | |
|
197 | |
@WebMethod(operationName = "findResponsibilityTemplates") |
198 | |
@WebResult(name = "results") |
199 | |
TemplateQueryResults findResponsibilityTemplates(@WebParam(name = "query") QueryByCriteria queryByCriteria); |
200 | |
} |