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>
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 73b593c..c84f5ef 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 @@
}
/**
- * 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 @@
}
/**
- * 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