Package org.openwms.wms.movements
Class MovementController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.wms.movements.MovementController
@Validated
@MeasuredRestController
@RefreshScope
public class MovementController
extends org.openwms.core.http.AbstractWebController
A MovementController.
- Author:
- Heiko Scherrer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<MovementVO> org.springframework.http.ResponseEntity
<MovementVO> complete
(String pKey, @Valid MovementVO movement) org.springframework.http.ResponseEntity
<MovementVO> create
(String bk, @Valid MovementVO movement, javax.servlet.http.HttpServletRequest req) org.springframework.http.ResponseEntity
<List<MovementVO>> findAll()
org.springframework.http.ResponseEntity
<List<MovementVO>> findForStateAndTypesAndSource
(String state, String source, MovementType... types) org.springframework.http.ResponseEntity
<List<MovementVO>> findForTuAndTypesAndStates
(String barcode, List<MovementType> types, List<String> states) org.springframework.http.ResponseEntity
<org.openwms.core.http.Index> index()
org.springframework.http.ResponseEntity
<MovementVO> move
(String pKey, @Valid MovementVO movement) 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
-
service
-
-
Constructor Details
-
MovementController
-
-
Method Details
-
index
@GetMapping("/v1/movements/index") public org.springframework.http.ResponseEntity<org.openwms.core.http.Index> index() -
create
@PostMapping("/v1/transport-units/{bk}/movements") @Validated(Create.class) public org.springframework.http.ResponseEntity<MovementVO> create(@PathVariable("bk") String bk, @Valid @RequestBody @Valid MovementVO movement, javax.servlet.http.HttpServletRequest req) -
move
@PatchMapping("/v1/movements/{pKey}") @Validated(Move.class) public org.springframework.http.ResponseEntity<MovementVO> move(@PathVariable("pKey") String pKey, @Valid @RequestBody @Valid MovementVO movement) -
complete
@PatchMapping("/v1/movements/{pKey}/complete") @Validated(Complete.class) public org.springframework.http.ResponseEntity<MovementVO> complete(@PathVariable("pKey") String pKey, @Valid @RequestBody @Valid MovementVO movement) -
cancel
@DeleteMapping("/v1/movements/{pKey}") public org.springframework.http.ResponseEntity<MovementVO> cancel(@PathVariable("pKey") String pKey) -
findAll
@GetMapping("/v1/movements") public org.springframework.http.ResponseEntity<List<MovementVO>> findAll() -
findForTuAndTypesAndStates
@GetMapping(value="/v1/movements", params={"barcode","types","states"}) public org.springframework.http.ResponseEntity<List<MovementVO>> findForTuAndTypesAndStates(@RequestParam("barcode") String barcode, @RequestParam("types") List<MovementType> types, @RequestParam("states") List<String> states) -
findForStateAndTypesAndSource
@GetMapping(value="/v1/movements", params={"state","types"}) public org.springframework.http.ResponseEntity<List<MovementVO>> findForStateAndTypesAndSource(@RequestParam("state") String state, @RequestParam(value="source",required=false) String source, @RequestParam("types") MovementType... types)
-