public interface ContentTargetingAction extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentTargetingAction>
ContentTargeter,
ContentTargetingActionType| Modifier and Type | Method and Description |
|---|---|
ContentTargetingActionType |
getContentTargetingActionType()
Returns the targeting action type.
|
ContentZone |
getContentZone()
Returns the associated zone.
|
EmailTemplate |
getEmailTemplate() |
String |
getFieldKey()
For action with a type of
ContentTestActionType#CHANGE_PAGE_VARIABLE, returns
the key of field being changed. |
Long |
getId()
Gets the primary key.
|
ContentItem |
getNewContentItem()
Returns the replacement content item for the zone
getContentZone()
For action types of ContentTargetingActionType.CHANGE_ITEM_IN_ZONE |
EmailTemplate |
getNewEmailTemplate() |
String |
getNewFieldValue()
For action with a type of
ContentTestActionType#CHANGE_PAGE_VARIABLE, returns
the replacement value of field associated with getFieldKey(). |
org.broadleafcommerce.cms.page.domain.Page |
getNewPage()
Returns the replacement
Page that should be displayed in place of getPage()
when using the action types of ContentTargetingActionType.CHANGE_PAGE. |
SMSTemplate |
getNewSmsTemplate() |
com.broadleafcommerce.theme.domain.ThemeConfiguration |
getNewTheme()
Returns the replacement
ThemeConfiguration that should be displayed
when using the action types of ContentTargetingActionType.CHANGE_THEME. |
com.broadleafcommerce.theme.domain.ThemeFile |
getNewThemeFile()
Returns the replacement
ThemeFile that should be displayed in place of getThemeFile()
when using the action types of ContentTargetingActionType.CHANGE_TEMPLATE. |
org.broadleafcommerce.cms.page.domain.Page |
getPage()
Returns the
Page that we want to effect with this content targeter. |
SMSTemplate |
getSmsTemplate() |
com.broadleafcommerce.theme.domain.ThemeFile |
getThemeFile()
Returns the template
ThemeFile that we want to effect with this
content targeter. |
void |
setContentTargetingActionType(ContentTargetingActionType actionType)
Sets the targeting action type.
|
void |
setContentZone(ContentZone zone)
Sets the zone associated with this targeting action.
|
void |
setEmailTemplate(EmailTemplate emailTemplate) |
void |
setFieldKey(String fieldKey)
For action with a type of
ContentTestActionType#CHANGE_PAGE_VARIABLE, sets
the key of the field being changed. |
void |
setId(Long id)
Sets the primary key.
|
void |
setNewContentItem(ContentItem contentItem)
Sets the content item that you want to be served in the content zone
when using an action types of
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE |
void |
setNewEmailTemplate(EmailTemplate newEmailTemplate) |
void |
setNewFieldValue(String newFieldValue)
For action with a type of
ContentTestActionType#CHANGE_PAGE_VARIABLE, sets
the new value for the field associated with getFieldKey() |
void |
setNewPage(org.broadleafcommerce.cms.page.domain.Page newPage)
Sets the replacement
Page that should be displayed in place of getPage()
when using the action types of ContentTargetingActionType.CHANGE_PAGE. |
void |
setNewSmsTemplate(SMSTemplate newSmsTemplate) |
void |
setNewTheme(com.broadleafcommerce.theme.domain.ThemeConfiguration theme)
Sets the replacement
ThemeConfiguration that should be displayed
when using the action types of ContentTargetingActionType.CHANGE_THEME. |
void |
setNewThemeFile(com.broadleafcommerce.theme.domain.ThemeFile newThemeFile)
Sets the replacement
ThemeFile that should be displayed in place of getThemeFile()
when using the action types of ContentTargetingActionType.CHANGE_TEMPLATE. |
void |
setPage(org.broadleafcommerce.cms.page.domain.Page page)
Sets the
Page you want to effect with this content targeter. |
void |
setSmsTemplate(SMSTemplate smsTemplate) |
void |
setThemeFile(com.broadleafcommerce.theme.domain.ThemeFile themeFile)
Sets the template
ThemeFile you want to effect with this content targeter. |
ContentTargetingActionType getContentTargetingActionType()
ContentTargetingActionTypevoid setContentTargetingActionType(ContentTargetingActionType actionType)
actionType - ContentZone getContentZone()
ContentTargetingActionType.CHANGE_ITEM_IN_ZONEvoid setContentZone(ContentZone zone)
ContentTargetingActionType.CHANGE_ITEM_IN_ZONEzone - ContentItem getNewContentItem()
getContentZone()
For action types of ContentTargetingActionType.CHANGE_ITEM_IN_ZONEvoid setNewContentItem(ContentItem contentItem)
ContentTargetingActionType.CHANGE_ITEM_IN_ZONEcontentItem - org.broadleafcommerce.cms.page.domain.Page getPage()
Page that we want to effect with this content targeter.
For action types of ContentTargetingActionType.CHANGE_PAGE and
ContentTargetingActionType.CHANGE_PAGE_VARIABLEvoid setPage(org.broadleafcommerce.cms.page.domain.Page page)
Page you want to effect with this content targeter.
For action types of ContentTargetingActionType.CHANGE_PAGE and
ContentTargetingActionType.CHANGE_PAGE_VARIABLEpage - org.broadleafcommerce.cms.page.domain.Page getNewPage()
Page that should be displayed in place of getPage()
when using the action types of ContentTargetingActionType.CHANGE_PAGE.void setNewPage(org.broadleafcommerce.cms.page.domain.Page newPage)
Page that should be displayed in place of getPage()
when using the action types of ContentTargetingActionType.CHANGE_PAGE.newPage - String getFieldKey()
ContentTestActionType#CHANGE_PAGE_VARIABLE, returns
the key of field being changed.void setFieldKey(String fieldKey)
ContentTestActionType#CHANGE_PAGE_VARIABLE, sets
the key of the field being changed.fieldKey - String getNewFieldValue()
ContentTestActionType#CHANGE_PAGE_VARIABLE, returns
the replacement value of field associated with getFieldKey(). For example,
a page might have a field named "body" which this targeter replaces.void setNewFieldValue(String newFieldValue)
ContentTestActionType#CHANGE_PAGE_VARIABLE, sets
the new value for the field associated with getFieldKey()newFieldValue - com.broadleafcommerce.theme.domain.ThemeFile getThemeFile()
ThemeFile that we want to effect with this
content targeter.
For action types of ContentTargetingActionType.CHANGE_TEMPLATEvoid setThemeFile(com.broadleafcommerce.theme.domain.ThemeFile themeFile)
ThemeFile you want to effect with this content targeter.
For action types of ContentTargetingActionType.CHANGE_TEMPLATEthemeFile - com.broadleafcommerce.theme.domain.ThemeFile getNewThemeFile()
ThemeFile that should be displayed in place of getThemeFile()
when using the action types of ContentTargetingActionType.CHANGE_TEMPLATE.void setNewThemeFile(com.broadleafcommerce.theme.domain.ThemeFile newThemeFile)
ThemeFile that should be displayed in place of getThemeFile()
when using the action types of ContentTargetingActionType.CHANGE_TEMPLATE.newThemeFile - com.broadleafcommerce.theme.domain.ThemeConfiguration getNewTheme()
ThemeConfiguration that should be displayed
when using the action types of ContentTargetingActionType.CHANGE_THEME.void setNewTheme(com.broadleafcommerce.theme.domain.ThemeConfiguration theme)
ThemeConfiguration that should be displayed
when using the action types of ContentTargetingActionType.CHANGE_THEME.newThemeFile - EmailTemplate getEmailTemplate()
void setEmailTemplate(EmailTemplate emailTemplate)
EmailTemplate getNewEmailTemplate()
void setNewEmailTemplate(EmailTemplate newEmailTemplate)
SMSTemplate getSmsTemplate()
void setSmsTemplate(SMSTemplate smsTemplate)
SMSTemplate getNewSmsTemplate()
void setNewSmsTemplate(SMSTemplate newSmsTemplate)
Copyright © 2020. All rights reserved.