@Controller
@RequestMapping(value="cuf/form",
produces="application/json")
public class FormTemplateController
extends Object
| Constructor and Description |
|---|
FormTemplateController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Void> |
deleteTemplate(String user,
String processType,
String activityType,
String templateNameBase64) |
org.springframework.http.ResponseEntity<Void> |
deleteTemplate(String user,
String processType,
String activityType,
String templateNameBase64,
String category) |
org.springframework.http.ResponseEntity<FormTemplateDto> |
getDefaultTemplate(String user,
String processType) |
org.springframework.http.ResponseEntity<FormTemplateDto> |
getDefaultTemplate(String user,
String processType,
String category) |
org.springframework.http.ResponseEntity<FormTemplateDto> |
getTemplate(String user,
String processType,
String activityType,
String templateName) |
org.springframework.http.ResponseEntity<FormTemplateDto> |
getTemplate(String user,
String processType,
String activityType,
String templateName,
String category) |
org.springframework.http.ResponseEntity<FormTemplateDto> |
getTemplate(String user,
String processId,
String activityId,
String processType,
String activityType,
String category,
String templateName) |
RestResult |
handleError(Exception exception) |
RestResult |
handleFormTemplateException(FormTemplateException exception) |
List<FormTemplateDto> |
queryTemplate(String user,
String processId,
String activityId,
String process,
String activity,
String category) |
org.springframework.http.ResponseEntity<RestResult> |
saveTemplate(FormTemplateDto templateDto) |
org.springframework.http.ResponseEntity<Void> |
updateTemplate(FormTemplateDto template) |
@ResponseBody
@RequestMapping(value="/templates",
method=POST)
public org.springframework.http.ResponseEntity<RestResult> saveTemplate(@RequestBody
FormTemplateDto templateDto)
throws Exception
Exception@ResponseBody
@RequestMapping(value="/templates",
method=PUT)
public org.springframework.http.ResponseEntity<Void> updateTemplate(@RequestBody
FormTemplateDto template)
throws Exception
Exception@ResponseBody
@RequestMapping(value="/templates/{processType}/{activityType}/{user}/{templateName}",
method=GET)
public org.springframework.http.ResponseEntity<FormTemplateDto> getTemplate(@PathVariable
String user,
@PathVariable
String processType,
@PathVariable
String activityType,
@PathVariable
String templateName)
throws Exception
Exception@ResponseBody
@RequestMapping(value="/templates/{processType}/{activityType}/{user}/{templateName}/{category}",
method=GET)
public org.springframework.http.ResponseEntity<FormTemplateDto> getTemplate(@PathVariable
String user,
@PathVariable
String processType,
@PathVariable
String activityType,
@PathVariable
String templateName,
@PathVariable
String category)
throws Exception
Exception@ResponseBody
@RequestMapping(value="/templates/default/{processType}/{user}",
method=GET)
public org.springframework.http.ResponseEntity<FormTemplateDto> getDefaultTemplate(@PathVariable
String user,
@PathVariable
String processType)
throws Exception
Exception@ResponseBody
@RequestMapping(value="/templates/default/{processType}/{user}/{category}",
method=GET)
public org.springframework.http.ResponseEntity<FormTemplateDto> getDefaultTemplate(@PathVariable
String user,
@PathVariable
String processType,
@PathVariable
String category)
throws Exception
Exception@ResponseBody
@RequestMapping(value="/templates/{processType}/{activityType}/{user}/{templateNameBase64}",
method=DELETE)
public org.springframework.http.ResponseEntity<Void> deleteTemplate(@PathVariable
String user,
@PathVariable
String processType,
@PathVariable
String activityType,
@PathVariable
String templateNameBase64)
throws Exception
Exception@ResponseBody
@RequestMapping(value="/templates/{processType}/{activityType}/{user}/{category}/{templateNameBase64}",
method=DELETE)
public org.springframework.http.ResponseEntity<Void> deleteTemplate(@PathVariable
String user,
@PathVariable
String processType,
@PathVariable
String activityType,
@PathVariable
String templateNameBase64,
@PathVariable
String category)
throws Exception
Exception@ResponseBody
@RequestMapping(value="/templates/query",
method=GET)
public List<FormTemplateDto> queryTemplate(@RequestParam(required=false)
String user,
@RequestParam(required=false)
String processId,
@RequestParam(required=false)
String activityId,
@RequestParam(required=false)
String process,
@RequestParam(required=false)
String activity,
@RequestParam(required=false)
String category)
throws Exception
Exception@ResponseBody
@RequestMapping(value="/templates/one",
method=GET)
public org.springframework.http.ResponseEntity<FormTemplateDto> getTemplate(@RequestParam(required=false)
String user,
@RequestParam(required=false)
String processId,
@RequestParam(required=false)
String activityId,
@RequestParam(required=false)
String processType,
@RequestParam(required=false)
String activityType,
@RequestParam(required=false)
String category,
@RequestParam
String templateName)
throws Exception
Exception@ExceptionHandler(value=FormTemplateException.class) @ResponseStatus(value=BAD_REQUEST) @ResponseBody public RestResult handleFormTemplateException(FormTemplateException exception)
@ExceptionHandler(value=java.lang.Exception.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public RestResult handleError(Exception exception)
Copyright © 2022 Suncode. All rights reserved.