1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kew.api.doctype; |
17 | |
|
18 | |
import javax.jws.WebMethod; |
19 | |
import javax.jws.WebParam; |
20 | |
import javax.jws.WebResult; |
21 | |
import javax.jws.WebService; |
22 | |
import javax.jws.soap.SOAPBinding; |
23 | |
import javax.xml.bind.annotation.XmlElement; |
24 | |
|
25 | |
import org.kuali.rice.core.api.exception.RiceIllegalArgumentException; |
26 | |
import org.kuali.rice.kew.api.KewApiConstants; |
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
@WebService(name = "documentTypeServiceSoap", targetNamespace = KewApiConstants.Namespaces.KEW_NAMESPACE_2_0) |
34 | |
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) |
35 | |
public interface DocumentTypeService { |
36 | |
|
37 | |
@WebMethod(operationName = "getIdByName") |
38 | |
@WebResult(name = "documentTypeId") |
39 | |
@XmlElement(name = "documentTypeId", required = false) |
40 | |
String getIdByName(@WebParam(name = "documentTypeName") String documentTypeName) |
41 | |
throws RiceIllegalArgumentException; |
42 | |
|
43 | |
@WebMethod(operationName = "getNameById") |
44 | |
@WebResult(name = "documentTypeName") |
45 | |
@XmlElement(name = "documentTypeName", required = false) |
46 | |
String getNameById(@WebParam(name = "documentTypeId") String documentTypeId) |
47 | |
throws RiceIllegalArgumentException; |
48 | |
|
49 | |
@WebMethod(operationName = "getDocumentTypeById") |
50 | |
@WebResult(name = "documentType") |
51 | |
@XmlElement(name = "documentType", required = false) |
52 | |
DocumentType getDocumentTypeById(@WebParam(name = "documentTypeId") String documentTypeId) |
53 | |
throws RiceIllegalArgumentException; |
54 | |
|
55 | |
@WebMethod(operationName = "getDocumentTypeByName") |
56 | |
@WebResult(name = "documentType") |
57 | |
@XmlElement(name = "documentType", required = false) |
58 | |
DocumentType getDocumentTypeByName(@WebParam(name = "documentTypeName") String documentTypeName) |
59 | |
throws RiceIllegalArgumentException; |
60 | |
|
61 | |
@WebMethod(operationName = "isSuperUserForDocumentTypeId") |
62 | |
@WebResult(name = "isSuperUser") |
63 | |
@XmlElement(name = "isSuperUser", required = true) |
64 | |
boolean isSuperUserForDocumentTypeId( |
65 | |
@WebParam(name = "principalId") String principalId, |
66 | |
@WebParam(name = "documentTypeId") String documentTypeId) |
67 | |
throws RiceIllegalArgumentException; |
68 | |
|
69 | |
@WebMethod(operationName = "isSuperUserForDocumentTypeName") |
70 | |
@WebResult(name = "isSuperUser") |
71 | |
@XmlElement(name = "isSuperUser", required = true) |
72 | |
boolean isSuperUserForDocumentTypeName( |
73 | |
@WebParam(name = "principalId") String principalId, |
74 | |
@WebParam(name = "documentTypeName") String documentTypeName) |
75 | |
throws RiceIllegalArgumentException; |
76 | |
|
77 | |
@WebMethod(operationName = "hasRouteNodeForDocumentTypeName") |
78 | |
@WebResult(name = "hasRouteNode") |
79 | |
@XmlElement(name = "hasRouteNode", required = true) |
80 | |
boolean hasRouteNodeForDocumentTypeName( |
81 | |
@WebParam(name = "routeNodeName") String routeNodeName, |
82 | |
@WebParam(name = "documentTypeName") String documentTypeName) |
83 | |
throws RiceIllegalArgumentException; |
84 | |
|
85 | |
@WebMethod(operationName = "hasRouteNodeForDocumentTypeId") |
86 | |
@WebResult(name = "hasRouteNode") |
87 | |
@XmlElement(name = "hasRouteNode", required = true) |
88 | |
boolean hasRouteNodeForDocumentTypeId( |
89 | |
@WebParam(name = "routeNodeName") String routeNodeName, |
90 | |
@WebParam(name = "documentTypeId") String documentTypeId) |
91 | |
throws RiceIllegalArgumentException; |
92 | |
|
93 | |
@WebMethod(operationName = "isActiveById") |
94 | |
@WebResult(name = "isActive") |
95 | |
@XmlElement(name = "isActive", required = true) |
96 | |
boolean isActiveById(@WebParam(name = "documentTypeId") String documentTypeId) |
97 | |
throws RiceIllegalArgumentException; |
98 | |
|
99 | |
@WebMethod(operationName = "isActiveByName") |
100 | |
@WebResult(name = "isActive") |
101 | |
@XmlElement(name = "isActive", required = true) |
102 | |
boolean isActiveByName(@WebParam(name = "documentTypeName") String documentTypeName) |
103 | |
throws RiceIllegalArgumentException; |
104 | |
|
105 | |
@WebMethod(operationName = "getRoutePathForDocumentTypeId") |
106 | |
@WebResult(name = "routePath") |
107 | |
@XmlElement(name = "routePath", required = false) |
108 | |
RoutePath getRoutePathForDocumentTypeId(@WebParam(name = "documentTypeId") String documentTypeId) |
109 | |
throws RiceIllegalArgumentException; |
110 | |
|
111 | |
@WebMethod(operationName = "getRoutePathForDocumentTypeName") |
112 | |
@WebResult(name = "routePath") |
113 | |
@XmlElement(name = "routePath", required = false) |
114 | |
RoutePath getRoutePathForDocumentTypeName(@WebParam(name = "documentTypeName") String documentTypeName) |
115 | |
throws RiceIllegalArgumentException; |
116 | |
|
117 | |
} |