2 * Copyright 2016-2017 Huawei Technologies Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onap.vfc.nfvo.resmanagement.service.business.inf;
19 import java.util.List;
22 import org.onap.vfc.nfvo.resmanagement.service.entity.NetworkEntity;
23 import org.onap.vfc.nfvo.resmanagement.common.util.restclient.ServiceException;
27 * Network Business class.<br>
32 * @version NFVO 0.5 Sep 10, 2016
34 public interface NetworkBusiness {
38 * Get network details.<br>
44 NetworkEntity getNetwork(String id);
48 * Get details of available networks.<br>
54 List<NetworkEntity> getNetworks(Map<String, Object> condition);
62 * @throws ServiceException
65 int deleteNetwork(String id) throws ServiceException;
69 * Delete network by Virtual Infrastructure Manager ID.<br>
73 * @throws ServiceException
76 int deleteNetworkByVimId(String vimId) throws ServiceException;
82 * @param networkEntity
84 * @throws ServiceException
87 int addNetwork(NetworkEntity networkEntity) throws ServiceException;
91 * Add Selective Network.<br>
93 * @param networkEntity
95 * @throws ServiceException
98 int addNetworkSelective(NetworkEntity networkEntity) throws ServiceException;
102 * Update Selective Network.<br>
104 * @param networkEntity
106 * @throws ServiceException
109 int updateNetworkSelective(NetworkEntity networkEntity) throws ServiceException;
113 * Update Network.<br>
115 * @param networkEntity
117 * @throws ServiceException
120 int updateNetwork(NetworkEntity networkEntity) throws ServiceException;
124 * Update network by Virtual Infrastructure Manager ID.<br>
126 * @param networkEntity
128 * @throws ServiceException
131 int updateNetworkByVimId(NetworkEntity networkEntity) throws ServiceException;