diff options
author | Eddy Hautot <eh552t@intl.att.com> | 2017-09-14 14:26:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-14 14:26:34 +0000 |
commit | 30da9b030700cdb7fb71ccf684ccdc1726b4713f (patch) | |
tree | 1717025fd96974bb1cfe33adb1fc4c59734c2306 /src/main | |
parent | f82f58d02c965bf918adfcbccfb77e1640954f74 (diff) | |
parent | 729ad06baa65151578399f13173cc5de35e1be8c (diff) |
Merge "Some rework around DAO classes"
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/clamp/clds/dao/CldsDao.java | 4 | ||||
-rw-r--r-- | src/main/java/org/onap/clamp/clds/service/CldsService.java | 1 |
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()); |