@RestController
@RequestMapping(path="/v1/workbasket-definitions",
produces="application/json")
public class WorkbasketDefinitionController
extends Object
WorkbasketDefinition related endpoints.| Constructor and Description |
|---|
WorkbasketDefinitionController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<List<pro.taskana.WorkbasketSummary>> |
exportWorkbaskets(String domain) |
org.springframework.http.ResponseEntity<String> |
importWorkbaskets(org.springframework.web.multipart.MultipartFile file)
This method imports a list of
WorkbasketDefinition. |
@GetMapping
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<List<pro.taskana.WorkbasketSummary>> exportWorkbaskets(@RequestParam(required=false)
String domain)
@PostMapping @Transactional(rollbackFor=java.lang.Exception.class) public org.springframework.http.ResponseEntity<String> importWorkbaskets(@RequestParam(value="file") org.springframework.web.multipart.MultipartFile file) throws IOException, pro.taskana.exceptions.NotAuthorizedException, pro.taskana.exceptions.DomainNotFoundException, pro.taskana.exceptions.InvalidWorkbasketException, pro.taskana.exceptions.WorkbasketAlreadyExistException, pro.taskana.exceptions.WorkbasketNotFoundException, pro.taskana.exceptions.InvalidArgumentException
WorkbasketDefinition. This does not exactly match the REST norm, but
we want to have an option to import all settings at once. When a logical equal (key and domain are equal)
workbasket already exists an update will be executed. Otherwise a new workbasket will be created.file - the list of workbasket definitions which will be imported to the current system.IOExceptionpro.taskana.exceptions.NotAuthorizedExceptionpro.taskana.exceptions.DomainNotFoundExceptionpro.taskana.exceptions.InvalidWorkbasketExceptionpro.taskana.exceptions.WorkbasketAlreadyExistExceptionpro.taskana.exceptions.WorkbasketNotFoundExceptionpro.taskana.exceptions.InvalidArgumentExceptionCopyright © 2019. All rights reserved.