getAppRolesForUser() method up in UserRolesController
[portal.git] / portal-BE / src / main / java / org / onap / portal / domain / dto / DomainVo.java
index 6901aee..91ea87f 100644 (file)
@@ -54,7 +54,9 @@ import lombok.Getter;
 import lombok.NoArgsConstructor;
 import lombok.Setter;
 import org.onap.portal.domain.db.fn.FnUser;
+import org.onap.portal.utils.EcompPortalUtils;
 import org.onap.portalsdk.core.domain.FusionVo;
+import org.onap.portalsdk.core.logging.logic.EELFLoggerDelegate;
 
 @Getter
 @Setter
@@ -63,6 +65,7 @@ import org.onap.portalsdk.core.domain.FusionVo;
 @Inheritance(strategy = InheritanceType.SINGLE_TABLE)
 public class DomainVo extends FusionVo implements Serializable, Cloneable, Comparable {
 
+       private static final EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(DomainVo.class);
        private static final long serialVersionUID = 1L;
 
        protected Long id;
@@ -74,6 +77,10 @@ public class DomainVo extends FusionVo implements Serializable, Cloneable, Compa
        protected Serializable auditUserId;
        protected Set auditTrail = null;
 
+       public DomainVo(Long id) {
+              this.id = id;
+       }
+
        @Override
        public int compareTo(Object obj) {
               Long c1 = this.getId();
@@ -99,7 +106,7 @@ public class DomainVo extends FusionVo implements Serializable, Cloneable, Compa
                             newVo.setId(null);
                      }
               } catch (Exception var8) {
-                     var8.printStackTrace();
+                  logger.error("exception occured",var8);
               }
 
               return newVo;