@Entity public class ContentTargetingActionImpl extends Object implements ContentTargetingAction, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity
| Modifier and Type | Field and Description |
|---|---|
protected ContentZone |
contentZone |
static String |
CT_ACTION_DONT_DUPLICATE_FKS_HINT |
protected EmailTemplate |
emailTemplate |
protected String |
fieldKey |
protected Long |
id |
protected ContentItem |
newContentItem |
protected EmailTemplate |
newEmailTemplate |
protected String |
newFieldValue |
protected org.broadleafcommerce.cms.page.domain.Page |
newPage |
protected SMSTemplate |
newSmsTemplate |
protected com.broadleafcommerce.theme.domain.ThemeConfiguration |
newTheme |
protected com.broadleafcommerce.theme.domain.ThemeFile |
newThemeFile |
protected org.broadleafcommerce.cms.page.domain.Page |
page |
protected SMSTemplate |
smsTemplate |
protected String |
targetingActionType |
protected com.broadleafcommerce.theme.domain.ThemeFile |
themeFile |
| Constructor and Description |
|---|
ContentTargetingActionImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends ContentTargetingAction> |
createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) |
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
ContentTargetingAction.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 ContentTargetingAction.getFieldKey(). |
org.broadleafcommerce.cms.page.domain.Page |
getNewPage()
Returns the replacement
Page that should be displayed in place of ContentTargetingAction.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 ContentTargetingAction.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 targetingActionType)
Sets the targeting action type.
|
void |
setContentZone(ContentZone contentZone)
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 newContentItem)
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 ContentTargetingAction.getFieldKey() |
void |
setNewPage(org.broadleafcommerce.cms.page.domain.Page newPage)
Sets the replacement
Page that should be displayed in place of ContentTargetingAction.getPage()
when using the action types of ContentTargetingActionType.CHANGE_PAGE. |
void |
setNewSmsTemplate(SMSTemplate newSmsTemplate) |
void |
setNewTheme(com.broadleafcommerce.theme.domain.ThemeConfiguration newTheme)
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 ContentTargetingAction.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. |
public static final String CT_ACTION_DONT_DUPLICATE_FKS_HINT
protected Long id
protected String targetingActionType
protected ContentZone contentZone
protected ContentItem newContentItem
protected org.broadleafcommerce.cms.page.domain.Page page
protected org.broadleafcommerce.cms.page.domain.Page newPage
protected String fieldKey
protected String newFieldValue
protected com.broadleafcommerce.theme.domain.ThemeFile themeFile
protected com.broadleafcommerce.theme.domain.ThemeFile newThemeFile
protected com.broadleafcommerce.theme.domain.ThemeConfiguration newTheme
protected EmailTemplate emailTemplate
protected EmailTemplate newEmailTemplate
protected SMSTemplate smsTemplate
protected SMSTemplate newSmsTemplate
public Long getId()
ContentTargetingActiongetId in interface ContentTargetingActionpublic void setId(Long id)
ContentTargetingActionsetId in interface ContentTargetingActionid - the new primary keypublic ContentTargetingActionType getContentTargetingActionType()
ContentTargetingActiongetContentTargetingActionType in interface ContentTargetingActionContentTargetingActionTypepublic void setContentTargetingActionType(ContentTargetingActionType targetingActionType)
ContentTargetingActionsetContentTargetingActionType in interface ContentTargetingActionpublic ContentZone getContentZone()
ContentTargetingActionContentTargetingActionType.CHANGE_ITEM_IN_ZONEgetContentZone in interface ContentTargetingActionpublic void setContentZone(ContentZone contentZone)
ContentTargetingActionContentTargetingActionType.CHANGE_ITEM_IN_ZONEsetContentZone in interface ContentTargetingActionpublic ContentItem getNewContentItem()
ContentTargetingActionContentTargetingAction.getContentZone()
For action types of ContentTargetingActionType.CHANGE_ITEM_IN_ZONEgetNewContentItem in interface ContentTargetingActionpublic void setNewContentItem(ContentItem newContentItem)
ContentTargetingActionContentTargetingActionType.CHANGE_ITEM_IN_ZONEsetNewContentItem in interface ContentTargetingActionpublic org.broadleafcommerce.cms.page.domain.Page getPage()
ContentTargetingActionPage that we want to effect with this content targeter.
For action types of ContentTargetingActionType.CHANGE_PAGE and
ContentTargetingActionType.CHANGE_PAGE_VARIABLEgetPage in interface ContentTargetingActionpublic void setPage(org.broadleafcommerce.cms.page.domain.Page page)
ContentTargetingActionPage you want to effect with this content targeter.
For action types of ContentTargetingActionType.CHANGE_PAGE and
ContentTargetingActionType.CHANGE_PAGE_VARIABLEsetPage in interface ContentTargetingActionpublic org.broadleafcommerce.cms.page.domain.Page getNewPage()
ContentTargetingActionPage that should be displayed in place of ContentTargetingAction.getPage()
when using the action types of ContentTargetingActionType.CHANGE_PAGE.getNewPage in interface ContentTargetingActionpublic void setNewPage(org.broadleafcommerce.cms.page.domain.Page newPage)
ContentTargetingActionPage that should be displayed in place of ContentTargetingAction.getPage()
when using the action types of ContentTargetingActionType.CHANGE_PAGE.setNewPage in interface ContentTargetingActionpublic String getFieldKey()
ContentTargetingActionContentTestActionType#CHANGE_PAGE_VARIABLE, returns
the key of field being changed.getFieldKey in interface ContentTargetingActionpublic void setFieldKey(String fieldKey)
ContentTargetingActionContentTestActionType#CHANGE_PAGE_VARIABLE, sets
the key of the field being changed.setFieldKey in interface ContentTargetingActionpublic String getNewFieldValue()
ContentTargetingActionContentTestActionType#CHANGE_PAGE_VARIABLE, returns
the replacement value of field associated with ContentTargetingAction.getFieldKey(). For example,
a page might have a field named "body" which this targeter replaces.getNewFieldValue in interface ContentTargetingActionpublic void setNewFieldValue(String newFieldValue)
ContentTargetingActionContentTestActionType#CHANGE_PAGE_VARIABLE, sets
the new value for the field associated with ContentTargetingAction.getFieldKey()setNewFieldValue in interface ContentTargetingActionpublic com.broadleafcommerce.theme.domain.ThemeFile getThemeFile()
ContentTargetingActionThemeFile that we want to effect with this
content targeter.
For action types of ContentTargetingActionType.CHANGE_TEMPLATEgetThemeFile in interface ContentTargetingActionpublic void setThemeFile(com.broadleafcommerce.theme.domain.ThemeFile themeFile)
ContentTargetingActionThemeFile you want to effect with this content targeter.
For action types of ContentTargetingActionType.CHANGE_TEMPLATEsetThemeFile in interface ContentTargetingActionpublic com.broadleafcommerce.theme.domain.ThemeFile getNewThemeFile()
ContentTargetingActionThemeFile that should be displayed in place of ContentTargetingAction.getThemeFile()
when using the action types of ContentTargetingActionType.CHANGE_TEMPLATE.getNewThemeFile in interface ContentTargetingActionpublic void setNewThemeFile(com.broadleafcommerce.theme.domain.ThemeFile newThemeFile)
ContentTargetingActionThemeFile that should be displayed in place of ContentTargetingAction.getThemeFile()
when using the action types of ContentTargetingActionType.CHANGE_TEMPLATE.setNewThemeFile in interface ContentTargetingActionpublic com.broadleafcommerce.theme.domain.ThemeConfiguration getNewTheme()
ContentTargetingActionThemeConfiguration that should be displayed
when using the action types of ContentTargetingActionType.CHANGE_THEME.getNewTheme in interface ContentTargetingActionpublic void setNewTheme(com.broadleafcommerce.theme.domain.ThemeConfiguration newTheme)
ContentTargetingActionThemeConfiguration that should be displayed
when using the action types of ContentTargetingActionType.CHANGE_THEME.setNewTheme in interface ContentTargetingActionpublic EmailTemplate getEmailTemplate()
getEmailTemplate in interface ContentTargetingActionpublic void setEmailTemplate(EmailTemplate emailTemplate)
setEmailTemplate in interface ContentTargetingActionpublic EmailTemplate getNewEmailTemplate()
getNewEmailTemplate in interface ContentTargetingActionpublic void setNewEmailTemplate(EmailTemplate newEmailTemplate)
setNewEmailTemplate in interface ContentTargetingActionpublic SMSTemplate getSmsTemplate()
getSmsTemplate in interface ContentTargetingActionpublic void setSmsTemplate(SMSTemplate smsTemplate)
setSmsTemplate in interface ContentTargetingActionpublic SMSTemplate getNewSmsTemplate()
getNewSmsTemplate in interface ContentTargetingActionpublic void setNewSmsTemplate(SMSTemplate newSmsTemplate)
setNewSmsTemplate in interface ContentTargetingActionpublic <G extends ContentTargetingAction> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentTargetingAction>CloneNotSupportedExceptionCopyright © 2020. All rights reserved.