Package org.openwms.wms.transport
Interface TransportUnitService
- All Known Implementing Classes:
TransportUnitServiceImpl
public interface TransportUnitService
A TransportUnitService.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescription@NotNull TransportUnitcreate(@NotNull TransportUnit transportUnit) Create a newTransportUnit.@NotNull TransportUnitcreateWithBK(@NotBlank String transportUnitBK, @NotBlank String tut, @NotBlank String actualErpCode, String loadUnitType, Integer parts, String customerOrderId) @NotNull CommonTransportUnitVOcreateWithoutBK(@NotBlank String tut, @NotBlank String actualErpCode, String loadUnitType, Integer parts, String customerOrderId) @NotNull List<TransportUnit>Find and returnTransportUnits.@NotNull TransportUnitfindByPKey(@NotBlank String pKey) Find and return aTransportUnit.Find and return aTransportUnit.findOneByOrThrow(@NotBlank String transportUnitBK) Find and return aTransportUnit.@NotNull List<TransportUnit>findOnLocation(@NotBlank String erpCode) Find and return allTransportUnits that are located on theLocationidentified by the givenerpCode.@NotNull TransportUnitmoveTransportUnit(@NotNull Barcode transportUnitBK, @NotBlank String targetLocationIdentifier) Move aTransportUnitto a newLocation.@NotNull TransportUnitsave(@NotNull TransportUnit tu) Save an existingTransportUnit.
-
Method Details
-
findOneBy
Find and return aTransportUnit.- Parameters:
transportUnitBK- The business key- Returns:
- The instance
-
findOneByOrThrow
Find and return aTransportUnit.- Parameters:
transportUnitBK- The business key- Returns:
- The instance
- Throws:
org.ameba.exception.NotFoundException- in case no TransportUnit exists
-
findAllBy
Find and returnTransportUnits.- Parameters:
transportUnitBKs- The business keys of the TransportUnits to search for- Returns:
- All instances, never null
-
findByPKey
Find and return aTransportUnit.- Parameters:
pKey- The persistent identifier- Returns:
- The instance, never null
- Throws:
org.ameba.exception.NotFoundException- in case no TransportUnit exists
-
findOnLocation
Find and return allTransportUnits that are located on theLocationidentified by the givenerpCode.- Parameters:
erpCode- The Location where the TransportUnits are placed on- Returns:
- All TransportUnits or an empty List, never null
-
create
Create a newTransportUnit.- Parameters:
transportUnit- The instance to create- Returns:
- The created instance
- Throws:
org.ameba.exception.ResourceExistsException- In case the TransportUnit already exists
-
moveTransportUnit
@NotNull @NotNull TransportUnit moveTransportUnit(@NotNull @NotNull Barcode transportUnitBK, @NotBlank @NotBlank String targetLocationIdentifier) Move aTransportUnitto a newLocation.- Parameters:
transportUnitBK- The business key of the TransportUnit to movetargetLocationIdentifier- The ERP code or the LocationId of the Location to move to- Returns:
- The moved instance
-
createWithoutBK
@NotNull @NotNull CommonTransportUnitVO createWithoutBK(@NotBlank @NotBlank String tut, @NotBlank @NotBlank String actualErpCode, String loadUnitType, Integer parts, String customerOrderId) - Parameters:
tut- The name of the TransportUnitType to useactualErpCode- The actual ERP codeloadUnitType- The name of the LoadUnitType (optional)parts- The number of LoadUnits to create (optional)customerOrderId- A reference to the customer order this TransportUnit is assigned to (optional)- Returns:
- The created instance
-
createWithBK
@NotNull @NotNull TransportUnit createWithBK(@NotBlank @NotBlank String transportUnitBK, @NotBlank @NotBlank String tut, @NotBlank @NotBlank String actualErpCode, String loadUnitType, Integer parts, String customerOrderId) - Parameters:
transportUnitBK- The business key to usetut- The name of the TransportUnitType to useactualErpCode- The actual ERP codeloadUnitType- The name of the LoadUnitType (optional)parts- The number of LoadUnits to create (optional)customerOrderId- A reference to the customer order this TransportUnit is assigned to (optional)- Returns:
- The created instance
-
save
Save an existingTransportUnit.- Parameters:
tu- The modified instance to save- Returns:
- The saved instance
-