Updates of the policy agent NBI
[nonrtric.git] / dashboard / webapp-backend / src / main / java / org / oransc / ric / portal / dashboard / model / PolicyType.java
index d24667a..035428b 100644 (file)
@@ -23,59 +23,35 @@ import com.fasterxml.jackson.annotation.JsonProperty;
 
 public class PolicyType {
 
-    @JsonProperty("policy_type_id")
-       Integer policyTypeId;
+    @JsonProperty("name")
+    String name;
 
-       @JsonProperty("name")
-       String name;
+    @JsonProperty("schema")
+    Object schema;
 
-       @JsonProperty("description")
-       String description;
+    public PolicyType(String name, Object schema) {
+        this.name = name;
+        this.schema = schema;
+    }
 
-       @JsonProperty("create_schema")
-       String createSchema;
+    public String getName() {
+        return name;
+    }
 
-       public PolicyType(Integer policyId, String name, String description, String createSchema) {
-               this.policyTypeId = policyId;
-               this.name = name;
-               this.description = description;
-               this.createSchema = createSchema;
-       }
+    public void setName(String name) {
+        this.name = name;
+    }
 
-       public Integer getPolicyTypeId() {
-               return policyTypeId;
-       }
+    public Object getSchema() {
+        return schema;
+    }
 
-       public void setPolicyTypeId(Integer policyTypeId) {
-               this.policyTypeId = policyTypeId;
-       }
+    public void setSchema(Object schema) {
+        this.schema = schema;
+    }
 
-       public String getName() {
-               return name;
-       }
-
-       public void setName(String name) {
-               this.name = name;
-       }
-
-       public String getDescription() {
-               return description;
-       }
-
-       public void setDescription(String description) {
-               this.description = description;
-       }
-
-       public String getCreateSchema() {
-               return createSchema;
-       }
-
-       public void setCreateSchema(String createSchema) {
-               this.createSchema = createSchema;
-       }
-
-       @Override
-       public String toString() {
-               return "[policy_type_id:" + policyTypeId +  ", name:" + name + ", description:" + description + ", create_schema:" + createSchema + "]";
-       }
+    @Override
+    public String toString() {
+        return "[name:" + name + ", schema:" + schema.toString() + "]";
+    }
 }