@RestController
@EnableHypermediaSupport(type=HAL)
@RequestMapping(path="/v1/workbaskets",
produces="application/hal+json")
public class WorkbasketController
extends AbstractPagingController
Workbasket related endpoints.| Constructor and Description |
|---|
WorkbasketController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<WorkbasketResource> |
createWorkbasket(WorkbasketResource workbasketResource) |
org.springframework.http.ResponseEntity<org.springframework.hateoas.Resources<DistributionTargetResource>> |
getDistributionTargets(String workbasketId) |
org.springframework.http.ResponseEntity<WorkbasketResource> |
getWorkbasket(String workbasketId) |
org.springframework.http.ResponseEntity<org.springframework.hateoas.Resources<WorkbasketAccessItemResource>> |
getWorkbasketAccessItems(String workbasketId) |
org.springframework.http.ResponseEntity<org.springframework.hateoas.PagedResources<WorkbasketSummaryResource>> |
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<org.springframework.hateoas.Resources<DistributionTargetResource>> |
setDistributionTargetsForWorkbasketId(String sourceWorkbasketId,
List<String> targetWorkbasketIds) |
org.springframework.http.ResponseEntity<org.springframework.hateoas.Resources<WorkbasketAccessItemResource>> |
setWorkbasketAccessItems(String workbasketId,
List<WorkbasketAccessItemResource> workbasketAccessResourceItems) |
org.springframework.http.ResponseEntity<WorkbasketResource> |
updateWorkbasket(String workbasketId,
WorkbasketResource workbasketResource) |
extractCommaSeparatedFields, initPageMetadata, validateNoInvalidParameterIsLeft@GetMapping
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<org.springframework.hateoas.PagedResources<WorkbasketSummaryResource>> getWorkbaskets(@RequestParam
org.springframework.util.MultiValueMap<String,String> params)
throws pro.taskana.exceptions.InvalidArgumentException
pro.taskana.exceptions.InvalidArgumentException@GetMapping(path="/{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
pro.taskana.exceptions.WorkbasketNotFoundExceptionpro.taskana.exceptions.NotAuthorizedException@DeleteMapping(path="/{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
pro.taskana.exceptions.NotAuthorizedExceptionpro.taskana.exceptions.InvalidArgumentExceptionpro.taskana.exceptions.WorkbasketNotFoundExceptionpro.taskana.exceptions.WorkbasketInUseException@PostMapping @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
pro.taskana.exceptions.InvalidWorkbasketExceptionpro.taskana.exceptions.NotAuthorizedExceptionpro.taskana.exceptions.WorkbasketAlreadyExistExceptionpro.taskana.exceptions.WorkbasketNotFoundExceptionpro.taskana.exceptions.DomainNotFoundException@PutMapping(path="/{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
pro.taskana.exceptions.InvalidWorkbasketExceptionpro.taskana.exceptions.WorkbasketNotFoundExceptionpro.taskana.exceptions.NotAuthorizedException@GetMapping(path="/{workbasketId}/workbasketAccessItems")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<org.springframework.hateoas.Resources<WorkbasketAccessItemResource>> getWorkbasketAccessItems(@PathVariable(value="workbasketId")
String workbasketId)
throws pro.taskana.exceptions.NotAuthorizedException,
pro.taskana.exceptions.WorkbasketNotFoundException
pro.taskana.exceptions.NotAuthorizedExceptionpro.taskana.exceptions.WorkbasketNotFoundException@PutMapping(value="/{workbasketId}/workbasketAccessItems")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<org.springframework.hateoas.Resources<WorkbasketAccessItemResource>> setWorkbasketAccessItems(@PathVariable(value="workbasketId")
String workbasketId,
@RequestBody
List<WorkbasketAccessItemResource> workbasketAccessResourceItems)
throws pro.taskana.exceptions.NotAuthorizedException,
pro.taskana.exceptions.InvalidArgumentException,
pro.taskana.exceptions.WorkbasketNotFoundException
pro.taskana.exceptions.NotAuthorizedExceptionpro.taskana.exceptions.InvalidArgumentExceptionpro.taskana.exceptions.WorkbasketNotFoundException@GetMapping(path="/{workbasketId}/distribution-targets")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<org.springframework.hateoas.Resources<DistributionTargetResource>> getDistributionTargets(@PathVariable(value="workbasketId")
String workbasketId)
throws pro.taskana.exceptions.WorkbasketNotFoundException,
pro.taskana.exceptions.NotAuthorizedException
pro.taskana.exceptions.WorkbasketNotFoundExceptionpro.taskana.exceptions.NotAuthorizedException@PutMapping(path="/{workbasketId}/distribution-targets")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<org.springframework.hateoas.Resources<DistributionTargetResource>> setDistributionTargetsForWorkbasketId(@PathVariable(value="workbasketId")
String sourceWorkbasketId,
@RequestBody
List<String> targetWorkbasketIds)
throws pro.taskana.exceptions.WorkbasketNotFoundException,
pro.taskana.exceptions.NotAuthorizedException
pro.taskana.exceptions.WorkbasketNotFoundExceptionpro.taskana.exceptions.NotAuthorizedException@DeleteMapping(path="/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
pro.taskana.exceptions.WorkbasketNotFoundExceptionpro.taskana.exceptions.NotAuthorizedExceptionCopyright © 2018. All rights reserved.