| 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 | |
import org.kuali.rice.kew.api.rule.Rule; |
| 28 | |
import org.springframework.cache.annotation.Cacheable; |
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
@WebService(name = "documentTypeService", targetNamespace = KewApiConstants.Namespaces.KEW_NAMESPACE_2_0) |
| 36 | |
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) |
| 37 | |
public interface DocumentTypeService { |
| 38 | |
|
| 39 | |
@WebMethod(operationName = "getIdByName") |
| 40 | |
@WebResult(name = "documentTypeId") |
| 41 | |
@XmlElement(name = "documentTypeId", required = false) |
| 42 | |
String getIdByName(@WebParam(name = "documentTypeName") String documentTypeName) |
| 43 | |
throws RiceIllegalArgumentException; |
| 44 | |
|
| 45 | |
@WebMethod(operationName = "getNameById") |
| 46 | |
@WebResult(name = "documentTypeName") |
| 47 | |
@XmlElement(name = "documentTypeName", required = false) |
| 48 | |
String getNameById(@WebParam(name = "documentTypeId") String documentTypeId) |
| 49 | |
throws RiceIllegalArgumentException; |
| 50 | |
|
| 51 | |
@WebMethod(operationName = "getDocumentTypeById") |
| 52 | |
@WebResult(name = "documentType") |
| 53 | |
@XmlElement(name = "documentType", required = false) |
| 54 | |
@Cacheable(value= DocumentType.Cache.NAME, key="'documentTypeId=' + #p0") |
| 55 | |
DocumentType getDocumentTypeById(@WebParam(name = "documentTypeId") String documentTypeId) |
| 56 | |
throws RiceIllegalArgumentException; |
| 57 | |
|
| 58 | |
@WebMethod(operationName = "getDocumentTypeByName") |
| 59 | |
@WebResult(name = "documentType") |
| 60 | |
@XmlElement(name = "documentType", required = false) |
| 61 | |
@Cacheable(value= DocumentType.Cache.NAME, key="'documentTypeName=' + #p0") |
| 62 | |
DocumentType getDocumentTypeByName(@WebParam(name = "documentTypeName") String documentTypeName) |
| 63 | |
throws RiceIllegalArgumentException; |
| 64 | |
|
| 65 | |
@WebMethod(operationName = "isSuperUserForDocumentTypeId") |
| 66 | |
@WebResult(name = "isSuperUser") |
| 67 | |
@XmlElement(name = "isSuperUser", required = true) |
| 68 | |
boolean isSuperUserForDocumentTypeId( |
| 69 | |
@WebParam(name = "principalId") String principalId, |
| 70 | |
@WebParam(name = "documentTypeId") String documentTypeId) |
| 71 | |
throws RiceIllegalArgumentException; |
| 72 | |
|
| 73 | |
@WebMethod(operationName = "isSuperUserForDocumentTypeName") |
| 74 | |
@WebResult(name = "isSuperUser") |
| 75 | |
@XmlElement(name = "isSuperUser", required = true) |
| 76 | |
boolean isSuperUserForDocumentTypeName( |
| 77 | |
@WebParam(name = "principalId") String principalId, |
| 78 | |
@WebParam(name = "documentTypeName") String documentTypeName) |
| 79 | |
throws RiceIllegalArgumentException; |
| 80 | |
|
| 81 | |
@WebMethod(operationName = "hasRouteNodeForDocumentTypeName") |
| 82 | |
@WebResult(name = "hasRouteNode") |
| 83 | |
@XmlElement(name = "hasRouteNode", required = true) |
| 84 | |
boolean hasRouteNodeForDocumentTypeName( |
| 85 | |
@WebParam(name = "routeNodeName") String routeNodeName, |
| 86 | |
@WebParam(name = "documentTypeName") String documentTypeName) |
| 87 | |
throws RiceIllegalArgumentException; |
| 88 | |
|
| 89 | |
@WebMethod(operationName = "hasRouteNodeForDocumentTypeId") |
| 90 | |
@WebResult(name = "hasRouteNode") |
| 91 | |
@XmlElement(name = "hasRouteNode", required = true) |
| 92 | |
boolean hasRouteNodeForDocumentTypeId( |
| 93 | |
@WebParam(name = "routeNodeName") String routeNodeName, |
| 94 | |
@WebParam(name = "documentTypeId") String documentTypeId) |
| 95 | |
throws RiceIllegalArgumentException; |
| 96 | |
|
| 97 | |
@WebMethod(operationName = "isActiveById") |
| 98 | |
@WebResult(name = "isActive") |
| 99 | |
@XmlElement(name = "isActive", required = true) |
| 100 | |
boolean isActiveById(@WebParam(name = "documentTypeId") String documentTypeId) |
| 101 | |
throws RiceIllegalArgumentException; |
| 102 | |
|
| 103 | |
@WebMethod(operationName = "isActiveByName") |
| 104 | |
@WebResult(name = "isActive") |
| 105 | |
@XmlElement(name = "isActive", required = true) |
| 106 | |
boolean isActiveByName(@WebParam(name = "documentTypeName") String documentTypeName) |
| 107 | |
throws RiceIllegalArgumentException; |
| 108 | |
|
| 109 | |
@WebMethod(operationName = "getRoutePathForDocumentTypeId") |
| 110 | |
@WebResult(name = "routePath") |
| 111 | |
@XmlElement(name = "routePath", required = false) |
| 112 | |
@Cacheable(value= RoutePath.Cache.NAME, key="'documentTypeId=' + #p0") |
| 113 | |
RoutePath getRoutePathForDocumentTypeId(@WebParam(name = "documentTypeId") String documentTypeId) |
| 114 | |
throws RiceIllegalArgumentException; |
| 115 | |
|
| 116 | |
@WebMethod(operationName = "getRoutePathForDocumentTypeName") |
| 117 | |
@WebResult(name = "routePath") |
| 118 | |
@XmlElement(name = "routePath", required = false) |
| 119 | |
@Cacheable(value= RoutePath.Cache.NAME, key="'documentTypeName=' + #p0") |
| 120 | |
RoutePath getRoutePathForDocumentTypeName(@WebParam(name = "documentTypeName") String documentTypeName) |
| 121 | |
throws RiceIllegalArgumentException; |
| 122 | |
|
| 123 | |
} |