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.api.mo.common.Attributes; |
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 java.util.List; |
32 | |
import java.util.Map; |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
|
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
@WebService(name = "ResponsibilityServiceSoap", targetNamespace = CoreConstants.Namespaces.CORE_NAMESPACE_2_0) |
58 | |
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) |
59 | |
public interface ResponsibilityService { |
60 | |
|
61 | |
|
62 | |
|
63 | |
|
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
@WebMethod(operationName="createResponsibility") |
69 | |
void createResponsibility(@WebParam(name = "responsibility") Responsibility responsibility) |
70 | |
throws RiceIllegalArgumentException, RiceIllegalStateException; |
71 | |
|
72 | |
|
73 | |
|
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
|
79 | |
@WebMethod(operationName="updateResponsibility") |
80 | |
void updateResponsibility(@WebParam(name = "responsibility") Responsibility responsibility) |
81 | |
throws RiceIllegalArgumentException, RiceIllegalStateException; |
82 | |
|
83 | |
|
84 | |
@WebMethod(operationName = "getResponsibility") |
85 | |
@WebResult(name = "responsibility") |
86 | |
Responsibility getResponsibility(@WebParam(name = "id") String id); |
87 | |
|
88 | |
@WebMethod(operationName = "findRespsByNamespaceCodeAndName") |
89 | |
@WebResult(name = "responsibilities") |
90 | |
List<Responsibility> findRespsByNamespaceCodeAndName(@WebParam(name = "namespaceCode") String namespaceCode, |
91 | |
@WebParam(name = "name") String name); |
92 | |
|
93 | |
@WebMethod(operationName = "getResponsibilityTemplate") |
94 | |
@WebResult(name = "template") |
95 | |
Template getResponsibilityTemplate(@WebParam(name = "id") String id); |
96 | |
|
97 | |
@WebMethod(operationName = "findRespTemplatesByNamespaceCodeAndName") |
98 | |
@WebResult(name = "templates") |
99 | |
List<Template> findRespTemplatesByNamespaceCodeAndName(@WebParam(name = "namespaceCode") String namespaceCode, |
100 | |
@WebParam(name = "name") String name); |
101 | |
|
102 | |
@WebMethod(operationName = "hasResponsibility") |
103 | |
@WebResult(name = "result") |
104 | |
boolean hasResponsibility(@WebParam(name = "principalId") String principalId, |
105 | |
@WebParam(name = "namespaceCode") String namespaceCode, |
106 | |
@WebParam(name = "respName") String respName, |
107 | |
@WebParam(name = "qualification") Attributes qualification, |
108 | |
@WebParam(name = "responsibilityDetails") Attributes responsibilityDetails); |
109 | |
|
110 | |
@WebMethod(operationName = "hasResponsibilityByTemplateName") |
111 | |
@WebResult(name = "result") |
112 | |
boolean hasResponsibilityByTemplateName(@WebParam(name = "principalId") String principalId, |
113 | |
@WebParam(name = "namespaceCode") String namespaceCode, |
114 | |
@WebParam(name = "respTemplateName") String respTemplateName, |
115 | |
@WebParam(name = "qualification") Attributes qualification, |
116 | |
@WebParam(name = "responsibilityDetails") Attributes responsibilityDetails); |
117 | |
|
118 | |
@WebMethod(operationName = "getResponsibilityActions") |
119 | |
@WebResult(name = "responsibilityActions") |
120 | |
List<ResponsibilityAction> getResponsibilityActions(@WebParam(name = "namespaceCode") String namespaceCode, |
121 | |
@WebParam(name = "responsibilityName") String responsibilityName, |
122 | |
@WebParam(name = "qualification") Attributes qualification, |
123 | |
@WebParam(name = "responsibilityDetails") Attributes responsibilityDetails); |
124 | |
|
125 | |
@WebMethod(operationName = "getResponsibilityActionsByTemplateName") |
126 | |
@WebResult(name = "responsibilityActions") |
127 | |
List<ResponsibilityAction> getResponsibilityActionsByTemplateName(@WebParam(name = "namespaceCode") String namespaceCode, |
128 | |
@WebParam(name = "responsibilityTemplateName") String respTemplateName, |
129 | |
@WebParam(name = "qualification") Attributes qualification, |
130 | |
@WebParam(name = "responsibilityDetails") Attributes responsibilityDetails); |
131 | |
|
132 | |
@WebMethod(operationName = "getRoleIdsForResponsibility") |
133 | |
@WebResult(name = "roleIds") |
134 | |
List<String> getRoleIdsForResponsibility(@WebParam(name = "id") String id, |
135 | |
@WebParam(name = "qualification") Attributes qualification); |
136 | |
|
137 | |
|
138 | |
|
139 | |
|
140 | |
|
141 | |
|
142 | |
|
143 | |
|
144 | |
@WebMethod(operationName = "findResponsibilities") |
145 | |
@WebResult(name = "results") |
146 | |
ResponsibilityQueryResults findResponsibilities(@WebParam(name = "query") QueryByCriteria queryByCriteria); |
147 | |
|
148 | |
|
149 | |
|
150 | |
|
151 | |
|
152 | |
|
153 | |
|
154 | |
|
155 | |
|
156 | |
@WebMethod(operationName = "findResponsibilityTemplates") |
157 | |
@WebResult(name = "results") |
158 | |
TemplateQueryResults findResponsibilityTemplates(@WebParam(name = "query") QueryByCriteria queryByCriteria); |
159 | |
} |