Package org.openwms.wms.shipping.impl
Class ShippingOrderPositionServiceImpl
java.lang.Object
org.openwms.wms.shipping.impl.ShippingOrderPositionServiceImpl
- All Implemented Interfaces:
ShippingOrderPositionService
@TxService
class ShippingOrderPositionServiceImpl
extends Object
implements ShippingOrderPositionService
A ShippingOrderPositionServiceImpl.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.context.ApplicationEventPublisher
private final ShippingOrderPositionRepository
private final org.ameba.i18n.Translator
-
Constructor Summary
ConstructorsConstructorDescriptionShippingOrderPositionServiceImpl
(org.springframework.context.ApplicationEventPublisher eventPublisher, org.ameba.i18n.Translator translator, ShippingOrderPositionRepository shippingOrderPositionRepository) -
Method Summary
Modifier and TypeMethodDescription@NotNull AbstractShippingOrderPosition
changeState
(@NotBlank String pKey, @NotNull OrderState orderState) Change the state of an existingShippingOrderPosition
.@NotNull AbstractShippingOrderPosition
findByPKey
(@NotBlank String pKey) Find and return aShippingOrderPosition
.private AbstractShippingOrderPosition
findInternal
(String pKey)
-
Field Details
-
eventPublisher
private final org.springframework.context.ApplicationEventPublisher eventPublisher -
translator
private final org.ameba.i18n.Translator translator -
shippingOrderPositionRepository
-
-
Constructor Details
-
ShippingOrderPositionServiceImpl
ShippingOrderPositionServiceImpl(org.springframework.context.ApplicationEventPublisher eventPublisher, org.ameba.i18n.Translator translator, ShippingOrderPositionRepository shippingOrderPositionRepository)
-
-
Method Details
-
findByPKey
@Measured @NotNull public @NotNull AbstractShippingOrderPosition findByPKey(@NotBlank @NotBlank String pKey) Find and return aShippingOrderPosition
.- Specified by:
findByPKey
in interfaceShippingOrderPositionService
- Parameters:
pKey
- The persistent key of the position- Returns:
- The instance, never null
-
changeState
@Measured @NotNull public @NotNull AbstractShippingOrderPosition changeState(@NotBlank @NotBlank String pKey, @NotNull @NotNull OrderState orderState) Change the state of an existingShippingOrderPosition
.- Specified by:
changeState
in interfaceShippingOrderPositionService
- Parameters:
pKey
- The persistent identifier of the ShippingOrderPosition instance to change the state fororderState
- The new order state to set- Returns:
- The updated instance
-
findInternal
-