@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()
ContentTargetingAction
getId
in interface ContentTargetingAction
public void setId(Long id)
ContentTargetingAction
setId
in interface ContentTargetingAction
id
- the new primary keypublic ContentTargetingActionType getContentTargetingActionType()
ContentTargetingAction
getContentTargetingActionType
in interface ContentTargetingAction
ContentTargetingActionType
public void setContentTargetingActionType(ContentTargetingActionType targetingActionType)
ContentTargetingAction
setContentTargetingActionType
in interface ContentTargetingAction
public ContentZone getContentZone()
ContentTargetingAction
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE
getContentZone
in interface ContentTargetingAction
public void setContentZone(ContentZone contentZone)
ContentTargetingAction
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE
setContentZone
in interface ContentTargetingAction
public ContentItem getNewContentItem()
ContentTargetingAction
ContentTargetingAction.getContentZone()
For action types of ContentTargetingActionType.CHANGE_ITEM_IN_ZONE
getNewContentItem
in interface ContentTargetingAction
public void setNewContentItem(ContentItem newContentItem)
ContentTargetingAction
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE
setNewContentItem
in interface ContentTargetingAction
public org.broadleafcommerce.cms.page.domain.Page getPage()
ContentTargetingAction
Page
that we want to effect with this content targeter.
For action types of ContentTargetingActionType.CHANGE_PAGE
and
ContentTargetingActionType.CHANGE_PAGE_VARIABLE
getPage
in interface ContentTargetingAction
public void setPage(org.broadleafcommerce.cms.page.domain.Page page)
ContentTargetingAction
Page
you want to effect with this content targeter.
For action types of ContentTargetingActionType.CHANGE_PAGE
and
ContentTargetingActionType.CHANGE_PAGE_VARIABLE
setPage
in interface ContentTargetingAction
public org.broadleafcommerce.cms.page.domain.Page getNewPage()
ContentTargetingAction
Page
that should be displayed in place of ContentTargetingAction.getPage()
when using the action types of ContentTargetingActionType.CHANGE_PAGE
.getNewPage
in interface ContentTargetingAction
public void setNewPage(org.broadleafcommerce.cms.page.domain.Page newPage)
ContentTargetingAction
Page
that should be displayed in place of ContentTargetingAction.getPage()
when using the action types of ContentTargetingActionType.CHANGE_PAGE
.setNewPage
in interface ContentTargetingAction
public String getFieldKey()
ContentTargetingAction
ContentTestActionType#CHANGE_PAGE_VARIABLE
, returns
the key of field being changed.getFieldKey
in interface ContentTargetingAction
public void setFieldKey(String fieldKey)
ContentTargetingAction
ContentTestActionType#CHANGE_PAGE_VARIABLE
, sets
the key of the field being changed.setFieldKey
in interface ContentTargetingAction
public String getNewFieldValue()
ContentTargetingAction
ContentTestActionType#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 ContentTargetingAction
public void setNewFieldValue(String newFieldValue)
ContentTargetingAction
ContentTestActionType#CHANGE_PAGE_VARIABLE
, sets
the new value for the field associated with ContentTargetingAction.getFieldKey()
setNewFieldValue
in interface ContentTargetingAction
public com.broadleafcommerce.theme.domain.ThemeFile getThemeFile()
ContentTargetingAction
ThemeFile
that we want to effect with this
content targeter.
For action types of ContentTargetingActionType.CHANGE_TEMPLATE
getThemeFile
in interface ContentTargetingAction
public void setThemeFile(com.broadleafcommerce.theme.domain.ThemeFile themeFile)
ContentTargetingAction
ThemeFile
you want to effect with this content targeter.
For action types of ContentTargetingActionType.CHANGE_TEMPLATE
setThemeFile
in interface ContentTargetingAction
public com.broadleafcommerce.theme.domain.ThemeFile getNewThemeFile()
ContentTargetingAction
ThemeFile
that should be displayed in place of ContentTargetingAction.getThemeFile()
when using the action types of ContentTargetingActionType.CHANGE_TEMPLATE
.getNewThemeFile
in interface ContentTargetingAction
public void setNewThemeFile(com.broadleafcommerce.theme.domain.ThemeFile newThemeFile)
ContentTargetingAction
ThemeFile
that should be displayed in place of ContentTargetingAction.getThemeFile()
when using the action types of ContentTargetingActionType.CHANGE_TEMPLATE
.setNewThemeFile
in interface ContentTargetingAction
public com.broadleafcommerce.theme.domain.ThemeConfiguration getNewTheme()
ContentTargetingAction
ThemeConfiguration
that should be displayed
when using the action types of ContentTargetingActionType.CHANGE_THEME
.getNewTheme
in interface ContentTargetingAction
public void setNewTheme(com.broadleafcommerce.theme.domain.ThemeConfiguration newTheme)
ContentTargetingAction
ThemeConfiguration
that should be displayed
when using the action types of ContentTargetingActionType.CHANGE_THEME
.setNewTheme
in interface ContentTargetingAction
public EmailTemplate getEmailTemplate()
getEmailTemplate
in interface ContentTargetingAction
public void setEmailTemplate(EmailTemplate emailTemplate)
setEmailTemplate
in interface ContentTargetingAction
public EmailTemplate getNewEmailTemplate()
getNewEmailTemplate
in interface ContentTargetingAction
public void setNewEmailTemplate(EmailTemplate newEmailTemplate)
setNewEmailTemplate
in interface ContentTargetingAction
public SMSTemplate getSmsTemplate()
getSmsTemplate
in interface ContentTargetingAction
public void setSmsTemplate(SMSTemplate smsTemplate)
setSmsTemplate
in interface ContentTargetingAction
public SMSTemplate getNewSmsTemplate()
getNewSmsTemplate
in interface ContentTargetingAction
public void setNewSmsTemplate(SMSTemplate newSmsTemplate)
setNewSmsTemplate
in interface ContentTargetingAction
public <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>
CloneNotSupportedException
Copyright © 2020. All rights reserved.