Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
CampusService |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2006-2011 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | ||
17 | package org.kuali.rice.shareddata.api.campus; | |
18 | ||
19 | import org.kuali.rice.core.api.exception.RiceIllegalArgumentException; | |
20 | import org.kuali.rice.shareddata.api.SharedDataConstants; | |
21 | ||
22 | import java.util.List; | |
23 | ||
24 | import javax.jws.WebMethod; | |
25 | import javax.jws.WebParam; | |
26 | import javax.jws.WebService; | |
27 | import javax.jws.soap.SOAPBinding; | |
28 | ||
29 | @WebService(name = "campusService", targetNamespace = SharedDataConstants.Namespaces.SHAREDDATA_NAMESPACE ) | |
30 | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | |
31 | public interface CampusService { | |
32 | ||
33 | /** | |
34 | * This will return a {@link Campus}. | |
35 | * | |
36 | * @param code the code of the campus to return | |
37 | * @throws IllegalArgumentException if the code is null | |
38 | * @throws IllegalStateException if the campus does not exist in the system under the | |
39 | * specific code | |
40 | */ | |
41 | @WebMethod(operationName="getCampus") | |
42 | Campus getCampus(@WebParam(name = "code") String code) throws RiceIllegalArgumentException; | |
43 | ||
44 | /** | |
45 | * This will return all {@link Campus}. | |
46 | * | |
47 | */ | |
48 | @WebMethod(operationName="findAllCampuses") | |
49 | List<Campus> findAllCampuses(); | |
50 | ||
51 | /** | |
52 | * This will return a {@link CampusType}. | |
53 | * | |
54 | * @param code the code of the campus type to return | |
55 | * @return CampusType object represented by the passed in code | |
56 | * @throws IllegalArgumentException if the code is null | |
57 | * @throws IllegalStateException if the campus does not exist in the system under the | |
58 | * specific code | |
59 | */ | |
60 | @WebMethod(operationName="getCampusType") | |
61 | CampusType getCampusType(@WebParam(name = "code") String code) throws RiceIllegalArgumentException; | |
62 | ||
63 | /** | |
64 | * This will return all {@link CampusType}. | |
65 | * | |
66 | */ | |
67 | @WebMethod(operationName="findAllCampusTypes") | |
68 | List<CampusType> findAllCampusTypes(); | |
69 | ||
70 | //lookup method? | |
71 | } |