Class ActionResource

java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.tms.routing.ui.ActionResource

@MeasuredRestController class ActionResource extends org.openwms.core.http.AbstractWebController
A ActionResource.
Author:
Heiko Scherrer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final ActionUIService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActionResource(org.springframework.context.MessageSource messageSource, ActionUIService actionUIService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    create(ActionVO actionVO, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)
     
    void
    delete(String pKey)
     
     
    save(ActionVO actionVO)
     

    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

    • ActionResource

      ActionResource(org.springframework.context.MessageSource messageSource, ActionUIService actionUIService)
  • Method Details

    • getAll

      @GetMapping("/v1/api/actions") public List<ActionVO> getAll()
    • delete

      @DeleteMapping("/v1/api/actions/{pKey}") @ResponseStatus(NO_CONTENT) @CacheEvict("actions") public void delete(@PathVariable("pKey") String pKey)
    • save

      @PutMapping("/v1/api/actions") @CacheEvict("actions") public ActionVO save(@RequestBody ActionVO actionVO)
    • create

      @PostMapping("/v1/api/actions") @ResponseStatus(CREATED) @CacheEvict("actions") public void create(@RequestBody ActionVO actionVO, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)