Package pro.taskana.classification.rest
Class ClassificationDefinitionController
java.lang.Object
pro.taskana.classification.rest.ClassificationDefinitionController
@RestController
@EnableHypermediaSupport(type=HAL)
public class ClassificationDefinitionController
extends Object
Controller for Importing / Exporting classifications.
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<ClassificationDefinitionCollectionRepresentationModel>exportClassifications(String[] domain) org.springframework.http.ResponseEntity<Void>importClassifications(org.springframework.web.multipart.MultipartFile file)
-
Method Details
-
exportClassifications
@GetMapping(path="/api/v1/classification-definitions") @Transactional(readOnly=true, rollbackFor=java.lang.Exception.class) public org.springframework.http.ResponseEntity<ClassificationDefinitionCollectionRepresentationModel> exportClassifications(@RequestParam(value="domain",required=false) String[] domain) -
importClassifications
@PostMapping(path="/api/v1/classification-definitions", consumes="multipart/form-data") @Transactional(rollbackFor=java.lang.Exception.class) public org.springframework.http.ResponseEntity<Void> importClassifications(@RequestParam("file") org.springframework.web.multipart.MultipartFile file) throws pro.taskana.common.api.exceptions.InvalidArgumentException, pro.taskana.common.api.exceptions.ConcurrencyException, pro.taskana.classification.api.exceptions.ClassificationNotFoundException, pro.taskana.classification.api.exceptions.ClassificationAlreadyExistException, pro.taskana.common.api.exceptions.DomainNotFoundException, IOException, pro.taskana.classification.api.exceptions.MalformedServiceLevelException, pro.taskana.common.api.exceptions.NotAuthorizedException - Throws:
pro.taskana.common.api.exceptions.InvalidArgumentExceptionpro.taskana.common.api.exceptions.ConcurrencyExceptionpro.taskana.classification.api.exceptions.ClassificationNotFoundExceptionpro.taskana.classification.api.exceptions.ClassificationAlreadyExistExceptionpro.taskana.common.api.exceptions.DomainNotFoundExceptionIOExceptionpro.taskana.classification.api.exceptions.MalformedServiceLevelExceptionpro.taskana.common.api.exceptions.NotAuthorizedException
-