Simplify esr-server project level.
[aai/esr-server.git] / esr-mgr / src / main / java / org / onap / aai / esr / wrapper / VnfmManagerWrapper.java
1 /**
2  * Copyright 2017 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 java.util.ArrayList;
19
20 import javax.ws.rs.core.Response;
21
22 import org.onap.aai.esr.entity.rest.RegisterResponse;
23 import org.onap.aai.esr.entity.rest.VnfmRestData;
24 import org.slf4j.Logger;
25 import org.slf4j.LoggerFactory;
26
27 public class VnfmManagerWrapper {
28   private static VnfmManagerWrapper vnfmManagerWrapper;
29   private static final Logger LOG = LoggerFactory.getLogger(VnfmManagerWrapper.class);
30
31   /**
32    * get VnfmManagerWrapper instance.
33    * @return vnfm manager wrapper instance
34    */
35   public static VnfmManagerWrapper getInstance() {
36     if (vnfmManagerWrapper == null) {
37       vnfmManagerWrapper = new VnfmManagerWrapper();
38     }
39     return vnfmManagerWrapper;
40   }
41
42   public Response registerVnfm(VnfmRestData vnfm) {
43     //TODO
44     RegisterResponse result = null;
45     return Response.ok(result).build();
46   }
47   
48   public Response updateVnfm(VnfmRestData vnfm, String vnfmId) {
49     //TODO
50     return Response.ok().build();
51   }
52   
53   public Response queryVnfmList() {
54     ArrayList<VnfmRestData> vnfmList = new ArrayList<VnfmRestData>();
55     //TODO
56     return Response.ok(vnfmList).build();
57   }
58   
59   public Response queryVnfmById(String vnfmId) {
60     VnfmRestData vnfm = new VnfmRestData();
61     //TODO
62     return Response.ok(vnfm).build();
63   }
64   
65   public Response delVnfm(String vnfmId) {
66     //TODO
67     return Response.noContent().build();
68   }
69 }