Class ConsolidatedPickSlipContext

  • All Implemented Interfaces:
    java.lang.Cloneable, org.apache.velocity.context.Context, org.apache.velocity.context.InternalEventContext

    public class ConsolidatedPickSlipContext
    extends AbstractDocumentContext<BusinessProcessModel>
    Context for ConsolidatedPickLabel generating and sorting the form entries.
    • Constructor Detail

      • ConsolidatedPickSlipContext

        public ConsolidatedPickSlipContext()
    • Method Detail

      • escapeHtml

        public java.lang.String escapeHtml​(java.lang.String stringToEscape)
        Escapes String to generate safe HTML
        Parameters:
        stringToEscape - String to escape
        Returns:
        escaped String
      • getProductImageURL

        public java.lang.String getProductImageURL​(ProductModel productModel)
        Extracts the image url for the thumbnail of a ProductModel
        Parameters:
        productModel - the ProductModel for which we request Product Image
        Returns:
        the source url for the product thumbnail (expecting the relative path as a string)
      • getRowQuantity

        public int getRowQuantity​(int columns)
        Returns the quantity of row for the amount of column based on the list of ConsignmentModel
        Parameters:
        columns - amount of columns needed
        Returns:
        amount of rows required minus one.
      • getDate

        public org.apache.velocity.tools.generic.DateTool getDate()
      • getConsignmentList

        public java.util.List<ConsignmentModel> getConsignmentList()
      • setConsignmentList

        public void setConsignmentList​(java.util.List<ConsignmentModel> consignmentList)
      • setConsolidatedPickSlipComparator

        public void setConsolidatedPickSlipComparator​(java.util.Comparator<ConsolidatedPickSlipFormEntry> consolidatedPickSlipComparator)
      • 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