Package org.openwms.core.uaa
Class GrantController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.core.uaa.GrantController
@Validated
@MeasuredRestController
public class GrantController
extends org.openwms.core.http.AbstractWebController
A GrantController.
- Author:
- Heiko Scherrer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addSelfLink
(GrantVO result) org.springframework.http.ResponseEntity
<GrantVO> createGrant
(@Valid @NotNull GrantVO grant, jakarta.servlet.http.HttpServletRequest req) findAllForUser
(@NotBlank String user) org.springframework.http.ResponseEntity
<GrantVO> findByPKey
(String pKey) org.springframework.http.ResponseEntity
<org.openwms.core.http.Index> index()
Methods inherited from class org.openwms.core.http.AbstractWebController
buildNOKResponse, buildNOKResponseWithKey, buildOKResponse, buildResponse, buildResponse, getLocationForCreatedResource, getLocationURIForCreatedResource, handleBehaviorAwareException, handleBusinessRuntimeException, handleConstraintViolationException, handleException, handleHttpBusinessException, handleRemovalNotAllowedException, handleTechnicalRuntimeException, handleValidationException, illegalArgumentException, translate
-
Field Details
-
grantService
-
mapper
-
-
Constructor Details
-
GrantController
-
-
Method Details
-
index
@GetMapping("/grants/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index() -
findByPKey
-
findAllGrants
-
findAllForUser
-
createGrant
@Validated(Create.class) @PostMapping("/grants") public org.springframework.http.ResponseEntity<GrantVO> createGrant(@Valid @RequestBody @NotNull @Valid @NotNull GrantVO grant, jakarta.servlet.http.HttpServletRequest req) -
addSelfLink
-