X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=dashboard%2Fwebapp-backend%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fric%2Fportal%2Fdashboard%2Fmodel%2FPolicyType.java;h=035428b711c0cec0a95d11c896f272407a3dbb81;hb=b40e1b476b25dfdd5ad3ba235ab085d6d4087be3;hp=d24667aa8e386af955338880b7f25123707e507a;hpb=b96fd22c2a19b61bbd9d4c71c4f4a8fbb3741df1;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..035428b7 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,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() + "]"; + } }