Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Removed support for the non used A1 1.0 standard
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
controllers
/
PolicyInfo.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/controllers/PolicyInfo.java
b/policy-agent/src/main/java/org/oransc/policyagent/controllers/PolicyInfo.java
index
eb54ba9
..
1736c18
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/controllers/PolicyInfo.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/controllers/PolicyInfo.java
@@
-17,26
+17,41
@@
* limitations under the License.
* ========================LICENSE_END===================================
*/
* limitations under the License.
* ========================LICENSE_END===================================
*/
+
package org.oransc.policyagent.controllers;
package org.oransc.policyagent.controllers;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
import org.immutables.gson.Gson;
import org.immutables.gson.Gson;
-import org.immutables.value.Value;
-@Value.Immutable
@Gson.TypeAdapters
@Gson.TypeAdapters
-interface PolicyInfo {
+@ApiModel(value = "PolicyInfo")
+public class PolicyInfo {
+
+ @ApiModelProperty(value = "identity of the policy")
+ public String id;
+
+ @ApiModelProperty(value = "name of the policy type")
+ public String type;
- public String id();
+ @ApiModelProperty(value = "identity the target NearRT RIC")
+ public String ric;
- public String type();
+ @ApiModelProperty(value = "the configuration of the policy")
+ public Object json;
- public String ric();
+ @ApiModelProperty(value = "the name of the service owning the policy")
+ public String service;
- public String json();
+ @ApiModelProperty(value = "timestamp, last modification time")
+ public String lastModified;
- public String service();
+ PolicyInfo() {
+ }
- public String lastModified();
+ public boolean validate() {
+ return id != null && type != null && ric != null && json != null && service != null && lastModified != null;
+ }
}
}