aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorEddy Hautot <eh552t@intl.att.com>2017-09-14 14:26:34 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-14 14:26:34 +0000
commit30da9b030700cdb7fb71ccf684ccdc1726b4713f (patch)
tree1717025fd96974bb1cfe33adb1fc4c59734c2306 /src/main/java/org
parentf82f58d02c965bf918adfcbccfb77e1640954f74 (diff)
parent729ad06baa65151578399f13173cc5de35e1be8c (diff)
Merge "Some rework around DAO classes"
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/onap/clamp/clds/dao/CldsDao.java4
-rw-r--r--src/main/java/org/onap/clamp/clds/service/CldsService.java1
2 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/org/onap/clamp/clds/dao/CldsDao.java b/src/main/java/org/onap/clamp/clds/dao/CldsDao.java
index 3cc6a325..b6497834 100644
--- a/src/main/java/org/onap/clamp/clds/dao/CldsDao.java
+++ b/src/main/java/org/onap/clamp/clds/dao/CldsDao.java
@@ -407,9 +407,8 @@ public class CldsDao {
*
* @param template
* @param userid
- * @return
*/
- public CldsTemplate setTemplate(CldsTemplate template, String userid) {
+ public void setTemplate(CldsTemplate template, String userid) {
SqlParameterSource in = new MapSqlParameterSource().addValue("v_template_name", template.getName())
.addValue("v_user_id", userid).addValue("v_template_bpmn_text", template.getBpmnText())
.addValue("v_template_image_text", template.getImageText())
@@ -425,7 +424,6 @@ public class CldsDao {
template.setPropId((String) (out.get("v_template_doc_id")));
template.setPropUserid((String) out.get("v_template_doc_user_id"));
template.setPropText((String) out.get("v_template_doc_text"));
- return template;
}
/**
diff --git a/src/main/java/org/onap/clamp/clds/service/CldsService.java b/src/main/java/org/onap/clamp/clds/service/CldsService.java
index 920bce18..0d62be55 100644
--- a/src/main/java/org/onap/clamp/clds/service/CldsService.java
+++ b/src/main/java/org/onap/clamp/clds/service/CldsService.java
@@ -402,7 +402,6 @@ public class CldsService extends SecureServiceBase {
}
}
cldsModel.save(cldsDao, getUserId());
- cldsModel.save(cldsDao, getUserId());
// audit log
LoggingUtils.setTimeContext(startTime, new Date());
LoggingUtils.setResponseContext("0", "Put model success", this.getClass().getName());