Package org.openwms.tms
Class TransportationController
java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.tms.TransportationController
@Profile("!INMEM")
@MeasuredRestController
class TransportationController
extends org.openwms.core.http.AbstractWebController
A TransportationController.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final TransportationService
<TransportOrder> private final TransportationFacade
-
Constructor Summary
ConstructorDescriptionTransportationController
(TransportationService<TransportOrder> service, TransportationFacade transportationFacade) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<Void> changeState
(String pKey, String state) void
createTO
(String barcode, String target, String priorityParam, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) void
createTO
(CreateTransportOrderVO vo, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) findByPKey
(String pKey) protected org.springframework.http.ResponseEntity
<org.ameba.http.Response> void
updateTO
(String pKey, UpdateTransportOrderVO vo) 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
-
LOGGER
private static final org.slf4j.Logger LOGGER -
service
-
transportationFacade
-
-
Constructor Details
-
TransportationController
TransportationController(TransportationService<TransportOrder> service, TransportationFacade transportationFacade)
-
-
Method Details
-
findBy
@GetMapping(value="/v1/transport-orders", params={"barcode","state"}) public List<TransportOrderVO> findBy(@RequestParam String barcode, @RequestParam String state) -
findByPKey
@GetMapping("/v1/transport-orders/{pKey}") public TransportOrderVO findByPKey(@PathVariable("pKey") String pKey) -
createTO
@PostMapping(value="/v1/transport-orders", params={"barcode","target"}) @ResponseStatus(CREATED) public void createTO(@RequestParam("barcode") String barcode, @RequestParam("target") String target, @RequestParam(value="priority",required=false) String priorityParam, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) -
createTO
@PostMapping("/v1/transport-orders") @ResponseStatus(CREATED) public void createTO(@RequestBody CreateTransportOrderVO vo, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) -
updateTO
@PatchMapping("/v1/transport-orders/{pKey}") @ResponseStatus(NO_CONTENT) public void updateTO(@PathVariable("pKey") String pKey, @RequestBody UpdateTransportOrderVO vo) -
changeState
-
handleDeniedException
@ExceptionHandler(DeniedException.class) protected org.springframework.http.ResponseEntity<org.ameba.http.Response> handleDeniedException(DeniedException bae)
-