@RestController @EnableHypermediaSupport(type=HAL) public class WorkbasketController extends AbstractPagingController
Workbasket related endpoints.| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<WorkbasketResource> |
createWorkbasket(WorkbasketResource workbasketResource) |
org.springframework.http.ResponseEntity<DistributionTargetListResource> |
getDistributionTargets(String workbasketId) |
org.springframework.http.ResponseEntity<WorkbasketResource> |
getWorkbasket(String workbasketId) |
org.springframework.http.ResponseEntity<WorkbasketAccessItemListResource> |
getWorkbasketAccessItems(String workbasketId) |
org.springframework.http.ResponseEntity<WorkbasketSummaryListResource> |
getWorkbaskets(org.springframework.util.MultiValueMap<String,String> params) |
org.springframework.http.ResponseEntity<?> |
markWorkbasketForDeletion(String workbasketId) |
org.springframework.http.ResponseEntity<org.springframework.hateoas.Resources<DistributionTargetResource>> |
removeDistributionTargetForWorkbasketId(String targetWorkbasketId) |
org.springframework.http.ResponseEntity<DistributionTargetListResource> |
setDistributionTargetsForWorkbasketId(String sourceWorkbasketId,
List<String> targetWorkbasketIds) |
org.springframework.http.ResponseEntity<WorkbasketAccessItemListResource> |
setWorkbasketAccessItems(String workbasketId,
List<WorkbasketAccessItemResource> workbasketAccessResourceItems) |
org.springframework.http.ResponseEntity<WorkbasketResource> |
updateWorkbasket(String workbasketId,
WorkbasketResource workbasketResource) |
extractCommaSeparatedFields, getPageMetadata, getQueryList, initPageMetadata, initPageMetadata, validateNoInvalidParameterIsLeft@GetMapping(path="/api/v1/workbaskets")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<WorkbasketSummaryListResource> getWorkbaskets(@RequestParam
org.springframework.util.MultiValueMap<String,String> params)
throws pro.taskana.exceptions.InvalidArgumentException
@GetMapping(path="/api/v1/workbaskets/{workbasketId}")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<WorkbasketResource> getWorkbasket(@PathVariable(value="workbasketId")
String workbasketId)
throws pro.taskana.exceptions.WorkbasketNotFoundException,
pro.taskana.exceptions.NotAuthorizedException
@DeleteMapping(path="/api/v1/workbaskets/{workbasketId}")
@Transactional(rollbackFor=java.lang.Exception.class,
noRollbackFor=pro.taskana.exceptions.WorkbasketNotFoundException.class)
public org.springframework.http.ResponseEntity<?> markWorkbasketForDeletion(@PathVariable(value="workbasketId")
String workbasketId)
throws pro.taskana.exceptions.NotAuthorizedException,
pro.taskana.exceptions.InvalidArgumentException,
pro.taskana.exceptions.WorkbasketNotFoundException,
pro.taskana.exceptions.WorkbasketInUseException
@PostMapping(path="/api/v1/workbaskets") @Transactional(rollbackFor=java.lang.Exception.class) public org.springframework.http.ResponseEntity<WorkbasketResource> createWorkbasket(@RequestBody WorkbasketResource workbasketResource) throws pro.taskana.exceptions.InvalidWorkbasketException, pro.taskana.exceptions.NotAuthorizedException, pro.taskana.exceptions.WorkbasketAlreadyExistException, pro.taskana.exceptions.WorkbasketNotFoundException, pro.taskana.exceptions.DomainNotFoundException
@PutMapping(path="/api/v1/workbaskets/{workbasketId}")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<WorkbasketResource> updateWorkbasket(@PathVariable(value="workbasketId")
String workbasketId,
@RequestBody
WorkbasketResource workbasketResource)
throws pro.taskana.exceptions.InvalidWorkbasketException,
pro.taskana.exceptions.WorkbasketNotFoundException,
pro.taskana.exceptions.NotAuthorizedException
@GetMapping(path="/api/v1/workbaskets/{workbasketId}/workbasketAccessItems")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<WorkbasketAccessItemListResource> getWorkbasketAccessItems(@PathVariable(value="workbasketId")
String workbasketId)
throws pro.taskana.exceptions.NotAuthorizedException,
pro.taskana.exceptions.WorkbasketNotFoundException
@PutMapping(path="/api/v1/workbaskets/{workbasketId}/workbasketAccessItems")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<WorkbasketAccessItemListResource> setWorkbasketAccessItems(@PathVariable(value="workbasketId")
String workbasketId,
@RequestBody
List<WorkbasketAccessItemResource> workbasketAccessResourceItems)
throws pro.taskana.exceptions.NotAuthorizedException,
pro.taskana.exceptions.InvalidArgumentException,
pro.taskana.exceptions.WorkbasketNotFoundException
@GetMapping(path="/api/v1/workbaskets/{workbasketId}/distribution-targets")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<DistributionTargetListResource> getDistributionTargets(@PathVariable(value="workbasketId")
String workbasketId)
throws pro.taskana.exceptions.WorkbasketNotFoundException,
pro.taskana.exceptions.NotAuthorizedException
@PutMapping(path="/api/v1/workbaskets/{workbasketId}/distribution-targets")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<DistributionTargetListResource> setDistributionTargetsForWorkbasketId(@PathVariable(value="workbasketId")
String sourceWorkbasketId,
@RequestBody
List<String> targetWorkbasketIds)
throws pro.taskana.exceptions.WorkbasketNotFoundException,
pro.taskana.exceptions.NotAuthorizedException
@DeleteMapping(path="/api/v1/workbaskets/distribution-targets/{workbasketId}")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<org.springframework.hateoas.Resources<DistributionTargetResource>> removeDistributionTargetForWorkbasketId(@PathVariable(value="workbasketId")
String targetWorkbasketId)
throws pro.taskana.exceptions.WorkbasketNotFoundException,
pro.taskana.exceptions.NotAuthorizedException
Copyright © 2020. All rights reserved.