From cfb69f44f841338e1f208225ec006388e986bd2c Mon Sep 17 00:00:00 2001 From: "Kotta, Shireesha (sk434m)" Date: Tue, 6 Mar 2018 09:44:53 -0500 Subject: Added Junits & AAF attributes Support Issue-ID: PORTAL-136 Includes JUNITS, AAF attributes support Change-Id: Id4cc9f64268017665d7245d0a10369c9b498ba2f Signed-off-by: Kotta, Shireesha (sk434m) --- .../java/org/onap/portalsdk/core/restful/domain/EcompRole.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompRole.java') diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompRole.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompRole.java index f0447142..a7b8fc05 100644 --- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompRole.java +++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/restful/domain/EcompRole.java @@ -46,14 +46,12 @@ import com.fasterxml.jackson.annotation.JsonInclude; * This bean holds the information for a role in the role and user management * REST API. */ -@JsonIgnoreProperties(ignoreUnknown = true) public class EcompRole implements Comparable { protected Long id; private String name; - @JsonInclude(JsonInclude.Include.NON_NULL) private Set roleFunctions; - + public Set getRoleFunctions() { return roleFunctions; } @@ -103,10 +101,11 @@ public class EcompRole implements Comparable { return true; } + + @Override public String toString() { - String s = "@EcompRole[id: " + id + "; name: " + name + "]"; - return s; + return "EcompRole [id=" + id + ", name=" + name + ", roleFunctions=" + roleFunctions + "]"; } @Override -- cgit 1.2.3-korg