f132a6d85362dfa864f7ac10eee5b194d27b4017
[vfc/nfvo/resmanagement.git] /
1 /*
2  * Copyright 2016 Huawei Technologies Co., Ltd.
3  *
4  * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0
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.onap.vfc.nfvo.res.service.business.inf;
18
19 import java.util.List;
20 import java.util.Map;
21
22 import org.onap.vfc.nfvo.res.service.entity.LocationEntity;
23 import org.openo.baseservice.remoteservice.exception.ServiceException;
24
25 /**
26  *
27  * Location Business Class.<br>
28  * <p>
29  * </p>
30  *
31  * @author
32  * @version     NFVO 0.5  Sep 10, 2016
33  */
34 public interface LocationBusiness {
35
36     /**
37      *
38      * Get Location.<br>
39      *
40      * @param location
41      * @return
42      * @throws ServiceException
43      * @since  NFVO 0.5
44      */
45     LocationEntity getLocation(String location) throws ServiceException;
46
47     /**
48      *
49      * Get Locations.<br>
50      *
51      * @param condition
52      * @return
53      * @throws ServiceException
54      * @since  NFVO 0.5
55      */
56     List<LocationEntity> getLocations(Map<String, Object> condition) throws ServiceException;
57
58     /**
59      *
60      * Delete Location.<br>
61      *
62      * @param location
63      * @return
64      * @throws ServiceException
65      * @since  NFVO 0.5
66      */
67     int deleteLocation(String location) throws ServiceException;
68
69     /**
70      *
71      * Add Location.<br>
72      *
73      * @param locationEntity
74      * @return
75      * @throws ServiceException
76      * @since  NFVO 0.5
77      */
78     int addLocation(LocationEntity locationEntity) throws ServiceException;
79
80     /**
81      *
82      * Add Selective Location.<br>
83      *
84      * @param locationEntity
85      * @return
86      * @throws ServiceException
87      * @since  NFVO 0.5
88      */
89     int addLocationSelective(LocationEntity locationEntity) throws ServiceException;
90
91     /**
92      *
93      * Update Selective Location.<br>
94      *
95      * @param locationEntity
96      * @return
97      * @throws ServiceException
98      * @since  NFVO 0.5
99      */
100     int updateLocationSelective(LocationEntity locationEntity) throws ServiceException;
101
102     /**
103      *
104      * Update Location.<br>
105      *
106      * @param locationEntity
107      * @return
108      * @throws ServiceException
109      * @since  NFVO 0.5
110      */
111     int updateLocation(LocationEntity locationEntity) throws ServiceException;
112
113     /**
114      *
115      * Get Country.<br>
116      *
117      * @return
118      * @throws ServiceException
119      * @since  NFVO 0.5
120      */
121     List<String> getCountry() throws ServiceException;
122
123     /**
124      *
125      * Get Location By Country.<br>
126      *
127      * @param condition
128      * @return
129      * @throws ServiceException
130      * @since  NFVO 0.5
131      */
132     List<String> getLocationByCountry(Map<String, Object> condition) throws ServiceException;
133
134 }