From 6ccb805aca758411d85bf2d4b15b271459e637c3 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Fri, 5 Apr 2019 13:01:47 -0400 Subject: Add undeploy response to models-pap Also modified toString() methods on other response classes to invoke the super class' toString() so the error message is printed. Change-Id: I7147da8acd521ed30d40aa6cbf2d8fd43715179b Issue-ID: POLICY-1542 Signed-off-by: Jim Hahn --- .../pap/concepts/PdpGroupDeleteResponse.java | 2 +- .../pap/concepts/PdpGroupDeployResponse.java | 2 +- .../pap/concepts/PdpGroupStateChangeResponse.java | 2 +- .../pap/concepts/PolicyUndeployResponse.java | 35 ++++++++++++++++++++++ 4 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 models-pap/src/main/java/org/onap/policy/models/pap/concepts/PolicyUndeployResponse.java (limited to 'models-pap/src/main/java/org') diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeleteResponse.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeleteResponse.java index 46da8d363..e1094f48a 100644 --- a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeleteResponse.java +++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeleteResponse.java @@ -29,7 +29,7 @@ import lombok.ToString; */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class PdpGroupDeleteResponse extends SimpleResponse { } diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponse.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponse.java index b81d02b87..2d7dd2ec3 100644 --- a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponse.java +++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupDeployResponse.java @@ -29,7 +29,7 @@ import lombok.ToString; */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class PdpGroupDeployResponse extends SimpleResponse { } diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupStateChangeResponse.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupStateChangeResponse.java index 1c013012a..292848346 100644 --- a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupStateChangeResponse.java +++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PdpGroupStateChangeResponse.java @@ -29,7 +29,7 @@ import lombok.ToString; */ @Getter @Setter -@ToString +@ToString(callSuper = true) public class PdpGroupStateChangeResponse extends SimpleResponse { } diff --git a/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PolicyUndeployResponse.java b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PolicyUndeployResponse.java new file mode 100644 index 000000000..a41913032 --- /dev/null +++ b/models-pap/src/main/java/org/onap/policy/models/pap/concepts/PolicyUndeployResponse.java @@ -0,0 +1,35 @@ +/* + * ============LICENSE_START======================================================= + * ONAP Policy Models + * ================================================================================ + * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * 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. + * ============LICENSE_END========================================================= + */ + +package org.onap.policy.models.pap.concepts; + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +/** + * Response to a Policy UNDEPLOY REST API. + */ +@Getter +@Setter +@ToString(callSuper = true) +public class PolicyUndeployResponse extends SimpleResponse { + +} -- cgit 1.2.3-korg