From 81d6090fdc1ad05afc785368e1a4029858265884 Mon Sep 17 00:00:00 2001 From: lizi00164331 Date: Mon, 11 Sep 2017 17:26:11 +0800 Subject: Adjust the entity name Adjust the entity name of esr-server which used in esr-server rest API. Change-Id: I1b748b66710f58f95be5a9dce9800cdfefa08109 Issue-ID: AAI-288 Signed-off-by: lizi00164331 --- .../org/onap/aai/esr/entity/rest/BaseRestData.java | 122 ------------------- .../onap/aai/esr/entity/rest/EmsRegisterInfo.java | 91 ++++++++++++++ .../org/onap/aai/esr/entity/rest/EmsRestData.java | 91 -------------- .../esr/entity/rest/ThirdPartySdncRestData.java | 134 --------------------- .../entity/rest/ThirdpartySdncRegisterInfo.java | 134 +++++++++++++++++++++ .../onap/aai/esr/entity/rest/VimRegisterInfo.java | 110 +++++++++++++++++ .../org/onap/aai/esr/entity/rest/VimRestData.java | 110 ----------------- .../onap/aai/esr/entity/rest/VnfmRegisterInfo.java | 120 ++++++++++++++++++ .../org/onap/aai/esr/entity/rest/VnfmRestData.java | 120 ------------------ .../java/org/onap/aai/esr/resource/EmsManager.java | 8 +- .../aai/esr/resource/ThirdpatySdncManager.java | 6 +- .../java/org/onap/aai/esr/resource/VimManager.java | 6 +- .../org/onap/aai/esr/resource/VnfmManager.java | 6 +- .../onap/aai/esr/wrapper/EmsManagerWrapper.java | 10 +- .../onap/aai/esr/wrapper/ThirdpatySdncWrapper.java | 10 +- .../onap/aai/esr/wrapper/VimManagerWrapper.java | 10 +- .../onap/aai/esr/wrapper/VnfmManagerWrapper.java | 10 +- 17 files changed, 488 insertions(+), 610 deletions(-) delete mode 100644 esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/BaseRestData.java create mode 100644 esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/EmsRegisterInfo.java delete mode 100644 esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/EmsRestData.java delete mode 100644 esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/ThirdPartySdncRestData.java create mode 100644 esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/ThirdpartySdncRegisterInfo.java create mode 100644 esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VimRegisterInfo.java delete mode 100644 esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VimRestData.java create mode 100644 esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VnfmRegisterInfo.java delete mode 100644 esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VnfmRestData.java (limited to 'esr-mgr/src/main') 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/EmsRegisterInfo.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/EmsRegisterInfo.java new file mode 100644 index 0000000..5f9c2b0 --- /dev/null +++ b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/EmsRegisterInfo.java @@ -0,0 +1,91 @@ +/** + * 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 EmsRegisterInfo { + + private String emsId; + + private String name; + + private String vendor; + + private String version; + + private FtpAddr resourceAddr; + + private FtpAddr performanceAddr; + + private AlarmAddr alarmAddr; + + public String getEmsId() { + return emsId; + } + + public void setEmsId(String emsId) { + this.emsId = emsId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + 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 FtpAddr getResourceAddr() { + return resourceAddr; + } + + public void setResourceAddr(FtpAddr resourceAddr) { + this.resourceAddr = resourceAddr; + } + + public FtpAddr getPerformanceAddr() { + return performanceAddr; + } + + public void setPerformanceAddr(FtpAddr performanceAddr) { + this.performanceAddr = performanceAddr; + } + + public AlarmAddr getAlarmAddr() { + return alarmAddr; + } + + public void setAlarmAddr(AlarmAddr alarmAddr) { + this.alarmAddr = alarmAddr; + } + +} 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/EmsRestData.java deleted file mode 100644 index 205fc84..0000000 --- a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/EmsRestData.java +++ /dev/null @@ -1,91 +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 EmsRestData extends BaseRestData{ - - private String emsId; - - private String name; - - private String vendor; - - private String version; - - private FtpAddr resourceAddr; - - private FtpAddr performanceAddr; - - private AlarmAddr alarmAddr; - - public String getEmsId() { - return emsId; - } - - public void setEmsId(String emsId) { - this.emsId = emsId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - 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 FtpAddr getResourceAddr() { - return resourceAddr; - } - - public void setResourceAddr(FtpAddr resourceAddr) { - this.resourceAddr = resourceAddr; - } - - public FtpAddr getPerformanceAddr() { - return performanceAddr; - } - - public void setPerformanceAddr(FtpAddr performanceAddr) { - this.performanceAddr = performanceAddr; - } - - public AlarmAddr getAlarmAddr() { - return alarmAddr; - } - - public void setAlarmAddr(AlarmAddr alarmAddr) { - this.alarmAddr = alarmAddr; - } - -} 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/ThirdPartySdncRestData.java deleted file mode 100644 index 685e56d..0000000 --- a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/ThirdPartySdncRestData.java +++ /dev/null @@ -1,134 +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 ThirdPartySdncRestData { - - private String thirdpartySdncId; - - private String name; - - private String vendor; - - private String version; - - private String type; - - private String location; - - private String url; - - private String userName; - - private String password; - - private String productName; - - private String protocol; - - - 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 getProductName() { - return productName; - } - - public void setProductName(String productName) { - this.productName = productName; - } - - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } - - public ThirdPartySdncRestData() { - - } - - public String getThirdpartySdncId() { - return thirdpartySdncId; - } - - public void setThirdpartySdncId(String thirdpartySdncId) { - this.thirdpartySdncId = thirdpartySdncId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - 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 getLocation() { - return location; - } - - public void setLocation(String location) { - this.location = location; - } -} diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/ThirdpartySdncRegisterInfo.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/ThirdpartySdncRegisterInfo.java new file mode 100644 index 0000000..667f0cf --- /dev/null +++ b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/ThirdpartySdncRegisterInfo.java @@ -0,0 +1,134 @@ +/** + * 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 ThirdpartySdncRegisterInfo { + + private String thirdpartySdncId; + + private String name; + + private String vendor; + + private String version; + + private String type; + + private String location; + + private String url; + + private String userName; + + private String password; + + private String productName; + + private String protocol; + + + 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 getProductName() { + return productName; + } + + public void setProductName(String productName) { + this.productName = productName; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public ThirdpartySdncRegisterInfo() { + + } + + public String getThirdpartySdncId() { + return thirdpartySdncId; + } + + public void setThirdpartySdncId(String thirdpartySdncId) { + this.thirdpartySdncId = thirdpartySdncId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + 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 getLocation() { + return location; + } + + public void setLocation(String location) { + this.location = location; + } +} diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VimRegisterInfo.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VimRegisterInfo.java new file mode 100644 index 0000000..409282a --- /dev/null +++ b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VimRegisterInfo.java @@ -0,0 +1,110 @@ +/** + * 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 VimRegisterInfo { + + private String cloudOwner; + + private String cloudRegionId; + + private String cloudType; + + private String cloudRegionVersion; + + private String ownerDefinedType; + + private String cloudZone; + + private String complexName; + + private String cloudExtraInfo; + + private AuthInfoItem authInfoItem; + + public String getCloudOwner() { + return cloudOwner; + } + + public void setCloudOwner(String cloudOwner) { + this.cloudOwner = cloudOwner; + } + + public String getCloudRegionId() { + return cloudRegionId; + } + + public void setCloudRegionId(String cloudRegionId) { + this.cloudRegionId = cloudRegionId; + } + + public String getCloudType() { + return cloudType; + } + + public void setCloudType(String cloudType) { + this.cloudType = cloudType; + } + + public String getCloudRegionVersion() { + return cloudRegionVersion; + } + + public void setCloudRegionVersion(String cloudRegionVersion) { + this.cloudRegionVersion = cloudRegionVersion; + } + + public String getOwnerDefinedType() { + return ownerDefinedType; + } + + public void setOwnerDefinedType(String ownerDefinedType) { + this.ownerDefinedType = ownerDefinedType; + } + + public String getCloudZone() { + return cloudZone; + } + + public void setCloudZone(String cloudZone) { + this.cloudZone = cloudZone; + } + + public String getComplexName() { + return complexName; + } + + public void setComplexName(String complexName) { + this.complexName = complexName; + } + + public String getCloudExtraInfo() { + return cloudExtraInfo; + } + + public void setCloudExtraInfo(String cloudExtraInfo) { + this.cloudExtraInfo = cloudExtraInfo; + } + + public AuthInfoItem getAuthInfoItem() { + return authInfoItem; + } + + public void setAuthInfoItem(AuthInfoItem authInfoItem) { + this.authInfoItem = authInfoItem; + } + +} 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/VimRestData.java deleted file mode 100644 index 7f07f87..0000000 --- a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VimRestData.java +++ /dev/null @@ -1,110 +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 VimRestData extends BaseRestData { - - private String cloudOwner; - - private String cloudRegionId; - - private String cloudType; - - private String cloudRegionVersion; - - private String ownerDefinedType; - - private String cloudZone; - - private String complexName; - - private String cloudExtraInfo; - - private AuthInfoItem authInfoItem; - - public String getCloudOwner() { - return cloudOwner; - } - - public void setCloudOwner(String cloudOwner) { - this.cloudOwner = cloudOwner; - } - - public String getCloudRegionId() { - return cloudRegionId; - } - - public void setCloudRegionId(String cloudRegionId) { - this.cloudRegionId = cloudRegionId; - } - - public String getCloudType() { - return cloudType; - } - - public void setCloudType(String cloudType) { - this.cloudType = cloudType; - } - - public String getCloudRegionVersion() { - return cloudRegionVersion; - } - - public void setCloudRegionVersion(String cloudRegionVersion) { - this.cloudRegionVersion = cloudRegionVersion; - } - - public String getOwnerDefinedType() { - return ownerDefinedType; - } - - public void setOwnerDefinedType(String ownerDefinedType) { - this.ownerDefinedType = ownerDefinedType; - } - - public String getCloudZone() { - return cloudZone; - } - - public void setCloudZone(String cloudZone) { - this.cloudZone = cloudZone; - } - - public String getComplexName() { - return complexName; - } - - public void setComplexName(String complexName) { - this.complexName = complexName; - } - - public String getCloudExtraInfo() { - return cloudExtraInfo; - } - - public void setCloudExtraInfo(String cloudExtraInfo) { - this.cloudExtraInfo = cloudExtraInfo; - } - - public AuthInfoItem getAuthInfoItem() { - return authInfoItem; - } - - public void setAuthInfoItem(AuthInfoItem authInfoItem) { - this.authInfoItem = authInfoItem; - } - -} diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VnfmRegisterInfo.java b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VnfmRegisterInfo.java new file mode 100644 index 0000000..b3f6737 --- /dev/null +++ b/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VnfmRegisterInfo.java @@ -0,0 +1,120 @@ +/** + * 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 VnfmRegisterInfo{ + + private String vnfmId; + + private String name; + + private String type; + + private String vimId; + + private String vendor; + + private String version; + + private String certificateUrl; + + private String url; + + private String userName; + + private String password; + + public String getVnfmId() { + return vnfmId; + } + + public void setVnfmId(String vnfmId) { + this.vnfmId = vnfmId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getVimId() { + return vimId; + } + + public void setVimId(String vimId) { + this.vimId = vimId; + } + + 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 getCertificateUrl() { + return certificateUrl; + } + + public void setCertificateUrl(String certificateUrl) { + this.certificateUrl = certificateUrl; + } + + 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; + } + +} 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/VnfmRestData.java deleted file mode 100644 index edefe54..0000000 --- a/esr-mgr/src/main/java/org/onap/aai/esr/entity/rest/VnfmRestData.java +++ /dev/null @@ -1,120 +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 VnfmRestData{ - - private String vnfmId; - - private String name; - - private String type; - - private String vimId; - - private String vendor; - - private String version; - - private String certificateUrl; - - private String url; - - private String userName; - - private String password; - - public String getVnfmId() { - return vnfmId; - } - - public void setVnfmId(String vnfmId) { - this.vnfmId = vnfmId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public String getVimId() { - return vimId; - } - - public void setVimId(String vimId) { - this.vimId = vimId; - } - - 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 getCertificateUrl() { - return certificateUrl; - } - - public void setCertificateUrl(String certificateUrl) { - this.certificateUrl = certificateUrl; - } - - 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; - } - -} 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 emsList = new ArrayList(); + ArrayList emsList = new ArrayList(); 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 thirdpartySdncList = new ArrayList(); + ArrayList thirdpartySdncList = new ArrayList(); 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 vimList = new ArrayList(); + ArrayList vimList = new ArrayList(); 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 vnfmList = new ArrayList(); + ArrayList vnfmList = new ArrayList(); //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(); } -- cgit 1.2.3-korg