1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.location.api.county;
17
18 import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
19 import org.kuali.rice.location.api.LocationConstants;
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 @WebService(name = "CountyService", targetNamespace = LocationConstants.Namespaces.LOCATION_NAMESPACE_2_0)
37 @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
38 public interface CountyService {
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57 @WebMethod(operationName = "getCounty")
58 @WebResult(name = "county")
59 @Cacheable(value=County.Cache.NAME, key="'countryCode=' + #p0 + '|' + 'stateCode=' + #p1 + '|' + 'code=' + #p3")
60 County getCounty(@WebParam(name = "countryCode") String countryCode, @WebParam(name = "stateCode") String stateCode, @WebParam(name = "code") String code)
61 throws RiceIllegalArgumentException;
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80 @WebMethod(operationName = "findAllCountiesInCountryAndState")
81 @XmlElementWrapper(name = "counties", required = true)
82 @XmlElement(name = "county", required = false)
83 @WebResult(name = "counties")
84 @Cacheable(value=County.Cache.NAME, key="'countryCode=' + #p0 + '|' + 'stateCode=' + #p1")
85 List<County> findAllCountiesInCountryAndState(@WebParam(name = "countryCode") String countryCode, @WebParam(name = "stateCode") String stateCode)
86 throws RiceIllegalArgumentException;
87 }