Class ContentTargetingActionImpl
java.lang.Object
com.broadleafcommerce.advancedcms.domain.targeting.ContentTargetingActionImpl
- All Implemented Interfaces:
ContentTargetingAction,Serializable,org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentTargetingAction>,org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity
@Entity
public class ContentTargetingActionImpl
extends Object
implements ContentTargetingAction, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity
Created by bpolster.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentZonestatic final Stringprotected EmailTemplateprotected Stringprotected Longprotected ContentItemprotected EmailTemplateprotected Stringprotected org.broadleafcommerce.cms.page.domain.Pageprotected SMSTemplateprotected com.broadleafcommerce.theme.domain.ThemeConfigurationprotected com.broadleafcommerce.theme.domain.ThemeFileprotected org.broadleafcommerce.cms.page.domain.Pageprotected SMSTemplateprotected Stringprotected com.broadleafcommerce.theme.domain.ThemeFile -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends ContentTargetingAction>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) Returns 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 zoneContentTargetingAction.getContentZone()For action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, returns the replacement value of field associated withContentTargetingAction.getFieldKey().org.broadleafcommerce.cms.page.domain.PageReturns the replacementPagethat should be displayed in place ofContentTargetingAction.getPage()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 ofContentTargetingAction.getThemeFile()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.voidsetContentTargetingActionType(ContentTargetingActionType targetingActionType) Sets the targeting action type.voidsetContentZone(ContentZone contentZone) 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 newContentItem) 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 withContentTargetingAction.getFieldKey()voidsetNewPage(org.broadleafcommerce.cms.page.domain.Page newPage) Sets the replacementPagethat should be displayed in place ofContentTargetingAction.getPage()when using the action types ofContentTargetingActionType.CHANGE_PAGE.voidsetNewSmsTemplate(SMSTemplate newSmsTemplate) voidsetNewTheme(com.broadleafcommerce.theme.domain.ThemeConfiguration newTheme) 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 ofContentTargetingAction.getThemeFile()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.
-
Field Details
-
CT_ACTION_DONT_DUPLICATE_FKS_HINT
- See Also:
-
id
-
targetingActionType
-
contentZone
-
newContentItem
-
page
protected org.broadleafcommerce.cms.page.domain.Page page -
newPage
protected org.broadleafcommerce.cms.page.domain.Page newPage -
fieldKey
-
newFieldValue
-
themeFile
protected com.broadleafcommerce.theme.domain.ThemeFile themeFile -
newThemeFile
protected com.broadleafcommerce.theme.domain.ThemeFile newThemeFile -
newTheme
protected com.broadleafcommerce.theme.domain.ThemeConfiguration newTheme -
emailTemplate
-
newEmailTemplate
-
smsTemplate
-
newSmsTemplate
-
-
Constructor Details
-
ContentTargetingActionImpl
public ContentTargetingActionImpl()
-
-
Method Details
-
getId
Description copied from interface:ContentTargetingActionGets the primary key.- Specified by:
getIdin interfaceContentTargetingAction- Returns:
- the primary key
-
setId
Description copied from interface:ContentTargetingActionSets the primary key.- Specified by:
setIdin interfaceContentTargetingAction- Parameters:
id- the new primary key
-
getContentTargetingActionType
Description copied from interface:ContentTargetingActionReturns the targeting action type.- Specified by:
getContentTargetingActionTypein interfaceContentTargetingAction- Returns:
- See Also:
-
setContentTargetingActionType
Description copied from interface:ContentTargetingActionSets the targeting action type.- Specified by:
setContentTargetingActionTypein interfaceContentTargetingAction
-
getContentZone
Description copied from interface:ContentTargetingActionReturns the associated zone.For action types of
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE- Specified by:
getContentZonein interfaceContentTargetingAction- Returns:
-
setContentZone
Description copied from interface:ContentTargetingActionSets the zone associated with this targeting action.For action types of
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE- Specified by:
setContentZonein interfaceContentTargetingAction
-
getNewContentItem
Description copied from interface:ContentTargetingActionReturns the replacement content item for the zoneContentTargetingAction.getContentZone()For action types of
ContentTargetingActionType.CHANGE_ITEM_IN_ZONE- Specified by:
getNewContentItemin interfaceContentTargetingAction- Returns:
-
setNewContentItem
Description copied from interface:ContentTargetingActionSets the content item that you want to be served in the content zone when using an action types ofContentTargetingActionType.CHANGE_ITEM_IN_ZONE- Specified by:
setNewContentItemin interfaceContentTargetingAction
-
getPage
public org.broadleafcommerce.cms.page.domain.Page getPage()Description copied from interface:ContentTargetingActionReturns thePagethat we want to effect with this content targeter.For action types of
ContentTargetingActionType.CHANGE_PAGEandContentTargetingActionType.CHANGE_PAGE_VARIABLE- Specified by:
getPagein interfaceContentTargetingAction- Returns:
-
setPage
public void setPage(org.broadleafcommerce.cms.page.domain.Page page) Description copied from interface:ContentTargetingActionSets thePageyou want to effect with this content targeter.For action types of
ContentTargetingActionType.CHANGE_PAGEandContentTargetingActionType.CHANGE_PAGE_VARIABLE- Specified by:
setPagein interfaceContentTargetingAction
-
getNewPage
public org.broadleafcommerce.cms.page.domain.Page getNewPage()Description copied from interface:ContentTargetingActionReturns the replacementPagethat should be displayed in place ofContentTargetingAction.getPage()when using the action types ofContentTargetingActionType.CHANGE_PAGE.- Specified by:
getNewPagein interfaceContentTargetingAction- Returns:
-
setNewPage
public void setNewPage(org.broadleafcommerce.cms.page.domain.Page newPage) Description copied from interface:ContentTargetingActionSets the replacementPagethat should be displayed in place ofContentTargetingAction.getPage()when using the action types ofContentTargetingActionType.CHANGE_PAGE.- Specified by:
setNewPagein interfaceContentTargetingAction
-
getFieldKey
Description copied from interface:ContentTargetingActionFor action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, returns the key of field being changed.- Specified by:
getFieldKeyin interfaceContentTargetingAction- Returns:
-
setFieldKey
Description copied from interface:ContentTargetingActionFor action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, sets the key of the field being changed.- Specified by:
setFieldKeyin interfaceContentTargetingAction
-
getNewFieldValue
Description copied from interface:ContentTargetingActionFor action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, returns the replacement value of field associated withContentTargetingAction.getFieldKey(). For example, a page might have a field named "body" which this targeter replaces.- Specified by:
getNewFieldValuein interfaceContentTargetingAction- Returns:
-
setNewFieldValue
Description copied from interface:ContentTargetingActionFor action with a type ofContentTargetingActionType.CHANGE_PAGE_VARIABLE, sets the new value for the field associated withContentTargetingAction.getFieldKey()- Specified by:
setNewFieldValuein interfaceContentTargetingAction
-
getThemeFile
public com.broadleafcommerce.theme.domain.ThemeFile getThemeFile()Description copied from interface:ContentTargetingActionReturns the templateThemeFilethat we want to effect with this content targeter.For action types of
ContentTargetingActionType.CHANGE_TEMPLATE- Specified by:
getThemeFilein interfaceContentTargetingAction- Returns:
-
setThemeFile
public void setThemeFile(com.broadleafcommerce.theme.domain.ThemeFile themeFile) Description copied from interface:ContentTargetingActionSets the templateThemeFileyou want to effect with this content targeter.For action types of
ContentTargetingActionType.CHANGE_TEMPLATE- Specified by:
setThemeFilein interfaceContentTargetingAction
-
getNewThemeFile
public com.broadleafcommerce.theme.domain.ThemeFile getNewThemeFile()Description copied from interface:ContentTargetingActionReturns the replacementThemeFilethat should be displayed in place ofContentTargetingAction.getThemeFile()when using the action types ofContentTargetingActionType.CHANGE_TEMPLATE.- Specified by:
getNewThemeFilein interfaceContentTargetingAction- Returns:
-
setNewThemeFile
public void setNewThemeFile(com.broadleafcommerce.theme.domain.ThemeFile newThemeFile) Description copied from interface:ContentTargetingActionSets the replacementThemeFilethat should be displayed in place ofContentTargetingAction.getThemeFile()when using the action types ofContentTargetingActionType.CHANGE_TEMPLATE.- Specified by:
setNewThemeFilein interfaceContentTargetingAction
-
getNewTheme
public com.broadleafcommerce.theme.domain.ThemeConfiguration getNewTheme()Description copied from interface:ContentTargetingActionReturns the replacementThemeConfigurationthat should be displayed when using the action types ofContentTargetingActionType.CHANGE_THEME.- Specified by:
getNewThemein interfaceContentTargetingAction- Returns:
-
setNewTheme
public void setNewTheme(com.broadleafcommerce.theme.domain.ThemeConfiguration newTheme) Description copied from interface:ContentTargetingActionSets the replacementThemeConfigurationthat should be displayed when using the action types ofContentTargetingActionType.CHANGE_THEME.- Specified by:
setNewThemein interfaceContentTargetingAction
-
getEmailTemplate
- Specified by:
getEmailTemplatein interfaceContentTargetingAction
-
setEmailTemplate
- Specified by:
setEmailTemplatein interfaceContentTargetingAction
-
getNewEmailTemplate
- Specified by:
getNewEmailTemplatein interfaceContentTargetingAction
-
setNewEmailTemplate
- Specified by:
setNewEmailTemplatein interfaceContentTargetingAction
-
getSmsTemplate
- Specified by:
getSmsTemplatein interfaceContentTargetingAction
-
setSmsTemplate
- Specified by:
setSmsTemplatein interfaceContentTargetingAction
-
getNewSmsTemplate
- Specified by:
getNewSmsTemplatein interfaceContentTargetingAction
-
setNewSmsTemplate
- Specified by:
setNewSmsTemplatein interfaceContentTargetingAction
-
createOrRetrieveCopyInstance
public <G extends ContentTargetingAction> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<ContentTargetingAction>- Throws:
CloneNotSupportedException
-