Package pro.taskana.common.rest
Class AccessIdController
- java.lang.Object
-
- pro.taskana.common.rest.AccessIdController
-
@RestController @EnableHypermediaSupport(type=HAL) public class AccessIdController extends Object
Controller for access id validation.
-
-
Constructor Summary
Constructors Constructor Description AccessIdController(LdapClient ldapClient, pro.taskana.common.api.TaskanaEngine taskanaEngine)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<List<AccessIdRepresentationModel>>getGroupsByAccessId(String accessId)org.springframework.http.ResponseEntity<List<AccessIdRepresentationModel>>validateAccessIds(String searchFor)
-
-
-
Constructor Detail
-
AccessIdController
@Autowired public AccessIdController(LdapClient ldapClient, pro.taskana.common.api.TaskanaEngine taskanaEngine)
-
-
Method Detail
-
validateAccessIds
@GetMapping(path="/api/v1/access-ids") public org.springframework.http.ResponseEntity<List<AccessIdRepresentationModel>> validateAccessIds(@RequestParam("search-for") String searchFor) throws pro.taskana.common.api.exceptions.InvalidArgumentException, pro.taskana.common.api.exceptions.NotAuthorizedException
- Throws:
pro.taskana.common.api.exceptions.InvalidArgumentExceptionpro.taskana.common.api.exceptions.NotAuthorizedException
-
getGroupsByAccessId
@GetMapping(path="/api/v1/access-ids/groups") public org.springframework.http.ResponseEntity<List<AccessIdRepresentationModel>> getGroupsByAccessId(@RequestParam("access-id") String accessId) throws pro.taskana.common.api.exceptions.InvalidArgumentException, pro.taskana.common.api.exceptions.NotAuthorizedException
- Throws:
pro.taskana.common.api.exceptions.InvalidArgumentExceptionpro.taskana.common.api.exceptions.NotAuthorizedException
-
-