Add the framework for PNF registration function
[aai/esr-server.git] / esr-mgr / src / main / java / org / onap / aai / esr / wrapper / PnfManagerWrapper.java
1 /**
2  * Copyright 2018 ZTE Corporation.
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 package org.onap.aai.esr.wrapper;
17
18 import javax.ws.rs.core.Response;
19 import org.onap.aai.esr.entity.rest.PnfRegisterInfo;
20 import org.onap.aai.esr.externalservice.aai.ExternalSystemProxy;
21 import org.slf4j.Logger;
22 import org.slf4j.LoggerFactory;
23
24 public class PnfManagerWrapper {
25     private static PnfManagerWrapper pnfManagerWrapper;
26     private static final Logger LOG = LoggerFactory.getLogger(PnfManagerWrapper.class);
27
28 //    private static PnfManagerUtil pnfManagerUtil = new PnfManagerUtil();
29     private static ExternalSystemProxy externalSystemProxy = new ExternalSystemProxy();
30
31     /**
32      * get PnfManagerWrapper instance.
33      * 
34      * @return pnf manager wrapper instance
35      */
36     public static PnfManagerWrapper getInstance() {
37         if (pnfManagerWrapper == null) {
38             pnfManagerWrapper = new PnfManagerWrapper(externalSystemProxy);
39         }
40         return pnfManagerWrapper;
41     }
42     
43     public PnfManagerWrapper(ExternalSystemProxy externalSystemProxy){
44         PnfManagerWrapper.externalSystemProxy = externalSystemProxy;
45     }
46
47     /**
48      * @return
49      */
50     public Response queryPnfList() {
51         // TODO Auto-generated method stub
52         return null;
53     }
54
55     /**
56      * @param pnfId
57      * @return
58      */
59     public Response queryPnfById(String pnfId) {
60         // TODO Auto-generated method stub
61         return null;
62     }
63
64     /**
65      * @param pnfId
66      * @return
67      */
68     public Response delPnf(String pnfId) {
69         // TODO Auto-generated method stub
70         return null;
71     }
72
73     /**
74      * @param pnf
75      * @param pnfId
76      * @return
77      */
78     public Response updatePnf(PnfRegisterInfo pnf, String pnfId) {
79         // TODO Auto-generated method stub
80         return null;
81     }
82
83     /**
84      * @param pnf
85      * @return
86      */
87     public Response registerPnf(PnfRegisterInfo pnf) {
88         // TODO Auto-generated method stub
89         return null;
90     }
91 }