Code Review
/
policy
/
engine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Policy 1707 commit to LF
[policy/engine.git]
/
ECOMP-PDP-REST
/
src
/
main
/
java
/
org
/
openecomp
/
policy
/
pdp
/
rest
/
notifications
/
Updated.java
diff --git
a/ECOMP-PDP-REST/src/main/java/org/openecomp/policy/pdp/rest/notifications/Updated.java
b/ECOMP-PDP-REST/src/main/java/org/openecomp/policy/pdp/rest/notifications/Updated.java
index
39236ba
..
f0d9aa3
100644
(file)
--- a/
ECOMP-PDP-REST/src/main/java/org/openecomp/policy/pdp/rest/notifications/Updated.java
+++ b/
ECOMP-PDP-REST/src/main/java/org/openecomp/policy/pdp/rest/notifications/Updated.java
@@
-22,17
+22,21
@@
package org.openecomp.policy.pdp.rest.notifications;
import java.util.HashMap;
import java.util.HashMap;
+import org.openecomp.policy.api.LoadedPolicy;
+import org.openecomp.policy.api.UpdateType;
+
/**
* Updated is the POJO which consists of any new or Updated Policy information.
* It must hold the Policy Name, version Number, Matches.
*
/**
* Updated is the POJO which consists of any new or Updated Policy information.
* It must hold the Policy Name, version Number, Matches.
*
- * @version 0.
1
+ * @version 0.
2
*
*/
*
*/
-public class Updated {
+public class Updated
implements LoadedPolicy
{
private String policyName = null;
private String versionNo = null;
private HashMap<String,String> matches = null;
private String policyName = null;
private String versionNo = null;
private HashMap<String,String> matches = null;
+ private UpdateType updateType = null;
public String getPolicyName() {
return policyName;
public String getPolicyName() {
return policyName;
@@
-57,5
+61,14
@@
public class Updated {
public void setMatches(HashMap<String,String> matches) {
this.matches = matches;
}
public void setMatches(HashMap<String,String> matches) {
this.matches = matches;
}
+
+ @Override
+ public UpdateType getUpdateType() {
+ return this.updateType;
+ }
+
+ public void setUpdateType(UpdateType updateType){
+ this.updateType = updateType;
+ }
}
}