1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krms.api.repository.term;
17
18 import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
19 import org.kuali.rice.krms.api.KrmsConstants;
20 import org.springframework.cache.annotation.Cacheable;
21
22 import javax.jws.WebMethod;
23 import javax.jws.WebParam;
24 import javax.jws.WebResult;
25 import javax.jws.WebService;
26 import javax.jws.soap.SOAPBinding;
27 import javax.xml.bind.annotation.XmlElement;
28 import javax.xml.bind.annotation.XmlElementWrapper;
29 import java.util.List;
30
31
32
33
34
35
36
37
38 @WebService(name = "termRepositoryService", targetNamespace = KrmsConstants.Namespaces.KRMS_NAMESPACE_2_0)
39 @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
40 public interface TermRepositoryService {
41
42
43
44
45
46
47
48
49
50
51
52 @WebMethod(operationName = "findTermResolversByNamespace")
53 @XmlElementWrapper(name = "termResolvers", required = true)
54 @XmlElement(name = "termResolver", required = false)
55 @WebResult(name = "termResolvers")
56 @Cacheable(value= TermResolverDefinition.Cache.NAME, key="'namespace=' + #p0")
57 List<TermResolverDefinition> findTermResolversByNamespace(@WebParam(name = "namespace") String namespace) throws RiceIllegalArgumentException;;
58
59
60
61
62
63
64
65
66
67
68
69 @WebMethod(operationName = "getTerm")
70 @WebResult(name = "term")
71 @Cacheable(value= TermDefinition.Cache.NAME, key="'id=' + #p0")
72 TermDefinition getTerm(@WebParam(name = "termId") String termId) throws RiceIllegalArgumentException;;
73
74
75
76
77
78
79
80
81
82
83 @WebMethod(operationName = "findAllTermSpecificationsByContextId")
84 @XmlElementWrapper(name = "termSpecifications", required = true)
85 @XmlElement(name = "termSpecification", required = false)
86 @WebResult(name = "termSpecifications")
87 @Cacheable(value= TermSpecificationDefinition.Cache.NAME, key="'id=' + #p0")
88 List<TermSpecificationDefinition> findAllTermSpecificationsByContextId(@WebParam(name = "contextId") String contextId) throws RiceIllegalArgumentException;;
89 }