Package org.openwms.wms.receiving.rest
Class RestServiceFacadeImpl<T extends CaptureRequestVO>
java.lang.Object
org.openwms.wms.receiving.rest.RestServiceFacadeImpl<T>
- All Implemented Interfaces:
 RestServiceFacade<T>
@Validated
@Service
class RestServiceFacadeImpl<T extends CaptureRequestVO>
extends Object
implements RestServiceFacade<T>
A RestServiceFacadeImpl.
- Author:
 - Heiko Scherrer
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final ReceivingMapperprivate final ReceivingService - 
Constructor Summary
ConstructorsConstructorDescriptionRestServiceFacadeImpl(ReceivingMapper receivingMapper, ReceivingService receivingService)  - 
Method Summary
Modifier and TypeMethodDescription@NotNull ReceivingOrderVOcancelOrder(@NotBlank String pKey) Cancel aReceivingOrder.@NotNull Optional<ReceivingOrderVO> Capturing on aReceivingOrdermeans: Decrease one of theReceivingOrderPositions by the received amount of the givenProductCreate physicalPackagingUnit(s) from the received quantityvoidcaptureBlindReceipts(@NotNull List<T> requests) Capture an unexpected receipt (aka Blind Receipt) that has no reference to aReceivingOrder.@NotNull ReceivingOrderVOchangeState(@NotBlank String pKey, @NotNull OrderState state) Change the state of aReceivingOrder.@NotNull ReceivingOrderVOComplete aReceivingOrderand all positions.@NotNull ReceivingOrderVOupdate(@NotBlank String pKey, @NotNull ReceivingOrderVO receivingOrder) Update an existingReceivingOrderwith the given data. 
- 
Field Details
- 
LOGGER
private static final org.slf4j.Logger LOGGER - 
receivingMapper
 - 
receivingService
 
 - 
 - 
Constructor Details
- 
RestServiceFacadeImpl
 
 - 
 - 
Method Details
- 
capture
@Measured @Transactional @NotNull public @NotNull Optional<ReceivingOrderVO> capture(@NotBlank @NotBlank String pKey, @NotNull @Valid @NotNull @Valid List<T> requests) Capturing on aReceivingOrdermeans:- Decrease one of the 
ReceivingOrderPositions by the received amount of the givenProduct - Create physical 
PackagingUnit(s) from the received quantity 
- Specified by:
 capturein interfaceRestServiceFacade<T extends CaptureRequestVO>- Parameters:
 pKey- The persistent key of the ReceivingOrderrequests- Contains all the capturing information according to the process in use- Returns:
 - The updated ReceivingOrder instance with updated positions
 
 - Decrease one of the 
 - 
captureBlindReceipts
Capture an unexpected receipt (aka Blind Receipt) that has no reference to aReceivingOrder.- Create physical 
PackagingUnit(s) from the received quantity 
- Specified by:
 captureBlindReceiptsin interfaceRestServiceFacade<T extends CaptureRequestVO>- Parameters:
 requests- Contains all the capturing information according to the process in use
 - Create physical 
 - 
cancelOrder
@Measured @Transactional @NotNull public @NotNull ReceivingOrderVO cancelOrder(@NotBlank @NotBlank String pKey) Cancel aReceivingOrder.- Specified by:
 cancelOrderin interfaceRestServiceFacade<T extends CaptureRequestVO>- Parameters:
 pKey- The synthetic persistent key- Returns:
 - The cancelled instance
 
 - 
changeState
@Measured @Transactional @NotNull public @NotNull ReceivingOrderVO changeState(@NotBlank @NotBlank String pKey, @NotNull @NotNull OrderState state) Change the state of aReceivingOrder.- Specified by:
 changeStatein interfaceRestServiceFacade<T extends CaptureRequestVO>- Parameters:
 pKey- The synthetic persistent keystate- The new state- Returns:
 - The updated instance
 
 - 
update
@Measured @Transactional @NotNull public @NotNull ReceivingOrderVO update(@NotBlank @NotBlank String pKey, @NotNull @NotNull ReceivingOrderVO receivingOrder) Update an existingReceivingOrderwith the given data.- Specified by:
 updatein interfaceRestServiceFacade<T extends CaptureRequestVO>- Parameters:
 pKey- The synthetic persistent keyreceivingOrder- The representation to update- Returns:
 - The updated instance
 
 - 
complete
@Measured @Transactional @NotNull public @NotNull ReceivingOrderVO complete(@NotBlank @NotBlank String pKey) Complete aReceivingOrderand all positions. Satisfy quantities and set the state toCOMPLETED.- Specified by:
 completein interfaceRestServiceFacade<T extends CaptureRequestVO>- Parameters:
 pKey- The synthetic persistent key- Returns:
 - The updated instance
 
 
 -