Class ChineseAbstractEmailContext<T extends BusinessProcessModel>
- java.lang.Object
-
- org.apache.velocity.context.AbstractContext
-
- org.apache.velocity.VelocityContext
-
- de.hybris.platform.acceleratorservices.document.context.AbstractHybrisVelocityContext
-
- de.hybris.platform.acceleratorservices.process.email.context.AbstractEmailContext<T>
-
- de.hybris.platform.chineseprofileservices.process.email.context.ChineseAbstractEmailContext<T>
-
- All Implemented Interfaces:
java.lang.Cloneable,org.apache.velocity.context.Context,org.apache.velocity.context.InternalEventContext
- Direct Known Subclasses:
ConsignmentCollectionReminderEmailContext,CustomerEmailContext,DeliverySentEmailContext,NotPickedUpConsignmentCanceledEmailContext,OrderCancelledEmailContext,OrderNotificationEmailContext,OrderPartiallyModifiedEmailContext,OrderRefundEmailContext,ReadyForPickupEmailContext
public abstract class ChineseAbstractEmailContext<T extends BusinessProcessModel> extends AbstractEmailContext<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME_WITH_TITLE-
Fields inherited from class de.hybris.platform.acceleratorservices.process.email.context.AbstractEmailContext
DATE_TOOL, DISPLAY_NAME, EMAIL, EMAIL_LANGUAGE, FROM_DISPLAY_NAME, FROM_EMAIL, TITLE
-
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 ChineseAbstractEmailContext()
-
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)protected ChineseCustomerAccountServicegetChineseCustomerAccountService()intgetCurrentMacroCallDepth()java.lang.StringgetCurrentMacroName()org.apache.velocity.runtime.resource.ResourcegetCurrentResource()java.lang.StringgetCurrentTemplateName()CustomerNameStrategygetCustomerNameStrategy()protected LanguageModelgetEmailLanguage(T businessProcessModel)org.apache.velocity.app.event.EventCartridgegetEventCartridge()java.util.ListgetMacroLibraries()java.lang.Object[]getMacroNameStack()java.lang.StringgetNameWithTitle()NameWithTitleFormatStrategygetNameWithTitleFormatStrategy()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(T businessProcessModel, EmailPageModel emailPageModel)protected voidlocalize(T businessProcessModel)voidpopCurrentMacroName()voidpopCurrentTemplateName()voidpushCurrentMacroName(java.lang.String arg0)voidpushCurrentTemplateName(java.lang.String arg0)voidsetChineseCustomerAccountService(ChineseCustomerAccountService chineseCustomerAccountService)voidsetCurrentResource(org.apache.velocity.runtime.resource.Resource arg0)voidsetCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)voidsetMacroLibraries(java.util.List arg0)voidsetNameWithTitleFormatStrategy(NameWithTitleFormatStrategy nameWithTitleFormatStrategy)voidsetNameWithTitleInContext()Set the nameWithTitle in email context-
Methods inherited from class de.hybris.platform.acceleratorservices.process.email.context.AbstractEmailContext
getConfigurationService, getCustomer, getCustomerEmailResolutionService, getDisplayName, getEmail, getEmailLanguage, getFromDisplayName, getFromEmail, getSite, getTitle, getToDisplayName, getToEmail, setConfigurationService, setCustomerEmailResolutionService
-
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
-
-
-
-
Field Detail
-
NAME_WITH_TITLE
public static final java.lang.String NAME_WITH_TITLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(T businessProcessModel, EmailPageModel emailPageModel)
- Overrides:
initin classAbstractEmailContext<T extends BusinessProcessModel>
-
getEmailLanguage
protected LanguageModel getEmailLanguage(T businessProcessModel)
- Specified by:
getEmailLanguagein classAbstractEmailContext<T extends BusinessProcessModel>
-
localize
protected void localize(T businessProcessModel)
-
setNameWithTitleInContext
public void setNameWithTitleInContext()
Set the nameWithTitle in email context
-
getNameWithTitle
public java.lang.String getNameWithTitle()
-
getCustomerNameStrategy
public CustomerNameStrategy getCustomerNameStrategy()
-
setCustomerNameStrategy
public void setCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)
-
getNameWithTitleFormatStrategy
public NameWithTitleFormatStrategy getNameWithTitleFormatStrategy()
-
setNameWithTitleFormatStrategy
public void setNameWithTitleFormatStrategy(NameWithTitleFormatStrategy nameWithTitleFormatStrategy)
-
getChineseCustomerAccountService
protected ChineseCustomerAccountService getChineseCustomerAccountService()
-
setChineseCustomerAccountService
public void setChineseCustomerAccountService(ChineseCustomerAccountService chineseCustomerAccountService)
-
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
-
-