X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=dashboard%2Fwebapp-backend%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fric%2Fportal%2Fdashboard%2Fmodel%2FPolicyType.java;h=ea51cc5028d6e21ba76b17ac46b025515f2f35dd;hb=9de32bd6e23b01413d1319e668235568068b3699;hp=d24667aa8e386af955338880b7f25123707e507a;hpb=3b1e23945b9426ad7aaacfc3794e15286d82c816;p=nonrtric.git diff --git a/dashboard/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/PolicyType.java b/dashboard/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/PolicyType.java index d24667aa..ea51cc50 100644 --- a/dashboard/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/PolicyType.java +++ b/dashboard/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/model/PolicyType.java @@ -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 + "]"; } }