Package org.openwms.wms.movements
Interface MovementService
- All Known Implementing Classes:
MovementServiceImpl
public interface MovementService
A MovementService is the internal service API that deals with
Movement
s.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescription@NotNull MovementVO
Cancel an existingMovement
.@NotNull MovementVO
complete
(@NotBlank String pKey, @Valid @NotNull MovementVO vo) Complete aMovement
.@NotNull MovementVO
create
(@NotBlank(groups=Create.class) String bk, @NotNull(groups=Create.class) @Valid MovementVO movement) Create a newMovement
for aTransportUnit
.@NotNull List
<MovementVO> findAll()
Find and return all existingMovement
s.findFor
(@NotNull MovementState state, @NotBlank String source, @NotEmpty MovementType... types) Find and returnMovements
in the givenstate
and of one of thetypes
.@NotNull List
<MovementVO> findForTuAndTypesAndStates
(@NotBlank String barcode, @NotEmpty List<MovementType> types, @NotEmpty List<String> states) Find allMovement
s for aTransportUnit
with the givenbarcode
andstates
.Get all priorities as a list of strings.@NotNull MovementVO
move
(@NotBlank String pKey, @Valid @NotNull MovementVO vo) Move aMovement
to a new location.
-
Method Details
-
create
@NotNull @NotNull MovementVO create(@NotBlank(groups=Create.class) @NotBlank(groups=Create.class) String bk, @NotNull(groups=Create.class) @Valid @NotNull(groups=Create.class) @Valid MovementVO movement) Create a newMovement
for aTransportUnit
.- Parameters:
bk
- The identifying business key of the TransportUnit to movemovement
- Detailed Movement information- Returns:
- The created Movement instance
-
findFor
List<MovementVO> findFor(@NotNull @NotNull MovementState state, @NotBlank @NotBlank String source, @NotEmpty @NotEmpty MovementType... types) Find and returnMovements
in the givenstate
and of one of thetypes
.- Parameters:
state
- The state the Movement is insource
- The source of the Movementtypes
- The type of Movement- Returns:
- A list of, never null
-
getPriorityList
Get all priorities as a list of strings.- Returns:
- The list of priorities
-
move
@NotNull @NotNull MovementVO move(@NotBlank @NotBlank String pKey, @Valid @NotNull @Valid @NotNull MovementVO vo) Move aMovement
to a new location.- Parameters:
pKey
- The persistent key of the Movementvo
- The Movement data must contain the new source- Returns:
- The moved instance
-
complete
@NotNull @NotNull MovementVO complete(@NotBlank @NotBlank String pKey, @Valid @NotNull @Valid @NotNull MovementVO vo) Complete aMovement
.- Parameters:
pKey
- The identifying persistent key of the Movement to completevo
- Required data to set at completion- Returns:
- The completed instance
-
cancel
Cancel an existingMovement
.- Parameters:
pKey
- The identifying persistent key of the Movement to complete- Returns:
- The cancelled instance
-
findAll
Find and return all existingMovement
s.- Returns:
- All instances, never null
-
findForTuAndTypesAndStates
@NotNull @NotNull List<MovementVO> findForTuAndTypesAndStates(@NotBlank @NotBlank String barcode, @NotEmpty @NotEmpty List<MovementType> types, @NotEmpty @NotEmpty List<String> states) Find allMovement
s for aTransportUnit
with the givenbarcode
andstates
.- Parameters:
barcode
- The business key of the TransportUnit to movetypes
- A list of types to considerstates
- A list of states to consider- Returns:
- A list of Movements, never null
-