398d8a956c9563f883d7aba0bdc8b1c3b1a73fe4
[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.base.openstack.inf;
18
19 import java.util.List;
20 import java.util.Map;
21
22 import org.onap.vfc.nfvo.res.service.entity.NetworkEntity;
23 import org.openo.baseservice.remoteservice.exception.ServiceException;
24
25 import net.sf.json.JSONObject;
26
27 /**
28  *
29  * Network class.<br>
30  * <p>
31  * </p>
32  *
33  * @author
34  * @version     NFVO 0.5  Sep 10, 2016
35  */
36 public interface Network extends InterfaceResManagement {
37
38     /**
39      *
40      * Update status by VIM Id.<br>
41      *
42      * @param jsonObject
43      * @return
44      * @throws ServiceException
45      * @since  NFVO 0.5
46      */
47     int updateStatusByVimId(JSONObject jsonObject) throws ServiceException;
48
49     /**
50      *
51      * Get list of networks.<br>
52      *
53      * @param condition
54      * @return
55      * @throws ServiceException
56      * @since  NFVO 0.5
57      */
58     List<NetworkEntity> getList(Map<String, Object> condition) throws ServiceException;
59
60     /**
61      * <br>
62      *
63      * @param entity
64      * @return
65      * @since NFVO 0.5
66      */
67     int add(NetworkEntity entity) throws ServiceException;
68
69 }