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
Movements.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescription@NotNull MovementVOCancel an existingMovement.@NotNull MovementVOcomplete(@NotBlank String pKey, @Valid @NotNull MovementVO vo) Complete aMovement.@NotNull MovementVOcreate(@NotBlank(groups=Create.class) String bk, @NotNull(groups=Create.class) @Valid MovementVO movement) Create a newMovementfor aTransportUnit.@NotNull List<MovementVO> findAll()Find and return all existingMovements.findFor(@NotNull MovementState state, @NotBlank String source, @NotEmpty MovementType... types) Find and returnMovementsin the givenstateand of one of thetypes.@NotNull List<MovementVO> findForTuAndTypesAndStates(@NotBlank String barcode, @NotEmpty List<MovementType> types, @NotEmpty List<String> states) Find allMovements for aTransportUnitwith the givenbarcodeandstates.Get all priorities as a list of strings.@NotNull MovementVOmove(@NotBlank String pKey, @Valid @NotNull MovementVO vo) Move aMovementto 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 newMovementfor 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 returnMovementsin the givenstateand 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 aMovementto 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 existingMovements.- 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 allMovements for aTransportUnitwith the givenbarcodeandstates.- 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
-