@RestController @EnableHypermediaSupport(type=HAL) public class ClassificationDefinitionController extends Object
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<List<ClassificationResource>> |
exportClassifications(String domain) |
org.springframework.http.ResponseEntity<Void> |
importClassifications(org.springframework.web.multipart.MultipartFile file) |
@GetMapping(path="/api/v1/classification-definitions")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<List<ClassificationResource>> exportClassifications(@RequestParam(required=false)
String domain)
throws pro.taskana.exceptions.ClassificationNotFoundException
@PostMapping(path="/api/v1/classification-definitions") @Transactional(rollbackFor=java.lang.Exception.class) public org.springframework.http.ResponseEntity<Void> importClassifications(@RequestParam(value="file") org.springframework.web.multipart.MultipartFile file) throws pro.taskana.exceptions.InvalidArgumentException, pro.taskana.exceptions.NotAuthorizedException, pro.taskana.exceptions.ConcurrencyException, pro.taskana.exceptions.ClassificationNotFoundException, pro.taskana.exceptions.ClassificationAlreadyExistException, pro.taskana.exceptions.DomainNotFoundException, IOException
pro.taskana.exceptions.InvalidArgumentExceptionpro.taskana.exceptions.NotAuthorizedExceptionpro.taskana.exceptions.ConcurrencyExceptionpro.taskana.exceptions.ClassificationNotFoundExceptionpro.taskana.exceptions.ClassificationAlreadyExistExceptionpro.taskana.exceptions.DomainNotFoundExceptionIOExceptionCopyright © 2020. All rights reserved.