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

    Fields
    Modifier and Type
    Field
    Description
    private final GrantService
     
    private final GrantMapper
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GrantController(GrantService grantService, GrantMapper mapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
     
    org.springframework.http.ResponseEntity<GrantVO>
    createGrant(@Valid @NotNull GrantVO grant, jakarta.servlet.http.HttpServletRequest req)
     
    org.springframework.http.ResponseEntity<List<GrantVO>>
    findAllForUser(@NotBlank String user)
     
    org.springframework.http.ResponseEntity<List<GrantVO>>
     
    org.springframework.http.ResponseEntity<GrantVO>
     
    org.springframework.http.ResponseEntity<org.openwms.core.http.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • index

      @GetMapping("/grants/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index()
    • findByPKey

      @GetMapping("/grants/{pKey}") public org.springframework.http.ResponseEntity<GrantVO> findByPKey(@PathVariable("pKey") String pKey)
    • findAllGrants

      @Transactional(readOnly=true) @GetMapping("/grants") public org.springframework.http.ResponseEntity<List<GrantVO>> findAllGrants()
    • findAllForUser

      @Transactional(readOnly=true) @GetMapping(path="/grants", headers="X-Identity") public org.springframework.http.ResponseEntity<List<GrantVO>> findAllForUser(@NotBlank @RequestHeader("X-Identity") @NotBlank String user)
    • 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

      private void addSelfLink(GrantVO result)