Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Updated displaying of policy types
[nonrtric.git]
/
dashboard
/
webapp-backend
/
src
/
main
/
java
/
org
/
oransc
/
ric
/
portal
/
dashboard
/
model
/
PolicyType.java
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
d24667a
..
efe4010
100644
(file)
--- 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,23
+23,19
@@
import com.fasterxml.jackson.annotation.JsonProperty;
public class PolicyType {
public class PolicyType {
- @JsonProperty("policy_type_id")
+
@JsonProperty("policy_type_id")
Integer policyTypeId;
@JsonProperty("name")
String name;
Integer policyTypeId;
@JsonProperty("name")
String name;
- @JsonProperty("
description
")
- String
description
;
+ @JsonProperty("
schema
")
+ String
schema
;
- @JsonProperty("create_schema")
- String createSchema;
-
- public PolicyType(Integer policyId, String name, String description, String createSchema) {
+ public PolicyType(Integer policyId, String name, String schema) {
this.policyTypeId = policyId;
this.name = name;
this.policyTypeId = policyId;
this.name = name;
- this.description = description;
- this.createSchema = createSchema;
+ this.schema = schema;
}
public Integer getPolicyTypeId() {
}
public Integer getPolicyTypeId() {
@@
-58,24
+54,16
@@
public class PolicyType {
this.name = name;
}
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 set
CreateSchema(String createS
chema) {
- this.
createSchema = createS
chema;
+ public void set
Schema(String s
chema) {
+ this.
schema = s
chema;
}
@Override
public String toString() {
}
@Override
public String toString() {
- return "[policy_type_id:" + policyTypeId +
", name:" + name + ", description:" + description + ", create_schema:" + createS
chema + "]";
+ return "[policy_type_id:" + policyTypeId +
", name:" + name + ", schema:" + s
chema + "]";
}
}
}
}