1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.krms.api.validation; |
17 | |
|
18 | |
import org.kuali.rice.core.api.exception.RiceIllegalArgumentException; |
19 | |
import org.kuali.rice.core.api.exception.RiceIllegalStateException; |
20 | |
import org.kuali.rice.krms.api.KrmsConstants; |
21 | |
import org.kuali.rice.krms.api.repository.rule.RuleDefinition; |
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 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
@WebService(name = "validationRuleServiceSoap", targetNamespace = KrmsConstants.Namespaces.KRMS_NAMESPACE_2_0) |
33 | |
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) |
34 | |
public interface ValidationRuleService { |
35 | |
|
36 | |
@WebMethod(operationName = "getValidation") |
37 | |
@WebResult(name = "validation") |
38 | |
RuleDefinition getValidationRule(@WebParam(name = "validationId") String validationId) |
39 | |
throws RiceIllegalArgumentException; |
40 | |
|
41 | |
@WebMethod(operationName = "getValidationByName") |
42 | |
@WebResult(name = "validation") |
43 | |
RuleDefinition getValidationRuleByName( |
44 | |
@WebParam(name = "namespaceCode") String namespaceCode, |
45 | |
@WebParam(name = "name") String name) |
46 | |
throws RiceIllegalArgumentException; |
47 | |
|
48 | |
|
49 | |
|
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
|
58 | |
|
59 | |
|
60 | |
@WebMethod(operationName = "createValidationRule") |
61 | |
@WebResult(name = "validation") |
62 | |
RuleDefinition createValidationRule(@WebParam(name = "validation") RuleDefinition validation) |
63 | |
throws RiceIllegalArgumentException, RiceIllegalStateException; |
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
|
73 | |
|
74 | |
@WebMethod(operationName = "updateValidationRule") |
75 | |
@WebResult(name = "validation") |
76 | |
RuleDefinition updateValidationRule(@WebParam(name = "validation") RuleDefinition validation) |
77 | |
throws RiceIllegalArgumentException, RiceIllegalStateException; |
78 | |
|
79 | |
|
80 | |
} |