From 9472232d02bc468bc2c66b622056dfd4fb90c78b Mon Sep 17 00:00:00 2001 From: "Determe, Sebastien (sd378r)" Date: Mon, 30 Oct 2017 18:39:45 +0100 Subject: 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) --- .../clamp/clds/service/CldsTemplateService.java | 54 ---------------------- 1 file changed, 54 deletions(-) (limited to 'src') 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 @@ -106,33 +106,6 @@ public class CldsTemplateService extends SecureServiceBase { return template.getBpmnText(); } - /** - * 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 @@ -157,33 +130,6 @@ public class CldsTemplateService extends SecureServiceBase { return template.getImageText(); } - /** - * 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. * -- cgit 1.2.3-korg