Class ReceivingOrderPosition

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.openwms.wms.receiving.impl.AbstractReceivingOrderPosition
org.openwms.wms.receiving.impl.ReceivingOrderPosition
All Implemented Interfaces:
Serializable, org.ameba.integration.TypedEntity<Long>, Convertable

@Entity public class ReceivingOrderPosition extends AbstractReceivingOrderPosition implements Convertable, Serializable
A ReceivingOrderPosition is a persisted entity class that represents an expected receipt of Products in a particular quantity.
Author:
Heiko Scherrer
See Also:
  • Field Details

  • Constructor Details

    • ReceivingOrderPosition

      protected ReceivingOrderPosition()
      Used by the JPA provider.
    • ReceivingOrderPosition

      public ReceivingOrderPosition(Integer posNo, org.openwms.core.units.api.Measurable quantityExpected, Product product)
  • Method Details

    • validateOnCreation

      public void validateOnCreation(jakarta.validation.Validator validator, Class<?> clazz)
      Description copied from class: AbstractReceivingOrderPosition
      Subclasses may validate themselves.
      Specified by:
      validateOnCreation in class AbstractReceivingOrderPosition
      Parameters:
      validator - The Validator instance
      clazz - The validation group
    • preCreate

      public void preCreate(ServiceProvider serviceProvider)
      Description copied from class: AbstractReceivingOrderPosition
      Subclasses have the chance for manipulation before creation.
      Overrides:
      preCreate in class AbstractReceivingOrderPosition
      Parameters:
      serviceProvider - An instance that provides application services.
    • getProduct

      private Product getProduct(ServiceProvider serviceProvider, String sku)
    • changePositionState

      public void changePositionState(org.springframework.context.ApplicationEventPublisher eventPublisher, PositionState positionState)
      Change the state of the position and publish a state change event if the new state has a higher ordinal value than the current state. Additionally, recalculate the order state. If the state is set to COMPLETED the quantityReceived is set to quantityExpected.
      Overrides:
      changePositionState in class AbstractReceivingOrderPosition
      Parameters:
      eventPublisher - The publisher to broadcast the state change event.
      positionState - The new state to which the position is transitioning.
    • getQuantityExpected

      public org.openwms.core.units.api.Measurable getQuantityExpected()
    • setQuantityExpected

      public void setQuantityExpected(org.openwms.core.units.api.Measurable quantityExpected)
    • getQuantityReceived

      public org.openwms.core.units.api.Measurable getQuantityReceived()
    • addQuantityReceived

      public org.openwms.core.units.api.Measurable addQuantityReceived(org.openwms.core.units.api.Measurable quantityReceived)
    • setQuantityReceived

      public void setQuantityReceived(org.openwms.core.units.api.Measurable quantityReceived)
    • getProduct

      public Product getProduct()
    • hasProduct

      public boolean hasProduct()
    • setProduct

      public void setProduct(Product product)
    • accept

      public void accept(BaseReceivingOrderPositionVisitor visitor)
      Specified by:
      accept in interface Convertable