public class EmailTemplateUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
Copyright.
|
| Constructor and Description |
|---|
EmailTemplateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getCampaignName(java.lang.String emailPromoId)
This method returns the campaign name for the Email activity
|
static java.lang.String |
getCampaignParameterValues(java.lang.String emailPromotionId,
java.lang.String linkName)
This method returns the cm_cr parameter value which is going to send to
Coremetrics This parameter will have the format of
cm_cr=OS:CampaignName-_-EmailActivity-_-PromoEmail-_-EmailTemplate-_-LinkName
|
static java.lang.String |
getCampaignParameterValues(java.lang.String emailPromotionId,
java.lang.String linkName,
boolean includeOS)
This method returns the cm_cr parameter value which is going to send to
Coremetrics This parameter will have the following format when the includeOS is true
cm_cr=OS:CampaignName-_-EmailActivity-_-PromoEmail-_-EmailTemplate-_-LinkName
and the following format if the includeOS flag is false
cm_cr=CampaignName-_-1-_-PromoEmail-_-EmailTemplate-_-LinkName
|
static java.lang.String |
getClientId(java.lang.Integer storeId)
Gets the
clientId for the store specified by the storeId |
static java.util.Vector |
getDisplayTypes(java.lang.String tagName)
This method returns all the available display types for a given tag name.
|
static java.lang.Integer |
getEmailMsgId(java.lang.String emailPromotionId)
This method returns the email message id
|
static java.lang.String |
getEmailPromoName(java.lang.String emailPromotionId)
This method returns the emailPromo Name
|
static java.lang.String |
getEmailTemplateName(java.lang.Integer messageId)
This method returns the email template name
|
static java.lang.String |
getEmailTemplateName(java.lang.String emailPromotionId)
This method returns the email template name
|
static java.lang.String[] |
getImageRequestURLForEMSpot(java.lang.String emailPromoId,
java.lang.String emsName,
com.ibm.commerce.command.CommandContext commandContext)
Returns the image request url array which contain the image request url to coremetrics for all the links present in the EMarketingSpot
|
static java.lang.String[] |
getImageRequestURLForEMSpot(java.lang.String emailPromoId,
java.lang.String emsName,
com.ibm.commerce.command.CommandContext commandContext,
java.lang.String catalogId)
Returns the image request url array which contain the image request url to coremetrics for all the links present in the EMarketingSpot
|
static java.lang.String |
getImageRequestURLForLink(java.lang.String emailPromoId,
java.lang.String linkName,
com.ibm.commerce.command.CommandContext commandContext)
Returns the image request url which contain the image request url to coremetrics for the link
|
static java.util.ArrayList |
getLinkNamesForEMSpot(java.lang.String emsName,
com.ibm.commerce.command.CommandContext commandContent)
Returns the link names of the links present in the EMarketing Spot
|
static java.util.ArrayList |
getLinkNamesForEMSpot(java.lang.String emsName,
com.ibm.commerce.command.CommandContext commandContent,
java.lang.String catalogId)
Returns the link names of the links present in the EMarketing Spot
|
static java.lang.String |
getMarketingParameterValues(java.lang.String emailPromotionId,
java.lang.String linkName)
This method returns the cm_mmc parameter value which is going to send to
Coremetrics This parameter will have the format of
cm_mmc=Email-_-WebsphereCommerce-_-PromoEmail-_-LinkName
|
static java.lang.String[] |
getTemplateViewByStoreType()
This method returns all template views
|
public static final java.lang.String COPYRIGHT
public static java.lang.String getCampaignName(java.lang.String emailPromoId)
throws java.lang.Exception
emailPromoId - The email activity id of the Email Activityjava.lang.Exceptionpublic static java.lang.String getCampaignParameterValues(java.lang.String emailPromotionId,
java.lang.String linkName)
throws java.lang.Exception
emailPromotionId - The email Activity IdlinkName - The name of the link which will be appended as the last attribute for cm_cr parameterjava.lang.Exceptionpublic static java.lang.String getCampaignParameterValues(java.lang.String emailPromotionId,
java.lang.String linkName,
boolean includeOS)
throws java.lang.Exception
emailPromotionId - The email Activity IdlinkName - The name of the link which will be appended as the last attribute for cm_cr parameterincludeOS - A boolean flag to check whether the 'OS:' parameter needs to be passed with
the cm_cr parameterjava.lang.Exceptionpublic static java.lang.String getClientId(java.lang.Integer storeId)
clientId for the store specified by the storeIdstoreId - The storeId of the store for which the clientId is requiredclientIdpublic static java.util.Vector getDisplayTypes(java.lang.String tagName)
tagName - - Name of the tag, for which display types is neededpublic static java.lang.Integer getEmailMsgId(java.lang.String emailPromotionId)
throws java.lang.Exception
emailPromotionId - The email activity id of the Email Activityjava.lang.Exceptionpublic static java.lang.String getEmailPromoName(java.lang.String emailPromotionId)
throws java.lang.Exception
emailPromotionId - The email activity id of the Email Activityjava.lang.Exceptionpublic static java.lang.String getEmailTemplateName(java.lang.Integer messageId)
throws java.lang.Exception
messageId - The email activity id of the Email Activityjava.lang.Exceptionpublic static java.lang.String getEmailTemplateName(java.lang.String emailPromotionId)
emailPromotionId - The email activity id of the Email Activitypublic static java.lang.String[] getImageRequestURLForEMSpot(java.lang.String emailPromoId,
java.lang.String emsName,
com.ibm.commerce.command.CommandContext commandContext)
throws java.lang.Exception
emailPromoId - The email activity IdemsName - The EMSpot namecommandContext - The commandContextjava.lang.Exceptionpublic static java.lang.String[] getImageRequestURLForEMSpot(java.lang.String emailPromoId,
java.lang.String emsName,
com.ibm.commerce.command.CommandContext commandContext,
java.lang.String catalogId)
throws java.lang.Exception
emailPromoId - The email activity IdemsName - The EMSpot namecommandContext - The commandContextcatalogId - The catalog identifierjava.lang.Exceptionpublic static java.lang.String getImageRequestURLForLink(java.lang.String emailPromoId,
java.lang.String linkName,
com.ibm.commerce.command.CommandContext commandContext)
throws java.lang.Exception
emailPromoId - The email activity IdlinkName - The link namecommandContext - The command contextjava.lang.Exceptionpublic static java.util.ArrayList getLinkNamesForEMSpot(java.lang.String emsName,
com.ibm.commerce.command.CommandContext commandContent)
throws java.lang.Exception
emsName - The name of the emarketing spotcommandContent - The command contextjava.lang.Exceptionpublic static java.util.ArrayList getLinkNamesForEMSpot(java.lang.String emsName,
com.ibm.commerce.command.CommandContext commandContent,
java.lang.String catalogId)
throws java.lang.Exception
emsName - The name of the emarketing spotcommandContent - The command contextcatalogId - The catalog identifierjava.lang.Exceptionpublic static java.lang.String getMarketingParameterValues(java.lang.String emailPromotionId,
java.lang.String linkName)
throws java.lang.Exception
emailPromotionId - The email Activity IdlinkName - The name of the link which will be appended as the last attribute for cm_cr parameterjava.lang.Exceptionpublic static java.lang.String[] getTemplateViewByStoreType()