Interface ContentTargetingAction
- All Superinterfaces:
org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentTargetingAction>,Serializable
- All Known Implementing Classes:
ContentTargetingActionImpl
public interface ContentTargetingAction
extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentTargetingAction>
Actions to take if a content targeter is valid.
- Author:
- bpolster
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the targeting action type.Returns the associated zone.For action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, returns the key of field being changed.getId()Gets the primary key.Returns the replacement content item for the zonegetContentZone()For action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, returns the replacement value of field associated withgetFieldKey().org.broadleafcommerce.cms.page.domain.PageReturns the replacementPagethat should be displayed in place ofgetPage()when using the action types ofContentTargetingActionType.CHANGE_PAGE.com.broadleafcommerce.theme.domain.ThemeConfigurationReturns the replacementThemeConfigurationthat should be displayed when using the action types ofContentTargetingActionType.CHANGE_THEME.com.broadleafcommerce.theme.domain.ThemeFileReturns the replacementThemeFilethat should be displayed in place ofgetThemeFile()when using the action types ofContentTargetingActionType.CHANGE_TEMPLATE.org.broadleafcommerce.cms.page.domain.PagegetPage()Returns thePagethat we want to effect with this content targeter.com.broadleafcommerce.theme.domain.ThemeFileReturns the templateThemeFilethat we want to effect with this content targeter.voidSets the targeting action type.voidsetContentZone(ContentZone zone) Sets the zone associated with this targeting action.voidsetEmailTemplate(EmailTemplate emailTemplate) voidsetFieldKey(String fieldKey) For action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, sets the key of the field being changed.voidSets the primary key.voidsetNewContentItem(ContentItem contentItem) Sets the content item that you want to be served in the content zone when using an action types ofContentTargetingActionType.CHANGE_ITEM_IN_ZONEvoidsetNewEmailTemplate(EmailTemplate newEmailTemplate) voidsetNewFieldValue(String newFieldValue) For action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, sets the new value for the field associated withgetFieldKey()voidsetNewPage(org.broadleafcommerce.cms.page.domain.Page newPage) Sets the replacementPagethat should be displayed in place ofgetPage()when using the action types ofContentTargetingActionType.CHANGE_PAGE.voidsetNewSmsTemplate(SMSTemplate newSmsTemplate) voidsetNewTheme(com.broadleafcommerce.theme.domain.ThemeConfiguration theme) Sets the replacementThemeConfigurationthat should be displayed when using the action types ofContentTargetingActionType.CHANGE_THEME.voidsetNewThemeFile(com.broadleafcommerce.theme.domain.ThemeFile newThemeFile) Sets the replacementThemeFilethat should be displayed in place ofgetThemeFile()when using the action types ofContentTargetingActionType.CHANGE_TEMPLATE.voidsetPage(org.broadleafcommerce.cms.page.domain.Page page) Sets thePageyou want to effect with this content targeter.voidsetSmsTemplate(SMSTemplate smsTemplate) voidsetThemeFile(com.broadleafcommerce.theme.domain.ThemeFile themeFile) Sets the templateThemeFileyou want to effect with this content targeter.Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Gets the primary key.- Returns:
- the primary key
-
setId
Sets the primary key.- Parameters:
id- the new primary key
-
getContentTargetingActionType
ContentTargetingActionType getContentTargetingActionType()Returns the targeting action type.- Returns:
- See Also:
-
setContentTargetingActionType
Sets the targeting action type.- Parameters:
actionType-
-
getContentZone
ContentZone getContentZone()Returns the associated zone.For action types of
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE- Returns:
-
setContentZone
Sets the zone associated with this targeting action.For action types of
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE- Parameters:
zone-
-
getNewContentItem
ContentItem getNewContentItem()Returns the replacement content item for the zonegetContentZone()For action types of
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE- Returns:
-
setNewContentItem
Sets the content item that you want to be served in the content zone when using an action types ofContentTargetingActionType.CHANGE_ITEM_IN_ZONE- Parameters:
contentItem-
-
getPage
org.broadleafcommerce.cms.page.domain.Page getPage()Returns thePagethat we want to effect with this content targeter.For action types of
ContentTargetingActionType.CHANGE_PAGEandContentTargetingActionType.CHANGE_PAGE_VARIABLE- Returns:
-
setPage
void setPage(org.broadleafcommerce.cms.page.domain.Page page) Sets thePageyou want to effect with this content targeter.For action types of
ContentTargetingActionType.CHANGE_PAGEandContentTargetingActionType.CHANGE_PAGE_VARIABLE- Parameters:
page-
-
getNewPage
org.broadleafcommerce.cms.page.domain.Page getNewPage()Returns the replacementPagethat should be displayed in place ofgetPage()when using the action types ofContentTargetingActionType.CHANGE_PAGE.- Returns:
-
setNewPage
void setNewPage(org.broadleafcommerce.cms.page.domain.Page newPage) Sets the replacementPagethat should be displayed in place ofgetPage()when using the action types ofContentTargetingActionType.CHANGE_PAGE.- Parameters:
newPage-
-
getFieldKey
String getFieldKey()For action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, returns the key of field being changed.- Returns:
-
setFieldKey
For action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, sets the key of the field being changed.- Parameters:
fieldKey-
-
getNewFieldValue
String getNewFieldValue()For action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, returns the replacement value of field associated withgetFieldKey(). For example, a page might have a field named "body" which this targeter replaces.- Returns:
-
setNewFieldValue
For action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, sets the new value for the field associated withgetFieldKey()- Parameters:
newFieldValue-
-
getThemeFile
com.broadleafcommerce.theme.domain.ThemeFile getThemeFile()Returns the templateThemeFilethat we want to effect with this content targeter.For action types of
ContentTargetingActionType.CHANGE_TEMPLATE- Returns:
-
setThemeFile
void setThemeFile(com.broadleafcommerce.theme.domain.ThemeFile themeFile) Sets the templateThemeFileyou want to effect with this content targeter.For action types of
ContentTargetingActionType.CHANGE_TEMPLATE- Parameters:
themeFile-
-
getNewThemeFile
com.broadleafcommerce.theme.domain.ThemeFile getNewThemeFile()Returns the replacementThemeFilethat should be displayed in place ofgetThemeFile()when using the action types ofContentTargetingActionType.CHANGE_TEMPLATE.- Returns:
-
setNewThemeFile
void setNewThemeFile(com.broadleafcommerce.theme.domain.ThemeFile newThemeFile) Sets the replacementThemeFilethat should be displayed in place ofgetThemeFile()when using the action types ofContentTargetingActionType.CHANGE_TEMPLATE.- Parameters:
newThemeFile-
-
getNewTheme
com.broadleafcommerce.theme.domain.ThemeConfiguration getNewTheme()Returns the replacementThemeConfigurationthat should be displayed when using the action types ofContentTargetingActionType.CHANGE_THEME.- Returns:
-
setNewTheme
void setNewTheme(com.broadleafcommerce.theme.domain.ThemeConfiguration theme) Sets the replacementThemeConfigurationthat should be displayed when using the action types ofContentTargetingActionType.CHANGE_THEME.- Parameters:
theme-
-
getEmailTemplate
EmailTemplate getEmailTemplate() -
setEmailTemplate
-
getNewEmailTemplate
EmailTemplate getNewEmailTemplate() -
setNewEmailTemplate
-
getSmsTemplate
SMSTemplate getSmsTemplate() -
setSmsTemplate
-
getNewSmsTemplate
SMSTemplate getNewSmsTemplate() -
setNewSmsTemplate
-