Class ShippingLabelContext

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

public class ShippingLabelContext extends CommonPrintLabelContext
Context specific to ShippingLabel
See Also:
  • Constructor Details

    • ShippingLabelContext

      public ShippingLabelContext()
  • 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
    • getBarcodeMediaImageURL

      public String getBarcodeMediaImageURL(ConsignmentModel consignmentModel)
      Extracts the image url for the barcode of the label
      Parameters:
      consignmentModel - the consignment model for which we request the Pick Slip label
      Returns:
      the source url for the barcode image of the label (expecting the relative path as a string)
    • getBarcodeMediaImageName

      protected String getBarcodeMediaImageName()
    • setBarcodeMediaImageName

      public void setBarcodeMediaImageName(String barcodeMediaImageName)
    • getMediaService

      protected MediaService getMediaService()
    • setMediaService

      public void setMediaService(MediaService mediaService)
    • getImpersonationService

      protected ImpersonationService getImpersonationService()
    • setImpersonationService

      public void setImpersonationService(ImpersonationService impersonationService)
    • 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