Added Junits for Policy PAP-REST
[policy/engine.git] / ONAP-REST / src / main / java / org / onap / policy / rest / jpa / DecisionSettings.java
index 164cc3c..ae36202 100644 (file)
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP-REST
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2018 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.
@@ -110,6 +110,7 @@ public class DecisionSettings implements Serializable {
        }
        
        public DecisionSettings() {
+               //An empty constructor
        }
        
        public DecisionSettings(String domain) {
@@ -126,13 +127,6 @@ public class DecisionSettings implements Serializable {
                
        }
        
-       public String getDecisionSettings(){
-               return this.xacmlId;
-       }
-       
-       public String setDecisionSettings(){
-               return this.xacmlId;
-       }
        @PrePersist
        public void     prePersist() {
                Date date = new Date();
@@ -144,7 +138,7 @@ public class DecisionSettings implements Serializable {
        public void preUpdate() {
                this.modifiedDate = new Date();
                try {
-                       this.userModifiedBy = XacmlAdminAuthorization.getUserId();;
+                       this.userModifiedBy = XacmlAdminAuthorization.getUserId();
                } catch (Exception e) {
                        PolicyLogger.error(MessageCodes.EXCEPTION_ERROR, e, "DecisionSettings", "Exception caused While adding Modified by Role");
                }
@@ -186,11 +180,6 @@ public class DecisionSettings implements Serializable {
        public String getXacmlId() {
                return this.xacmlId;
        }
-       
-/*     @Transient
-       public Identifier getXacmlIdentifier() {
-               return new IdentifierImpl(this.xacmlId);
-       }*/
 
        public void setXacmlId(String xacmlId) {
                this.xacmlId = xacmlId;