2 * Copyright 2016 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.res.service.business.inf;
19 import java.util.List;
22 import org.onap.vfc.nfvo.res.service.entity.SitesEntity;
23 import org.openo.baseservice.remoteservice.exception.ServiceException;
26 * DC info interface.<br/>
31 * @version NFVO 0.5 Aug 24, 2016
33 public interface SitesBusiness {
36 * It is used to get Site info.<br/>
39 * @return The get result
40 * @throws ServiceException When get failed.
43 SitesEntity getSite(String id) throws ServiceException;
46 * It is used to get Sites info.<br/>
49 * @return The get result
52 List<SitesEntity> getSites(Map<String, Object> condition);
55 * It is used to delete Site info.<br/>
58 * @return The delete result
59 * @throws ServiceException When delete failed.
62 int deleteSite(String id) throws ServiceException;
65 * It is used to add Site info.<br/>
68 * @return The add result
69 * @throws ServiceException When add failed.
72 int addSite(SitesEntity sitesEntity) throws ServiceException;
75 * It is used to add Site info.<br/>
78 * @return The add result
79 * @throws ServiceException When add failed.
82 int addSiteSelective(SitesEntity sitesEntity) throws ServiceException;
85 * It is used to update Site info.<br/>
88 * @return The update result
89 * @throws ServiceException When update failed.
92 int updateSiteSelective(SitesEntity sitesEntity) throws ServiceException;
95 * It is used to create update Site info.<br/>
98 * @return The update result
99 * @throws ServiceException When update failed.
102 int updateSite(SitesEntity sitesEntity) throws ServiceException;
105 * It is used to update Site info.<br/>
108 * @return The update result
109 * @throws ServiceException When update failed.
112 int updateSiteByVimId(SitesEntity sitesEntity) throws ServiceException;
115 * It is used to update Site info.<br/>
118 * @return The update result
119 * @throws ServiceException When update failed.
122 int updateSiteResource(SitesEntity sitesEntity) throws ServiceException;