2 * Copyright 2018 ZTE Corporation.
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.
16 package org.onap.aai.esr.wrapper;
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;
24 public class PnfManagerWrapper {
25 private static PnfManagerWrapper pnfManagerWrapper;
26 private static final Logger LOG = LoggerFactory.getLogger(PnfManagerWrapper.class);
28 // private static PnfManagerUtil pnfManagerUtil = new PnfManagerUtil();
29 private static ExternalSystemProxy externalSystemProxy = new ExternalSystemProxy();
32 * get PnfManagerWrapper instance.
34 * @return pnf manager wrapper instance
36 public static PnfManagerWrapper getInstance() {
37 if (pnfManagerWrapper == null) {
38 pnfManagerWrapper = new PnfManagerWrapper(externalSystemProxy);
40 return pnfManagerWrapper;
43 public PnfManagerWrapper(ExternalSystemProxy externalSystemProxy){
44 PnfManagerWrapper.externalSystemProxy = externalSystemProxy;
50 public Response queryPnfList() {
51 // TODO Auto-generated method stub
59 public Response queryPnfById(String pnfId) {
60 // TODO Auto-generated method stub
68 public Response delPnf(String pnfId) {
69 // TODO Auto-generated method stub
78 public Response updatePnf(PnfRegisterInfo pnf, String pnfId) {
79 // TODO Auto-generated method stub
87 public Response registerPnf(PnfRegisterInfo pnf) {
88 // TODO Auto-generated method stub