Merge "Dashboard using policy agent NBI"
[nonrtric.git] / dashboard / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / model / PolicyType.java
index d24667a..ea51cc5 100644 (file)
@@ -23,31 +23,15 @@ import com.fasterxml.jackson.annotation.JsonProperty;
 
 public class PolicyType {
 
-    @JsonProperty("policy_type_id")
-       Integer policyTypeId;
-
        @JsonProperty("name")
        String name;
 
-       @JsonProperty("description")
-       String description;
-
-       @JsonProperty("create_schema")
-       String createSchema;
+       @JsonProperty("schema")
+       String schema;
 
-       public PolicyType(Integer policyId, String name, String description, String createSchema) {
-               this.policyTypeId = policyId;
+       public PolicyType(String name, String schema) {
                this.name = name;
-               this.description = description;
-               this.createSchema = createSchema;
-       }
-
-       public Integer getPolicyTypeId() {
-               return policyTypeId;
-       }
-
-       public void setPolicyTypeId(Integer policyTypeId) {
-               this.policyTypeId = policyTypeId;
+               this.schema = schema;
        }
 
        public String getName() {
@@ -58,24 +42,16 @@ public class PolicyType {
                this.name = name;
        }
 
-       public String getDescription() {
-               return description;
-       }
-
-       public void setDescription(String description) {
-               this.description = description;
-       }
-
-       public String getCreateSchema() {
-               return createSchema;
+       public String getSchema() {
+               return schema;
        }
 
-       public void setCreateSchema(String createSchema) {
-               this.createSchema = createSchema;
+       public void setSchema(String schema) {
+               this.schema = schema;
        }
 
        @Override
        public String toString() {
-               return "[policy_type_id:" + policyTypeId +  ", name:" + name + ", description:" + description + ", create_schema:" + createSchema + "]";
+               return "[name:" + name + ", schema:" + schema + "]";
        }
 }