Package org.openwms.tms
Class TransportationFacade
java.lang.Object
org.openwms.tms.TransportationFacade
- All Implemented Interfaces:
TransportOrderApi
@Transactional
@Component
public class TransportationFacade
extends Object
implements TransportOrderApi
A TransportationFacade is a transactional Spring managed bean that is independent from the used API exporter pattern.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final TransportOrderMapper
private final TransportationService
<TransportOrder> -
Constructor Summary
ConstructorDescriptionTransportationFacade
(TransportOrderMapper mapper, TransportationService<TransportOrder> service) -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeState
(String pKey, String state) Request to change the state of an existingTransportOrder
.void
Create aTransportOrder
for aTransportUnit
identified by the givenbarcode
to the giventarget
.void
Create aTransportOrder
for aTransportUnit
identified by the givenbarcode
to the giventarget
and the givenpriority
.Find and return allTransportOrder
s in a particularstate
for theTransportUnit
with the givenbarcode
.findByPKey
(String pKey) Find and return aTransportOrder
identified by its persistent key.void
updateTO
(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 aTransportOrder
for aTransportUnit
identified by the givenbarcode
to the giventarget
.- Specified by:
createTO
in interfaceTransportOrderApi
- Parameters:
barcode
- The business identifier of the TransportUnittarget
- Either a Location of a LocationGroup
-
createTO
Create aTransportOrder
for aTransportUnit
identified by the givenbarcode
to the giventarget
and the givenpriority
.- Specified by:
createTO
in 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:
changeState
in 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:
updateTO
in 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 allTransportOrder
s in a particularstate
for theTransportUnit
with the givenbarcode
.- Specified by:
findBy
in 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 aTransportOrder
identified by its persistent key.- Specified by:
findByPKey
in interfaceTransportOrderApi
- Parameters:
pKey
- The persistent key of the TransportOrder (not the primary key)- Returns:
- The instance
-