@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 templateName) |
org.springframework.http.ResponseEntity<Void> |
deleteTemplate(String user,
String processType,
String activityType,
String templateName,
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) |
com.suncode.pwfl.web.support.ajax.RestResult |
handleError(Exception exception) |
com.suncode.pwfl.web.support.ajax.RestResult |
handleFormTemplateException(FormTemplateException exception) |
List<FormTemplateDto> |
queryTemplate(String user,
String process,
String activity,
String category) |
org.springframework.http.ResponseEntity<com.suncode.pwfl.web.support.ajax.RestResult> |
saveTemplate(FormTemplateDto templateDto) |
org.springframework.http.ResponseEntity<Void> |
updateTemplate(FormTemplateDto template) |
@ResponseBody
@RequestMapping(value="/templates",
method=POST)
public org.springframework.http.ResponseEntity<com.suncode.pwfl.web.support.ajax.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}/{templateName}",
method=DELETE)
public org.springframework.http.ResponseEntity<Void> deleteTemplate(@PathVariable
String user,
@PathVariable
String processType,
@PathVariable
String activityType,
@PathVariable
String templateName)
throws Exception
Exception@ResponseBody
@RequestMapping(value="/templates/{processType}/{activityType}/{user}/{category}/{templateName}",
method=DELETE)
public org.springframework.http.ResponseEntity<Void> deleteTemplate(@PathVariable
String user,
@PathVariable
String processType,
@PathVariable
String activityType,
@PathVariable
String templateName,
@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 process,
@RequestParam(required=false)
String activity,
@RequestParam(required=false)
String category)
throws Exception
Exception@ExceptionHandler(value=FormTemplateException.class) @ResponseStatus(value=BAD_REQUEST) @ResponseBody public com.suncode.pwfl.web.support.ajax.RestResult handleFormTemplateException(FormTemplateException exception)
@ExceptionHandler(value=java.lang.Exception.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public com.suncode.pwfl.web.support.ajax.RestResult handleError(Exception exception)
Copyright © 2015 Suncode. All rights reserved.