2 * Copyright 2017 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 java.util.ArrayList;
20 import javax.ws.rs.core.Response;
22 import org.onap.aai.esr.entity.rest.EmsRestData;
23 import org.onap.aai.esr.entity.rest.RegisterResponse;
24 //import org.slf4j.Logger;
25 //import org.slf4j.LoggerFactory;
27 public class EmsManagerWrapper {
28 private static EmsManagerWrapper emsManagerWrapper;
29 // private static final Logger LOG = LoggerFactory.getLogger(EmsManagerWrapper.class);
32 * get VnfmManagerWrapper instance.
33 * @return ems manager wrapper instance
35 public static EmsManagerWrapper getInstance() {
36 if (emsManagerWrapper == null) {
37 emsManagerWrapper = new EmsManagerWrapper();
39 return emsManagerWrapper;
42 public Response registerEms(EmsRestData ems) {
44 RegisterResponse result = null;
45 return Response.ok(result).build();
48 public Response updateEms(EmsRestData ems) {
50 return Response.ok().build();
53 public Response queryEmsList() {
55 ArrayList<EmsRestData> emsList = new ArrayList<EmsRestData>();
56 return Response.ok(emsList).build();
59 public Response queryEmsById(String emsId) {
60 EmsRestData ems = new EmsRestData();
62 return Response.ok(ems).build();
65 public Response delEms(String emsId) {
67 return Response.noContent().build();