Class WorkbasketAccessItemController


  • @RestController
    @EnableHypermediaSupport(type=HAL)
    public class WorkbasketAccessItemController
    extends AbstractPagingController
    Controller for Workbasket access.
    • Method Detail

      • getWorkbasketAccessItems

        @GetMapping(path="/api/v1/workbasket-access-items")
        public org.springframework.http.ResponseEntity<TaskanaPagedModel<WorkbasketAccessItemRepresentationModel>> getWorkbasketAccessItems​(@RequestParam
                                                                                                                                            org.springframework.util.MultiValueMap<String,​String> params)
                                                                                                                                     throws pro.taskana.common.api.exceptions.NotAuthorizedException,
                                                                                                                                            pro.taskana.common.api.exceptions.InvalidArgumentException
        This GET method return all workbasketAccessItems that correspond the given data.
        Parameters:
        params - filter, order and access ids.
        Returns:
        all WorkbasketAccesItemResource.
        Throws:
        pro.taskana.common.api.exceptions.NotAuthorizedException - if the user is not authorized.
        pro.taskana.common.api.exceptions.InvalidArgumentException - if some argument is invalid.
      • removeWorkbasketAccessItems

        @DeleteMapping(path="/api/v1/workbasket-access-items")
        public org.springframework.http.ResponseEntity<Void> removeWorkbasketAccessItems​(@RequestParam("access-id")
                                                                                         String accessId)
                                                                                  throws pro.taskana.common.api.exceptions.NotAuthorizedException,
                                                                                         pro.taskana.common.api.exceptions.InvalidArgumentException
        This DELETE method delete all workbasketAccessItems that correspond the given accessId.
        Parameters:
        accessId - which need remove his workbasketAccessItems.
        Returns:
        ResponseEntity if the user is not authorized.
        Throws:
        pro.taskana.common.api.exceptions.NotAuthorizedException - if the user is not authorized.
        pro.taskana.common.api.exceptions.InvalidArgumentException - if some argument is invalid.