1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
package org.kuali.rice.kew.framework.docsearch; |
15 | |
|
16 | |
import org.kuali.rice.core.api.uif.RemotableAttributeField; |
17 | |
import org.kuali.rice.core.api.util.jaxb.MapStringStringAdapter; |
18 | |
import org.kuali.rice.kew.api.KewApiConstants; |
19 | |
import org.kuali.rice.kew.api.document.attribute.DocumentAttribute; |
20 | |
import org.kuali.rice.kew.api.document.attribute.WorkflowAttributeDefinition; |
21 | |
import org.kuali.rice.kew.api.document.attribute.WorkflowAttributeValidationError; |
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 | |
import javax.xml.bind.annotation.XmlElement; |
29 | |
import javax.xml.bind.annotation.XmlElementWrapper; |
30 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
31 | |
import java.io.Serializable; |
32 | |
import java.util.List; |
33 | |
import java.util.Map; |
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
@WebService(name = "searchableAttributeServiceSoap", targetNamespace = KewApiConstants.Namespaces.KEW_NAMESPACE_2_0) |
41 | |
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) |
42 | |
public interface SearchableAttribute { |
43 | |
|
44 | |
@WebMethod(operationName = "generateSearchContent") |
45 | |
@WebResult(name = "searchContent") |
46 | |
public String generateSearchContent(@WebParam(name = "documentTypeName") String documentTypeName, |
47 | |
@WebParam(name = "attributeDefinition") WorkflowAttributeDefinition attributeDefinition); |
48 | |
|
49 | |
@WebMethod(operationName = "getDocumentAttributes") |
50 | |
@WebResult(name = "documentAttributes") |
51 | |
@XmlElementWrapper(name = "documentAttributes", required = false) |
52 | |
@XmlElement(name = "documentAttribute", required = false) |
53 | |
public List<DocumentAttribute<?>> getDocumentAttributes(@WebParam(name = "documentSearchContext") DocumentSearchContext documentSearchContext); |
54 | |
|
55 | |
@WebMethod(operationName = "getSearchFields") |
56 | |
@WebResult(name = "searchFields") |
57 | |
@XmlElementWrapper(name = "searchFields", required = false) |
58 | |
@XmlElement(name = "searchField", required = false) |
59 | |
public List<RemotableAttributeField> getSearchFields(@WebParam(name = "documentTypeName") String documentTypeName); |
60 | |
|
61 | |
@WebMethod(operationName = "validateSearchParameters") |
62 | |
@WebResult(name = "validationErrors") |
63 | |
@XmlElementWrapper(name = "validationErrors", required = false) |
64 | |
@XmlElement(name = "validationError", required = false) |
65 | |
public List<WorkflowAttributeValidationError> validateSearchParameters( |
66 | |
@WebParam(name = "parameters") |
67 | |
@XmlJavaTypeAdapter(MapStringStringAdapter.class) Map<String, String> parameters, |
68 | |
@WebParam(name = "documentSearchContext") DocumentSearchContext searchContext); |
69 | |
|
70 | |
} |