Class PickSlipContext

All Implemented Interfaces:
Serializable, Cloneable, org.apache.velocity.context.Context, org.apache.velocity.context.InternalEventContext

public class PickSlipContext extends CommonPrintLabelContext
Context specific to PickLabel providing additional methods for extracting bincode and image url of the product
See Also:
  • Constructor Details

    • PickSlipContext

      public PickSlipContext()
  • Method Details

    • init

      public void init(ConsignmentProcessModel businessProcessModel, DocumentPageModel documentPageModel)
      Description copied from class: CommonPrintLabelContext
      Initialization of the model passed in parameter
      Overrides:
      init in class CommonPrintLabelContext
    • extractBin

      public String extractBin(ConsignmentEntryModel consignmentEntryModel)
      Extracts the bin location of the product for the selected consignmentEntry
      Parameters:
      consignmentEntryModel - the consignment model for which we request the Pick Slip label
      Returns:
      The binCode location of the product
    • getProductImageURL

      public String getProductImageURL(ConsignmentEntryModel consignmentEntryModel)
      Extracts the image url for the thumbnail of the product for the selected consignmentEntry
      Parameters:
      consignmentEntryModel - the consignment model for which we request the Pick Slip label
      Returns:
      the source url for the product thumbnail (expecting the relative path as a string)
    • getShippingAddress

      public AddressModel getShippingAddress()
    • getConsignmentEntries

      public Set<ConsignmentEntryModel> getConsignmentEntries()
    • getInventoryEventService

      protected InventoryEventService getInventoryEventService()
    • setInventoryEventService

      public void setInventoryEventService(InventoryEventService inventoryEventService)
    • pushCurrentTemplateName

      public void pushCurrentTemplateName(String arg0)
    • popCurrentTemplateName

      public void popCurrentTemplateName()
    • getCurrentTemplateName

      public String getCurrentTemplateName()
    • getTemplateNameStack

      public String[] getTemplateNameStack()
    • pushCurrentMacroName

      public void pushCurrentMacroName(String arg0)
    • popCurrentMacroName

      public void popCurrentMacroName()
    • getCurrentMacroName

      public String getCurrentMacroName()
    • getCurrentMacroCallDepth

      public int getCurrentMacroCallDepth()
    • getMacroNameStack

      public String[] getMacroNameStack()
    • icacheGet

      public org.apache.velocity.util.introspection.IntrospectionCacheData icacheGet(Object arg0)
    • icachePut

      public void icachePut(Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1)
    • setCurrentResource

      public void setCurrentResource(org.apache.velocity.runtime.resource.Resource arg0)
    • getCurrentResource

      public org.apache.velocity.runtime.resource.Resource getCurrentResource()
    • setMacroLibraries

      public void setMacroLibraries(List<org.apache.velocity.Template> arg0)
    • getMacroLibraries

      public List<org.apache.velocity.Template> getMacroLibraries()
    • attachEventCartridge

      public org.apache.velocity.app.event.EventCartridge attachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)
      Specified by:
      attachEventCartridge in interface org.apache.velocity.context.InternalEventContext
    • getEventCartridge

      public org.apache.velocity.app.event.EventCartridge getEventCartridge()
      Specified by:
      getEventCartridge in interface org.apache.velocity.context.InternalEventContext