1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.location.api.campus;
17
18 import org.kuali.rice.core.api.criteria.QueryByCriteria;
19 import org.kuali.rice.core.api.exception.RiceIllegalArgumentException;
20 import org.kuali.rice.location.api.LocationConstants;
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
33
34
35
36
37 @WebService(name = "campusService", targetNamespace = LocationConstants.Namespaces.LOCATION_NAMESPACE_2_0)
38 @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
39 public interface CampusService {
40
41
42
43
44
45
46
47 @WebMethod(operationName="getCampus")
48 @WebResult(name = "campus")
49 @Cacheable(value=Campus.Cache.NAME, key="'code=' + #p0")
50 Campus getCampus(@WebParam(name = "code") String code) throws RiceIllegalArgumentException;
51
52
53
54
55 @WebMethod(operationName="findAllCampuses")
56 @XmlElementWrapper(name = "campuses", required = false)
57 @XmlElement(name = "campus", required = false)
58 @WebResult(name = "campuses")
59 @Cacheable(value=Campus.Cache.NAME, key="'all'")
60 List<Campus> findAllCampuses();
61
62
63
64
65
66
67
68
69
70 @WebMethod(operationName="getCampusType")
71 @WebResult(name = "campusType")
72 @Cacheable(value=CampusType.Cache.NAME, key="'code=' + #p0")
73 CampusType getCampusType(@WebParam(name = "code") String code) throws RiceIllegalArgumentException;
74
75
76
77
78 @WebMethod(operationName="findAllCampusTypes")
79 @XmlElementWrapper(name = "campusTypes", required = false)
80 @XmlElement(name = "campusType", required = false)
81 @WebResult(name = "campusTypes")
82 @Cacheable(value=CampusType.Cache.NAME, key="'all'")
83 List<CampusType> findAllCampusTypes();
84
85
86
87
88
89
90
91
92
93 @WebMethod(operationName = "findCampuses")
94 @WebResult(name = "results")
95 CampusQueryResults findCampuses(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
96
97
98
99
100
101
102
103
104
105 @WebMethod(operationName = "findCampusTypes")
106 @WebResult(name = "results")
107 CampusTypeQueryResults findCampusTypes(@WebParam(name = "query") QueryByCriteria queryByCriteria) throws RiceIllegalArgumentException;
108 }