be4bf29b0ab4da35cb71a94310fcad5aa1a87dfa
[vfc/nfvo/resmanagement.git] /
1 /*
2  * Copyright 2016-2017 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.resmanagement.service.business.inf;
18
19 import java.util.List;
20 import java.util.Map;
21
22 import org.onap.vfc.nfvo.resmanagement.service.entity.NetworkEntity;
23 import org.onap.vfc.nfvo.resmanagement.common.util.restclient.ServiceException;
24
25 /**
26  *
27  * Network Business class.<br>
28  * <p>
29  * </p>
30  *
31  * @author
32  * @version     NFVO 0.5  Sep 10, 2016
33  */
34 public interface NetworkBusiness {
35
36     /**
37      *
38      * Get network details.<br>
39      *
40      * @param id
41      * @return
42      * @since  NFVO 0.5
43      */
44     NetworkEntity getNetwork(String id);
45
46     /**
47      *
48      * Get details of available networks.<br>
49      *
50      * @param condition
51      * @return
52      * @since  NFVO 0.5
53      */
54     List<NetworkEntity> getNetworks(Map<String, Object> condition);
55
56     /**
57      *
58      * Delete Network.<br>
59      *
60      * @param id
61      * @return
62      * @throws ServiceException
63      * @since  NFVO 0.5
64      */
65     int deleteNetwork(String id) throws ServiceException;
66
67     /**
68      *
69      * Delete network by Virtual Infrastructure Manager ID.<br>
70      *
71      * @param vimId
72      * @return
73      * @throws ServiceException
74      * @since  NFVO 0.5
75      */
76     int deleteNetworkByVimId(String vimId) throws ServiceException;
77
78     /**
79      *
80      * Add Network.<br>
81      *
82      * @param networkEntity
83      * @return
84      * @throws ServiceException
85      * @since  NFVO 0.5
86      */
87     int addNetwork(NetworkEntity networkEntity) throws ServiceException;
88
89     /**
90      *
91      * Add Selective Network.<br>
92      *
93      * @param networkEntity
94      * @return
95      * @throws ServiceException
96      * @since  NFVO 0.5
97      */
98     int addNetworkSelective(NetworkEntity networkEntity) throws ServiceException;
99
100     /**
101      *
102      * Update Selective Network.<br>
103      *
104      * @param networkEntity
105      * @return
106      * @throws ServiceException
107      * @since  NFVO 0.5
108      */
109     int updateNetworkSelective(NetworkEntity networkEntity) throws ServiceException;
110
111     /**
112      *
113      * Update Network.<br>
114      *
115      * @param networkEntity
116      * @return
117      * @throws ServiceException
118      * @since  NFVO 0.5
119      */
120     int updateNetwork(NetworkEntity networkEntity) throws ServiceException;
121
122     /**
123      *
124      * Update network by Virtual Infrastructure Manager ID.<br>
125      *
126      * @param networkEntity
127      * @return
128      * @throws ServiceException
129      * @since  NFVO 0.5
130      */
131     int updateNetworkByVimId(NetworkEntity networkEntity) throws ServiceException;
132
133 }