@Controller @VisitRefer(refer="decision-management-directory") @RequestMapping(value="/{version}") public class TemplateResource extends java.lang.Object
构造器和说明 |
---|
TemplateResource() |
限定符和类型 | 方法和说明 |
---|---|
Response |
addTemplates(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String directoryId,
TemplateBean[] templateBeans) |
Response |
deleteTemplate(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String templateId) |
Response |
editTemplate(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String templateId,
TemplateBean templateBean) |
Response |
getBatchTemplateTreeNodes(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String version,
java.lang.String[] parentPaths) |
@RequestMapping(value="/{directoryId}/templates", method=POST) @ResponseBody public Response addTemplates(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="directoryId") java.lang.String directoryId, @RequestBody TemplateBean[] templateBeans) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/template/{templateId}", method=PUT) @ResponseBody public Response editTemplate(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="templateId") java.lang.String templateId, @RequestBody TemplateBean templateBean) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/template/{templateId}", method=DELETE) @ResponseBody public Response deleteTemplate(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @PathVariable(value="templateId") java.lang.String templateId) throws java.lang.Exception
java.lang.Exception
@RequestMapping(value="/templates/batch", method=POST) @ResponseBody public Response getBatchTemplateTreeNodes(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, @PathVariable(value="version") java.lang.String version, @RequestBody java.lang.String[] parentPaths) throws java.lang.Exception
java.lang.Exception