diff options
author | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-10-30 18:39:45 +0100 |
---|---|---|
committer | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-10-30 18:55:58 +0100 |
commit | 9472232d02bc468bc2c66b622056dfd4fb90c78b (patch) | |
tree | 33410512e6867b4becd1ccb9e9092dd66929921c /src/main | |
parent | da64454193928db08dc5f419cfa7766adcf49a2c (diff) |
Remove useless methods
Thos methods were not used in code or by users.
Change-Id: I2134b6bcd198d63b3dd6326fe7e8f83ecfcbd589
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/service/CldsTemplateService.java | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/main/java/org/onap/clamp/clds/service/CldsTemplateService.java b/src/main/java/org/onap/clamp/clds/service/CldsTemplateService.java index 73b593c37..c84f5efb0 100644 --- a/src/main/java/org/onap/clamp/clds/service/CldsTemplateService.java +++ b/src/main/java/org/onap/clamp/clds/service/CldsTemplateService.java @@ -107,33 +107,6 @@ public class CldsTemplateService extends SecureServiceBase { } /** - * REST service that saves BPMN for a CLDS template by name in the database. - * This is subset of the json putModel. This is only expected to be used for - * testing purposes, not by the UI. - * - * @param templateName - * @param bpmnText - */ - @PUT - @Path("/template/bpmn/{templateName}") - @Consumes(MediaType.TEXT_XML) - public String putBpmnTemplateXml(@PathParam("templateName") String templateName, String bpmnText) { - Date startTime = new Date(); - LoggingUtils.setRequestContext("CldsTemplateService: PUT template bpmn", getPrincipalName()); - isAuthorized(permissionUpdateTemplate); - logger.info("PUT bpmnText for templateName=" + templateName); - logger.info("PUT bpmnText=" + bpmnText); - CldsTemplate cldsTemplate = CldsTemplate.retrieve(cldsDao, templateName, true); - cldsTemplate.setBpmnText(bpmnText); - cldsTemplate.save(cldsDao, userid); - // audit log - LoggingUtils.setTimeContext(startTime, new Date()); - LoggingUtils.setResponseContext("0", "Put template bpmn success", this.getClass().getName()); - auditLogger.info("PUT template bpm completed"); - return "wrote bpmnText for templateName=" + templateName; - } - - /** * REST service that retrieves image for a CLDS template name from the * database. This is subset of the json getModel. This is only expected to * be used for testing purposes, not by the UI. @@ -158,33 +131,6 @@ public class CldsTemplateService extends SecureServiceBase { } /** - * REST service that saves image for a CLDS template by name in the - * database. This is subset of the json putModel. This is only expected to - * be used for testing purposes, not by the UI. - * - * @param templateName - * @param imageText - */ - @PUT - @Path("/template/image/{templateName}") - @Consumes(MediaType.TEXT_XML) - public String putImageXml(@PathParam("templateName") String templateName, String imageText) { - Date startTime = new Date(); - LoggingUtils.setRequestContext("CldsTemplateService: PUT template image", getPrincipalName()); - isAuthorized(permissionUpdateTemplate); - logger.info("PUT iamgeText for modelName=" + templateName); - logger.info("PUT imageText=" + imageText); - CldsTemplate cldsTemplate = CldsTemplate.retrieve(cldsDao, templateName, true); - cldsTemplate.setImageText(imageText); - cldsTemplate.save(cldsDao, userid); - // audit log - LoggingUtils.setTimeContext(startTime, new Date()); - LoggingUtils.setResponseContext("0", "Put template image success", this.getClass().getName()); - auditLogger.info("PUT template image completed"); - return "wrote imageText for modelName=" + templateName; - } - - /** * REST service that retrieves a CLDS template by name from the database. * * @param templateName |