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-52, Policy-92, Policy-93] Policy Enhancements and bugfixes
[policy/engine.git]
/
ECOMP-PAP-REST
/
src
/
main
/
java
/
org
/
openecomp
/
policy
/
pap
/
xacml
/
rest
/
controller
/
ClosedLoopDictionaryController.java
diff --git
a/ECOMP-PAP-REST/src/main/java/org/openecomp/policy/pap/xacml/rest/controller/ClosedLoopDictionaryController.java
b/ECOMP-PAP-REST/src/main/java/org/openecomp/policy/pap/xacml/rest/controller/ClosedLoopDictionaryController.java
index
9aab267
..
f97d846
100644
(file)
--- a/
ECOMP-PAP-REST/src/main/java/org/openecomp/policy/pap/xacml/rest/controller/ClosedLoopDictionaryController.java
+++ b/
ECOMP-PAP-REST/src/main/java/org/openecomp/policy/pap/xacml/rest/controller/ClosedLoopDictionaryController.java
@@
-21,6
+21,7
@@
package org.openecomp.policy.pap.xacml.rest.controller;
import java.io.PrintWriter;
package org.openecomp.policy.pap.xacml.rest.controller;
import java.io.PrintWriter;
+import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
@@
-325,6
+326,7
@@
public class ClosedLoopDictionaryController{
}else{
vSCLAction.setUserCreatedBy(this.getUserInfo(userId));
vSCLAction.setUserModifiedBy(this.getUserInfo(userId));
}else{
vSCLAction.setUserCreatedBy(this.getUserInfo(userId));
vSCLAction.setUserModifiedBy(this.getUserInfo(userId));
+ vSCLAction.setModifiedDate(new Date());
commonClassDao.save(vSCLAction);
}
}else{
commonClassDao.save(vSCLAction);
}
}else{
@@
-453,6
+455,7
@@
public class ClosedLoopDictionaryController{
}else{
if(!isFakeUpdate) {
vNFType.setUserModifiedBy(this.getUserInfo(userId));
}else{
if(!isFakeUpdate) {
vNFType.setUserModifiedBy(this.getUserInfo(userId));
+ vNFType.setModifiedDate(new Date());
commonClassDao.update(vNFType);
}
}
commonClassDao.update(vNFType);
}
}
@@
-592,6
+595,7
@@
public class ClosedLoopDictionaryController{
}else{
if(!isFakeUpdate){
pEPOptions.setUserModifiedBy(this.getUserInfo(userId));
}else{
if(!isFakeUpdate){
pEPOptions.setUserModifiedBy(this.getUserInfo(userId));
+ pEPOptions.setModifiedDate(new Date());
commonClassDao.update(pEPOptions);
}
}
commonClassDao.update(pEPOptions);
}
}
@@
-712,6
+716,7
@@
public class ClosedLoopDictionaryController{
}else{
if(!isFakeUpdate){
serviceData.setUserModifiedBy(this.getUserInfo(userId));
}else{
if(!isFakeUpdate){
serviceData.setUserModifiedBy(this.getUserInfo(userId));
+ serviceData.setModifiedDate(new Date());
commonClassDao.update(serviceData);
}
}
commonClassDao.update(serviceData);
}
}
@@
-830,6
+835,7
@@
public class ClosedLoopDictionaryController{
}else{
if(!isFakeUpdate) {
siteData.setUserModifiedBy(this.getUserInfo(userId));
}else{
if(!isFakeUpdate) {
siteData.setUserModifiedBy(this.getUserInfo(userId));
+ siteData.setModifiedDate(new Date());
commonClassDao.update(siteData);
}
}
commonClassDao.update(siteData);
}
}
@@
-949,6
+955,7
@@
public class ClosedLoopDictionaryController{
}else{
if(!isFakeUpdate){
varbindDictionary.setUserModifiedBy(this.getUserInfo(userId));
}else{
if(!isFakeUpdate){
varbindDictionary.setUserModifiedBy(this.getUserInfo(userId));
+ varbindDictionary.setModifiedDate(new Date());
commonClassDao.update(varbindDictionary);
}
}
commonClassDao.update(varbindDictionary);
}
}