Class PickSlipContext
- java.lang.Object
-
- org.apache.velocity.context.AbstractContext
-
- org.apache.velocity.VelocityContext
-
- de.hybris.platform.acceleratorservices.document.context.AbstractHybrisVelocityContext
-
- de.hybris.platform.acceleratorservices.document.context.AbstractDocumentContext<ConsignmentProcessModel>
-
- de.hybris.platform.warehousing.labels.context.CommonPrintLabelContext
-
- de.hybris.platform.warehousing.labels.context.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
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.acceleratorservices.document.context.AbstractDocumentContext
DOCUMENT_LANGUAGE
-
Fields inherited from class de.hybris.platform.acceleratorservices.document.context.AbstractHybrisVelocityContext
BASE_SITE, BASE_THEME_URL, BASE_URL, MEDIA_BASE_URL, MEDIA_SECURE_BASE_URL, SECURE_BASE_URL, THEME
-
-
Constructor Summary
Constructors Constructor Description PickSlipContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.velocity.app.event.EventCartridgeattachEventCartridge(org.apache.velocity.app.event.EventCartridge arg0)java.lang.StringextractBin(ConsignmentEntryModel consignmentEntryModel)Extracts the bin location of the product for the selected consignmentEntryjava.util.Set<ConsignmentEntryModel>getConsignmentEntries()intgetCurrentMacroCallDepth()java.lang.StringgetCurrentMacroName()org.apache.velocity.runtime.resource.ResourcegetCurrentResource()java.lang.StringgetCurrentTemplateName()org.apache.velocity.app.event.EventCartridgegetEventCartridge()protected InventoryEventServicegetInventoryEventService()java.util.ListgetMacroLibraries()java.lang.Object[]getMacroNameStack()java.lang.StringgetProductImageURL(ConsignmentEntryModel consignmentEntryModel)Extracts the image url for the thumbnail of the product for the selected consignmentEntryAddressModelgetShippingAddress()java.lang.Object[]getTemplateNameStack()org.apache.velocity.util.introspection.IntrospectionCacheDataicacheGet(java.lang.Object arg0)voidicachePut(java.lang.Object arg0, org.apache.velocity.util.introspection.IntrospectionCacheData arg1)voidinit(ConsignmentProcessModel businessProcessModel, DocumentPageModel documentPageModel)Initialization of the model passed in parametervoidpopCurrentMacroName()voidpopCurrentTemplateName()voidpushCurrentMacroName(java.lang.String arg0)voidpushCurrentTemplateName(java.lang.String arg0)voidsetCurrentResource(org.apache.velocity.runtime.resource.Resource arg0)voidsetInventoryEventService(InventoryEventService inventoryEventService)voidsetMacroLibraries(java.util.List arg0)-
Methods inherited from class de.hybris.platform.warehousing.labels.context.CommonPrintLabelContext
escapeHtml, getConsignment, getDate, getDocumentLanguage, getNumber, getOrder, getSite
-
Methods inherited from class de.hybris.platform.acceleratorservices.document.context.AbstractDocumentContext
getDocumentLanguage
-
Methods inherited from class de.hybris.platform.acceleratorservices.document.context.AbstractHybrisVelocityContext
getBaseSite, getBaseThemeUrl, getBaseUrl, getCmsSlotContents, getMediaBaseUrl, getMediaSecureBaseUrl, getMessage, getMessages, getSecureBaseUrl, getSiteBaseUrlResolutionService, getTheme, getUrlEncoderService, getUrlEncodingAttributes, init, setBaseSite, setCmsSlotContents, setMessages, setSiteBaseUrlResolutionService, setUrlEncoderService, setUrlEncodingAttributes
-
Methods inherited from class org.apache.velocity.VelocityContext
clone, internalContainsKey, internalGet, internalGetKeys, internalPut, internalRemove
-
-
-
-
Method Detail
-
init
public void init(ConsignmentProcessModel businessProcessModel, DocumentPageModel documentPageModel)
Description copied from class:CommonPrintLabelContextInitialization of the model passed in parameter- Overrides:
initin classCommonPrintLabelContext
-
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()
-
getConsignmentEntries
public java.util.Set<ConsignmentEntryModel> getConsignmentEntries()
-
getInventoryEventService
protected InventoryEventService getInventoryEventService()
-
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:
attachEventCartridgein interfaceorg.apache.velocity.context.InternalEventContext
-
getEventCartridge
public org.apache.velocity.app.event.EventCartridge getEventCartridge()
- Specified by:
getEventCartridgein interfaceorg.apache.velocity.context.InternalEventContext
-
-