diff options
-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 73b593c3..c84f5efb 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 |