Package org.openwms.tms
Class TransportationFacade
java.lang.Object
org.openwms.tms.TransportationFacade
- All Implemented Interfaces:
TransportOrderApi
A TransportationFacade is a transactional Spring managed bean that is independent from the used API exporter pattern.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final TransportOrderMapperprivate final TransportationService<TransportOrder> -
Constructor Summary
ConstructorsConstructorDescriptionTransportationFacade(TransportOrderMapper mapper, TransportationService<TransportOrder> service) -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeState(String pKey, String state) Request to change the state of an existingTransportOrder.voidCreate aTransportOrderfor aTransportUnitidentified by the givenbarcodeto the giventarget.voidCreate aTransportOrderfor aTransportUnitidentified by the givenbarcodeto the giventargetand the givenpriority.Find and return allTransportOrders in a particularstatefor theTransportUnitwith the givenbarcode.findByPKey(String pKey) Find and return aTransportOrderidentified by its persistent key.voidupdateTO(String pKey, UpdateTransportOrderVO vo) Request to update an existingTransportOrder.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
mapper
-
service
-
-
Constructor Details
-
TransportationFacade
TransportationFacade(TransportOrderMapper mapper, TransportationService<TransportOrder> service)
-
-
Method Details
-
createTO
Create aTransportOrderfor aTransportUnitidentified by the givenbarcodeto the giventarget.- Specified by:
createTOin interfaceTransportOrderApi- Parameters:
barcode- The business identifier of the TransportUnittarget- Either a Location of a LocationGroup
-
createTO
Create aTransportOrderfor aTransportUnitidentified by the givenbarcodeto the giventargetand the givenpriority.- Specified by:
createTOin interfaceTransportOrderApi- Parameters:
barcode- The business identifier of the TransportUnittarget- Either a Location of a LocationGrouppriority- The priority of the TransportOrder
-
changeState
Request to change the state of an existingTransportOrder.- Specified by:
changeStatein interfaceTransportOrderApi- Parameters:
pKey- The persistent key of the TransportOrder (not the primary key)state- The requested TransportOrder state
-
updateTO
Request to update an existingTransportOrder.- Specified by:
updateTOin interfaceTransportOrderApi- Parameters:
pKey- The persistent key of the TransportOrder (not the primary key)vo- The minimal necessary structure of the change set
-
findBy
Find and return allTransportOrders in a particularstatefor theTransportUnitwith the givenbarcode.- Specified by:
findByin interfaceTransportOrderApi- Parameters:
barcode- The business identifier of the TransportUnitstate- The TransportOrder state- Returns:
- A List implementation of the result instances, never null
-
findByPKey
Find and return aTransportOrderidentified by its persistent key.- Specified by:
findByPKeyin interfaceTransportOrderApi- Parameters:
pKey- The persistent key of the TransportOrder (not the primary key)- Returns:
- The instance
-