Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Dashboard using policy agent NBI"
[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
..
ea51cc5
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,31
+23,15
@@
import com.fasterxml.jackson.annotation.JsonProperty;
public class PolicyType {
public class PolicyType {
- @JsonProperty("policy_type_id")
- Integer policyTypeId;
-
@JsonProperty("name")
String name;
@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.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() {
}
public String getName() {
@@
-58,24
+42,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 "[
name:" + name + ", schema:" + s
chema + "]";
}
}
}
}