Class PickSlipContext

  • All Implemented Interfaces:
    java.lang.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
    • Constructor Detail

      • PickSlipContext

        public PickSlipContext()
    • Method Detail

      • extractBin

        public java.lang.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 java.lang.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()
      • setInventoryEventService

        public void setInventoryEventService​(InventoryEventService inventoryEventService)
      • pushCurrentTemplateName

        public void pushCurrentTemplateName​(java.lang.String arg0)
      • popCurrentTemplateName

        public void popCurrentTemplateName()
      • getCurrentTemplateName

        public java.lang.String getCurrentTemplateName()
      • getTemplateNameStack

        public java.lang.Object[] getTemplateNameStack()
      • pushCurrentMacroName

        public void pushCurrentMacroName​(java.lang.String arg0)
      • popCurrentMacroName

        public void popCurrentMacroName()
      • getCurrentMacroName

        public java.lang.String getCurrentMacroName()
      • getCurrentMacroCallDepth

        public int getCurrentMacroCallDepth()
      • getMacroNameStack

        public java.lang.Object[] getMacroNameStack()
      • icacheGet

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

        public void icachePut​(java.lang.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​(java.util.List arg0)
      • getMacroLibraries

        public java.util.List 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