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.shareddata.api.SharedDataConstants; | |
20 | ||
21 | import java.util.List; | |
22 | ||
23 | import javax.jws.WebMethod; | |
24 | import javax.jws.WebParam; | |
25 | import javax.jws.WebService; | |
26 | import javax.jws.soap.SOAPBinding; | |
27 | ||
28 | @WebService(name = "campusService", targetNamespace = SharedDataConstants.Namespaces.SHAREDDATA_NAMESPACE ) | |
29 | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | |
30 | public interface CampusService { | |
31 | ||
32 | /** | |
33 | * This will return a {@link Campus}. | |
34 | * | |
35 | * @param code the code of the campus to return | |
36 | * @throws IllegalArgumentException if the code is null | |
37 | * @throws IllegalStateException if the campus does not exist in the system under the | |
38 | * specific code | |
39 | */ | |
40 | @WebMethod(operationName="getCampus") | |
41 | Campus getCampus(@WebParam(name = "code") String code); | |
42 | ||
43 | /** | |
44 | * This will return all {@link Campus}. | |
45 | * | |
46 | */ | |
47 | @WebMethod(operationName="findAllCampuses") | |
48 | List<Campus> findAllCampuses(); | |
49 | ||
50 | /** | |
51 | * This will return a {@link CampusType}. | |
52 | * | |
53 | * @param code the code of the campus type to return | |
54 | * @throws IllegalArgumentException if the code is null | |
55 | * @throws IllegalStateException if the campus does not exist in the system under the | |
56 | * specific code | |
57 | */ | |
58 | @WebMethod(operationName="getCampusType") | |
59 | CampusType getCampusType(@WebParam(name = "code") String code); | |
60 | ||
61 | /** | |
62 | * This will return all {@link CampusType}. | |
63 | * | |
64 | */ | |
65 | @WebMethod(operationName="findAllCampusTypes") | |
66 | List<CampusType> findAllCampusTypes(); | |
67 | ||
68 | //lookup method? | |
69 | } |