diff options
Diffstat (limited to 'esr-mgr/src/main')
13 files changed, 38 insertions, 160 deletions
diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/BaseRestData.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/BaseRestData.java deleted file mode 100644 index 540d009..0000000 --- a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/BaseRestData.java +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Copyright 2016-2017 ZTE Corporation. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.onap.aai.esr.entity.rest; - - -public class BaseRestData { - - private String instanceId; - - private String systemName; - - private String vendor; - - private String version; - - private String type; - - private String url; - - private String username; - - private String password; - - private String systemStatus; - - private String systemType; - - public String getInstanceId() { - return instanceId; - } - - public void setInstanceId(String instanceId) { - this.instanceId = instanceId; - } - - public String getSystemName() { - return systemName; - } - - public void setSystemName(String systemName) { - this.systemName = systemName; - } - - public String getVendor() { - return vendor; - } - - public void setVendor(String vendor) { - this.vendor = vendor; - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username; - } - - public String getPassword() { - return password; - } - - public void setPassword(String password) { - this.password = password; - } - - public String getSystemStatus() { - return systemStatus; - } - - public void setSystemStatus(String systemStatus) { - this.systemStatus = systemStatus; - } - - public String getSystemType() { - return systemType; - } - - public void setSystemType(String systemType) { - this.systemType = systemType; - } - - -} diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/EmsRestData.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/EmsRegisterInfo.java index 205fc84..5f9c2b0 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/EmsRestData.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/EmsRegisterInfo.java @@ -16,7 +16,7 @@ package org.onap.aai.esr.entity.rest; -public class EmsRestData extends BaseRestData{ +public class EmsRegisterInfo { private String emsId; diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/ThirdPartySdncRestData.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/ThirdpartySdncRegisterInfo.java index 685e56d..667f0cf 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/ThirdPartySdncRestData.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/ThirdpartySdncRegisterInfo.java @@ -15,7 +15,7 @@ */ package org.onap.aai.esr.entity.rest; -public class ThirdPartySdncRestData { +public class ThirdpartySdncRegisterInfo { private String thirdpartySdncId; @@ -80,7 +80,7 @@ public class ThirdPartySdncRestData { this.protocol = protocol; } - public ThirdPartySdncRestData() { + public ThirdpartySdncRegisterInfo() { } diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VimRestData.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VimRegisterInfo.java index 7f07f87..409282a 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VimRestData.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VimRegisterInfo.java @@ -15,7 +15,7 @@ */ package org.onap.aai.esr.entity.rest; -public class VimRestData extends BaseRestData { +public class VimRegisterInfo { private String cloudOwner; diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VnfmRestData.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VnfmRegisterInfo.java index edefe54..b3f6737 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VnfmRestData.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VnfmRegisterInfo.java @@ -15,7 +15,7 @@ */ package org.onap.aai.esr.entity.rest; -public class VnfmRestData{ +public class VnfmRegisterInfo{ private String vnfmId; diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/resource/EmsManager.java b/esr-mgr/src/main/java/org/onap/aai/esr/resource/EmsManager.java index 9ab9c44..6686924 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/resource/EmsManager.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/resource/EmsManager.java @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; import org.eclipse.jetty.http.HttpStatus; -import org.onap.aai.esr.entity.rest.EmsRestData; +import org.onap.aai.esr.entity.rest.EmsRegisterInfo; import org.onap.aai.esr.util.ExtsysUtil; import org.onap.aai.esr.util.RestResponseUtil; import org.onap.aai.esr.wrapper.EmsManagerWrapper; @@ -122,10 +122,10 @@ public class EmsManager { @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "internal server error", response = String.class)}) @Timed - public Response updateEms(@ApiParam(value = "ems", required = true) EmsRestData ems, + public Response updateEms(@ApiParam(value = "ems", required = true) EmsRegisterInfo ems, @ApiParam(value = "ems id", required = true) @PathParam("emsId") String emsId) { LOGGER.info("start update ems .id:" + emsId + " info:" + ExtsysUtil.objectToString(ems)); - return RestResponseUtil.getSuccessResponse(new EmsRestData()); + return RestResponseUtil.getSuccessResponse(new EmsRegisterInfo()); } /** @@ -144,7 +144,7 @@ public class EmsManager { @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "internal server error", response = String.class)}) @Timed - public Response registerEms(@ApiParam(value = "ems", required = true) EmsRestData ems) { + public Response registerEms(@ApiParam(value = "ems", required = true) EmsRegisterInfo ems) { LOGGER.info("start add ems" + " info:" + ExtsysUtil.objectToString(ems)); return EmsManagerWrapper.getInstance().registerEms(ems); } diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/resource/ThirdpatySdncManager.java b/esr-mgr/src/main/java/org/onap/aai/esr/resource/ThirdpatySdncManager.java index 1a3095c..4a72261 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/resource/ThirdpatySdncManager.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/resource/ThirdpatySdncManager.java @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; import org.eclipse.jetty.http.HttpStatus; -import org.onap.aai.esr.entity.rest.ThirdPartySdncRestData; +import org.onap.aai.esr.entity.rest.ThirdpartySdncRegisterInfo; import org.onap.aai.esr.util.ExtsysUtil; import org.onap.aai.esr.wrapper.ThirdpatySdncWrapper; import org.slf4j.Logger; @@ -121,7 +121,7 @@ public class ThirdpatySdncManager { @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "internal server error", response = String.class)}) @Timed - public Response updateThirdpartySdnc(@ApiParam(value = "thirdpartySdnc", required = true) ThirdPartySdncRestData thirdPartySdnc, + public Response updateThirdpartySdnc(@ApiParam(value = "thirdpartySdnc", required = true) ThirdpartySdncRegisterInfo thirdPartySdnc, @ApiParam(value = "sdnc id", required = true) @PathParam("thirdPartySdncId") String thirdPartySdncId) { LOGGER.info("start update sdnc .id:" + thirdPartySdncId + " info:" + ExtsysUtil.objectToString(thirdPartySdnc)); return ThirdpatySdncWrapper.getInstance().updateThirdpartySdnc(thirdPartySdnc); @@ -143,7 +143,7 @@ public class ThirdpatySdncManager { @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "internal server error", response = String.class)}) @Timed - public Response registerThirdpatySdnc(@ApiParam(value = "thirdPartySdnc", required = true) ThirdPartySdncRestData thirdPartySdnc) { + public Response registerThirdpatySdnc(@ApiParam(value = "thirdPartySdnc", required = true) ThirdpartySdncRegisterInfo thirdPartySdnc) { LOGGER.info("start register sdnc" + " info:" + ExtsysUtil.objectToString(thirdPartySdnc)); return ThirdpatySdncWrapper.getInstance().registerThirdpartySdnc(thirdPartySdnc); } diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/resource/VimManager.java b/esr-mgr/src/main/java/org/onap/aai/esr/resource/VimManager.java index 059a1ed..354e3af 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/resource/VimManager.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/resource/VimManager.java @@ -22,7 +22,7 @@ import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; import org.eclipse.jetty.http.HttpStatus; -import org.onap.aai.esr.entity.rest.VimRestData; +import org.onap.aai.esr.entity.rest.VimRegisterInfo; import org.onap.aai.esr.util.ExtsysUtil; import org.onap.aai.esr.wrapper.VimManagerWrapper; import org.slf4j.Logger; @@ -119,7 +119,7 @@ public class VimManager { @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "internal server error", response = String.class)}) @Timed - public Response updatevims(@ApiParam(value = "vim", required = true) VimRestData vim, + public Response updatevims(@ApiParam(value = "vim", required = true) VimRegisterInfo vim, @ApiParam(value = "vim id", required = true) @PathParam("vimId") String vimId) { LOGGER.info("start update vim .id:" + vimId + " info:" + ExtsysUtil.objectToString(vim)); return VimManagerWrapper.getInstance().updateVim(vim); @@ -141,7 +141,7 @@ public class VimManager { @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "internal server error", response = String.class)}) @Timed - public Response registerVims(@ApiParam(value = "vim", required = true) VimRestData vim) { + public Response registerVims(@ApiParam(value = "vim", required = true) VimRegisterInfo vim) { LOGGER.info("start add vim" + " info:" + ExtsysUtil.objectToString(vim)); return VimManagerWrapper.getInstance().registerVim(vim); } diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/resource/VnfmManager.java b/esr-mgr/src/main/java/org/onap/aai/esr/resource/VnfmManager.java index 690421e..670bfb2 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/resource/VnfmManager.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/resource/VnfmManager.java @@ -22,7 +22,7 @@ import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; import org.eclipse.jetty.http.HttpStatus; -import org.onap.aai.esr.entity.rest.VnfmRestData; +import org.onap.aai.esr.entity.rest.VnfmRegisterInfo; import org.onap.aai.esr.util.ExtsysUtil; import org.onap.aai.esr.wrapper.VnfmManagerWrapper; import org.slf4j.Logger; @@ -120,7 +120,7 @@ public class VnfmManager { @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "internal server error", response = String.class)}) @Timed - public Response updateVnfm(@ApiParam(value = "vnfm", required = true) VnfmRestData vnfm, + public Response updateVnfm(@ApiParam(value = "vnfm", required = true) VnfmRegisterInfo vnfm, @ApiParam(value = "vnfm id", required = true) @PathParam("vnfmId") String vnfmId) { LOGGER.info("start update vnfm .id:" + vnfmId + " info:" + ExtsysUtil.objectToString(vnfm)); return VnfmManagerWrapper.getInstance().updateVnfm(vnfm, vnfmId); @@ -142,7 +142,7 @@ public class VnfmManager { @ApiResponse(code = HttpStatus.INTERNAL_SERVER_ERROR_500, message = "internal server error", response = String.class)}) @Timed - public Response registerVnfm(@ApiParam(value = "vnfm", required = true) VnfmRestData vnfm) { + public Response registerVnfm(@ApiParam(value = "vnfm", required = true) VnfmRegisterInfo vnfm) { return VnfmManagerWrapper.getInstance().registerVnfm(vnfm); } } diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/EmsManagerWrapper.java b/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/EmsManagerWrapper.java index 491d9c9..15fa016 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/EmsManagerWrapper.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/EmsManagerWrapper.java @@ -19,7 +19,7 @@ import java.util.ArrayList; import javax.ws.rs.core.Response; -import org.onap.aai.esr.entity.rest.EmsRestData; +import org.onap.aai.esr.entity.rest.EmsRegisterInfo; import org.onap.aai.esr.entity.rest.RegisterResponse; //import org.slf4j.Logger; //import org.slf4j.LoggerFactory; @@ -39,25 +39,25 @@ public class EmsManagerWrapper { return emsManagerWrapper; } - public Response registerEms(EmsRestData ems) { + public Response registerEms(EmsRegisterInfo ems) { //TODO RegisterResponse result = null; return Response.ok(result).build(); } - public Response updateEms(EmsRestData ems) { + public Response updateEms(EmsRegisterInfo ems) { //TODO return Response.ok().build(); } public Response queryEmsList() { //TODO - ArrayList<EmsRestData> emsList = new ArrayList<EmsRestData>(); + ArrayList<EmsRegisterInfo> emsList = new ArrayList<EmsRegisterInfo>(); return Response.ok(emsList).build(); } public Response queryEmsById(String emsId) { - EmsRestData ems = new EmsRestData(); + EmsRegisterInfo ems = new EmsRegisterInfo(); //TODO return Response.ok(ems).build(); } diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java b/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java index bfbae7b..603fcc3 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import javax.ws.rs.core.Response; import org.onap.aai.esr.entity.rest.RegisterResponse; -import org.onap.aai.esr.entity.rest.ThirdPartySdncRestData; +import org.onap.aai.esr.entity.rest.ThirdpartySdncRegisterInfo; //import org.slf4j.Logger; //import org.slf4j.LoggerFactory; @@ -40,25 +40,25 @@ public class ThirdpatySdncWrapper { return thirdpatySdncWrapper; } - public Response registerThirdpartySdnc(ThirdPartySdncRestData thirdpartySdnc) { + public Response registerThirdpartySdnc(ThirdpartySdncRegisterInfo thirdpartySdnc) { //TODO RegisterResponse result = null; return Response.ok(result).build(); } - public Response updateThirdpartySdnc(ThirdPartySdncRestData thirdpartySdnc) { + public Response updateThirdpartySdnc(ThirdpartySdncRegisterInfo thirdpartySdnc) { //TODO return Response.ok().build(); } public Response queryThirdpartySdncList() { //TODO - ArrayList<ThirdPartySdncRestData> thirdpartySdncList = new ArrayList<ThirdPartySdncRestData>(); + ArrayList<ThirdpartySdncRegisterInfo> thirdpartySdncList = new ArrayList<ThirdpartySdncRegisterInfo>(); return Response.ok(thirdpartySdncList).build(); } public Response queryThirdpartySdncById(String thirdpartySdncId) { - ThirdPartySdncRestData thirdpartySdnc = new ThirdPartySdncRestData(); + ThirdpartySdncRegisterInfo thirdpartySdnc = new ThirdpartySdncRegisterInfo(); //TODO return Response.ok(thirdpartySdnc).build(); } diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/VimManagerWrapper.java b/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/VimManagerWrapper.java index 5d82822..b985c20 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/VimManagerWrapper.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/VimManagerWrapper.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import javax.ws.rs.core.Response; import org.onap.aai.esr.entity.rest.RegisterResponse; -import org.onap.aai.esr.entity.rest.VimRestData; +import org.onap.aai.esr.entity.rest.VimRegisterInfo; //import org.slf4j.Logger; //import org.slf4j.LoggerFactory; @@ -40,25 +40,25 @@ public class VimManagerWrapper { return vimManagerWrapper; } - public Response registerVim(VimRestData vim) { + public Response registerVim(VimRegisterInfo vim) { //TODO RegisterResponse result = null; return Response.ok(result).build(); } - public Response updateVim(VimRestData vim) { + public Response updateVim(VimRegisterInfo vim) { //TODO return Response.ok().build(); } public Response queryVimList() { //TODO - ArrayList<VimRestData> vimList = new ArrayList<VimRestData>(); + ArrayList<VimRegisterInfo> vimList = new ArrayList<VimRegisterInfo>(); return Response.ok(vimList).build(); } public Response queryVimById(String vimId) { - VimRestData vim = new VimRestData(); + VimRegisterInfo vim = new VimRegisterInfo(); //TODO return Response.ok(vim).build(); } diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/VnfmManagerWrapper.java b/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/VnfmManagerWrapper.java index 6868ca2..660a519 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/VnfmManagerWrapper.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/VnfmManagerWrapper.java @@ -20,7 +20,7 @@ import java.util.ArrayList; import javax.ws.rs.core.Response; import org.onap.aai.esr.entity.rest.RegisterResponse; -import org.onap.aai.esr.entity.rest.VnfmRestData; +import org.onap.aai.esr.entity.rest.VnfmRegisterInfo; //import org.slf4j.Logger; //import org.slf4j.LoggerFactory; @@ -39,25 +39,25 @@ public class VnfmManagerWrapper { return vnfmManagerWrapper; } - public Response registerVnfm(VnfmRestData vnfm) { + public Response registerVnfm(VnfmRegisterInfo vnfm) { //TODO RegisterResponse result = null; return Response.ok(result).build(); } - public Response updateVnfm(VnfmRestData vnfm, String vnfmId) { + public Response updateVnfm(VnfmRegisterInfo vnfm, String vnfmId) { //TODO return Response.ok().build(); } public Response queryVnfmList() { - ArrayList<VnfmRestData> vnfmList = new ArrayList<VnfmRestData>(); + ArrayList<VnfmRegisterInfo> vnfmList = new ArrayList<VnfmRegisterInfo>(); //TODO return Response.ok(vnfmList).build(); } public Response queryVnfmById(String vnfmId) { - VnfmRestData vnfm = new VnfmRestData(); + VnfmRegisterInfo vnfm = new VnfmRegisterInfo(); //TODO return Response.ok(vnfm).build(); } |