@RestController @EnableHypermediaSupport(type=HAL) public class WorkbasketController extends AbstractPagingController
Workbasket related endpoints.extractCommaSeparatedFields, getPageMetadata, getQueryList, initPageMetadata, initPageMetadata, validateNoInvalidParameterIsLeft@GetMapping(path="/api/v1/workbaskets")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskanaPagedModel<WorkbasketSummaryRepresentationModel>> getWorkbaskets(@RequestParam
org.springframework.util.MultiValueMap<String,String> params)
throws pro.taskana.common.api.exceptions.InvalidArgumentException
@GetMapping(path="/api/v1/workbaskets/{workbasketId}",
produces="application/hal+json")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<WorkbasketRepresentationModel> getWorkbasket(@PathVariable(value="workbasketId")
String workbasketId)
throws pro.taskana.workbasket.api.exceptions.WorkbasketNotFoundException,
pro.taskana.common.api.exceptions.NotAuthorizedException
@DeleteMapping(path="/api/v1/workbaskets/{workbasketId}")
@Transactional(rollbackFor=java.lang.Exception.class,
noRollbackFor=pro.taskana.workbasket.api.exceptions.WorkbasketNotFoundException.class)
public org.springframework.http.ResponseEntity<WorkbasketRepresentationModel> deleteWorkbasket(@PathVariable(value="workbasketId")
String workbasketId)
throws pro.taskana.common.api.exceptions.NotAuthorizedException,
pro.taskana.common.api.exceptions.InvalidArgumentException,
pro.taskana.workbasket.api.exceptions.WorkbasketNotFoundException,
pro.taskana.workbasket.api.exceptions.WorkbasketInUseException
@PostMapping(path="/api/v1/workbaskets") @Transactional(rollbackFor=java.lang.Exception.class) public org.springframework.http.ResponseEntity<WorkbasketRepresentationModel> createWorkbasket(@RequestBody WorkbasketRepresentationModel workbasketRepresentationModel) throws pro.taskana.workbasket.api.exceptions.InvalidWorkbasketException, pro.taskana.common.api.exceptions.NotAuthorizedException, pro.taskana.workbasket.api.exceptions.WorkbasketAlreadyExistException, pro.taskana.common.api.exceptions.DomainNotFoundException
@PutMapping(path="/api/v1/workbaskets/{workbasketId}")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<WorkbasketRepresentationModel> updateWorkbasket(@PathVariable(value="workbasketId")
String workbasketId,
@RequestBody
WorkbasketRepresentationModel workbasketRepresentationModel)
throws pro.taskana.workbasket.api.exceptions.InvalidWorkbasketException,
pro.taskana.workbasket.api.exceptions.WorkbasketNotFoundException,
pro.taskana.common.api.exceptions.NotAuthorizedException,
pro.taskana.common.api.exceptions.ConcurrencyException
@GetMapping(path="/api/v1/workbaskets/{workbasketId}/workbasketAccessItems",
produces="application/hal+json")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskanaPagedModel<WorkbasketAccessItemRepresentationModel>> getWorkbasketAccessItems(@PathVariable(value="workbasketId")
String workbasketId)
throws pro.taskana.common.api.exceptions.NotAuthorizedException,
pro.taskana.workbasket.api.exceptions.WorkbasketNotFoundException
@PutMapping(path="/api/v1/workbaskets/{workbasketId}/workbasketAccessItems")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskanaPagedModel<WorkbasketAccessItemRepresentationModel>> setWorkbasketAccessItems(@PathVariable(value="workbasketId")
String workbasketId,
@RequestBody
List<WorkbasketAccessItemRepresentationModel> workbasketAccessResourceItems)
throws pro.taskana.common.api.exceptions.NotAuthorizedException,
pro.taskana.common.api.exceptions.InvalidArgumentException,
pro.taskana.workbasket.api.exceptions.WorkbasketNotFoundException,
pro.taskana.workbasket.api.exceptions.WorkbasketAccessItemAlreadyExistException
@GetMapping(path="/api/v1/workbaskets/{workbasketId}/distribution-targets",
produces="application/hal+json")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskanaPagedModel<WorkbasketSummaryRepresentationModel>> getDistributionTargets(@PathVariable(value="workbasketId")
String workbasketId)
throws pro.taskana.workbasket.api.exceptions.WorkbasketNotFoundException,
pro.taskana.common.api.exceptions.NotAuthorizedException
@PutMapping(path="/api/v1/workbaskets/{workbasketId}/distribution-targets")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskanaPagedModel<WorkbasketSummaryRepresentationModel>> setDistributionTargetsForWorkbasketId(@PathVariable(value="workbasketId")
String sourceWorkbasketId,
@RequestBody
List<String> targetWorkbasketIds)
throws pro.taskana.workbasket.api.exceptions.WorkbasketNotFoundException,
pro.taskana.common.api.exceptions.NotAuthorizedException
@DeleteMapping(path="/api/v1/workbaskets/{workbasketId}/distribution-targets")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskanaPagedModel<WorkbasketSummaryRepresentationModel>> removeDistributionTargetForWorkbasketId(@PathVariable(value="workbasketId")
String targetWorkbasketId)
throws pro.taskana.workbasket.api.exceptions.WorkbasketNotFoundException,
pro.taskana.common.api.exceptions.NotAuthorizedException
Copyright © 2020. All rights reserved.