Class LocationGroupController

java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.common.location.LocationGroupController

@Profile("!INMEM") @Validated @RefreshScope @MeasuredRestController public class LocationGroupController extends org.openwms.core.http.AbstractWebController
A LocationGroupController.
Author:
Heiko Scherrer
  • Field Details

  • Constructor Details

  • Method Details

    • create

      @PostMapping("/v1/location-groups") public org.springframework.http.ResponseEntity<LocationGroupVO> create(@Validated(Create.class) @Valid @RequestBody @Valid LocationGroupVO vo, jakarta.servlet.http.HttpServletRequest req)
      Creates a new location group.
      Parameters:
      vo - The LocationGroupVO object containing the data for the new location group. The object must be validated using the annotated constraints specified in the ValidationGroups.Create interface.
      Returns:
      A ResponseEntity object containing the LocationGroupVO of the newly created location group, or an empty ResponseEntity if the creation failed.
    • findByName

      @Transactional(readOnly=true) @GetMapping(value="/v1/location-groups", params="name") public LocationGroupVO findByName(@RequestParam("name") String name)
    • findByNames

      @Transactional(readOnly=true) @GetMapping(value="/v1/location-groups", params="names") public List<LocationGroupVO> findByNames(@RequestParam("names") List<String> names)
    • findAll

      @Transactional(readOnly=true) @GetMapping("/v1/location-groups") public List<LocationGroupVO> findAll()
    • changeGroupState

      @PatchMapping(value="/v1/location-groups", params={"name","op=change-state"}) public org.springframework.http.ResponseEntity<Void> changeGroupState(@RequestParam(name="name") String name, @RequestParam(name="op") String op, @RequestBody ErrorCodeVO errorCode)
    • changeGroupState

      @PatchMapping(value="/v1/location-group/{pKey}", params="op=change-state") public org.springframework.http.ResponseEntity<Void> changeGroupState(@PathVariable String pKey, @RequestParam(name="op") String op, @RequestParam(name="statein") LocationGroupState stateIn, @RequestParam(name="stateout") LocationGroupState stateOut)
    • deleteLocationGroup

      @DeleteMapping("/v1/location-groups/{pKey}") public org.springframework.http.ResponseEntity<Void> deleteLocationGroup(@PathVariable("pKey") String pKey)
    • modifyLocationGroup

      @PatchMapping("/v1/location-groups/{pKey}") public org.springframework.http.ResponseEntity<Void> modifyLocationGroup(@PathVariable String pKey, @RequestBody LocationGroupVO locationGroupVO)
    • index

      @GetMapping("/v1/location-groups/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index()