Modify svnfm pom file for build docker
[vfc/nfvo/driver/vnfm/svnfm.git] / huawei / vnfmadapter / VnfmadapterService / service / src / main / java / org / onap / vfc / nfvo / vnfm / svnfm / vnfmadapter / service / dao / inf / VnfmDao.java
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.vnfm.svnfm.vnfmadapter.service.dao.inf;
18
19 import java.util.List;
20
21 import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.entity.Vnfm;
22 import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.common.restclient.ServiceException;
23
24 /**
25  * VNFM DAO
26  * .</br>
27  *
28  * @author
29  * @version     NFVO 0.5  Sep 14, 2016
30  */
31 public interface VnfmDao {
32
33     /**
34      * Add VNFM
35      * <br>
36      *
37      * @param vnfm
38      * @return
39      * @throws ServiceException
40      * @since  NFVO 0.5
41      */
42     int insertVnfm(Vnfm vnfm) throws ServiceException;
43
44     /**
45      * Delete VNFM
46      * <br>
47      *
48      * @param vnfmDn
49      * @return
50      * @throws ServiceException
51      * @since  NFVO 0.5
52      */
53     int deleteVnfm(String vnfmDn) throws ServiceException;
54
55     /**
56      * Update VNFM
57      * <br>
58      *
59      * @param vnfm
60      * @return
61      * @throws ServiceException
62      * @since  NFVO 0.5
63      */
64     int updateVnfm(Vnfm vnfm) throws ServiceException;
65
66     /**
67      * Index VNFM
68      * <br>
69      *
70      * @param pageSize
71      * @param pageNo
72      * @return
73      * @throws ServiceException
74      * @since  NFVO 0.5
75      */
76     List<Vnfm> indexVnfms(int pageSize, int pageNo) throws ServiceException;
77
78     /**
79      * Get VNFM by id.
80      * <br>
81      *
82      * @param id
83      * @return
84      * @since  NFVO 0.5
85      */
86     Vnfm getVnfmById(String id);
87 }