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.RegisterResponse;
23 import org.onap.aai.esr.entity.rest.ThirdPartySdncRestData;
24 import org.slf4j.Logger;
25 import org.slf4j.LoggerFactory;
27 public class ThirdpatySdncWrapper {
29 private static ThirdpatySdncWrapper thirdpatySdncWrapper;
30 private static final Logger LOG = LoggerFactory.getLogger(ThirdpatySdncWrapper.class);
33 * get ThirdpatySdncWrapper instance.
34 * @return ThirdpatySdnc manager wrapper instance
36 public static ThirdpatySdncWrapper getInstance() {
37 if (thirdpatySdncWrapper == null) {
38 thirdpatySdncWrapper = new ThirdpatySdncWrapper();
40 return thirdpatySdncWrapper;
43 public Response registerThirdpartySdnc(ThirdPartySdncRestData thirdpartySdnc) {
45 RegisterResponse result = null;
46 return Response.ok(result).build();
49 public Response updateThirdpartySdnc(ThirdPartySdncRestData thirdpartySdnc) {
51 return Response.ok().build();
54 public Response queryThirdpartySdncList() {
56 ArrayList<ThirdPartySdncRestData> thirdpartySdncList = new ArrayList<ThirdPartySdncRestData>();
57 return Response.ok(thirdpartySdncList).build();
60 public Response queryThirdpartySdncById(String thirdpartySdncId) {
61 ThirdPartySdncRestData thirdpartySdnc = new ThirdPartySdncRestData();
63 return Response.ok(thirdpartySdnc).build();
66 public Response delThirdpartySdnc(String thirdpartySdncId) {
68 return Response.noContent().build();