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.
|
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 |
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 . |
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. |
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 |
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 |
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 |
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 |
setThemeFile(com.broadleafcommerce.theme.domain.ThemeFile themeFile)
Sets the template
ThemeFile you want to effect with this content targeter. |
ContentTargetingActionType getContentTargetingActionType()
ContentTargetingActionType
void setContentTargetingActionType(ContentTargetingActionType actionType)
actionType
- ContentZone getContentZone()
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE
void setContentZone(ContentZone zone)
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE
zone
- ContentItem getNewContentItem()
getContentZone()
For action types of ContentTargetingActionType.CHANGE_ITEM_IN_ZONE
void setNewContentItem(ContentItem contentItem)
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE
contentItem
- 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_VARIABLE
void 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_VARIABLE
page
- 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_TEMPLATE
void setThemeFile(com.broadleafcommerce.theme.domain.ThemeFile themeFile)
ThemeFile
you want to effect with this content targeter.
For action types of ContentTargetingActionType.CHANGE_TEMPLATE
themeFile
- 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
- Copyright © 2020. All rights reserved.