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