diff options
author | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-09-14 16:08:55 +0200 |
---|---|---|
committer | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-09-14 16:08:55 +0200 |
commit | 729ad06baa65151578399f13173cc5de35e1be8c (patch) | |
tree | e9e33538bafd88f205f0aba2ea450443dfa07a72 /src/main | |
parent | 5a4f2a1c04d88be4fd30b3d2e285aad9b23cf796 (diff) |
Some rework around DAO classes
Remove the useless return parameter in setModel, remove the
runtimeService in cldsTemplateService
Change-Id: Ia6d82cc3167f2e82b0da9cdb14d93c64ccee19c4
Issue-ID: CLAMP-54
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
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()); |