Interface ContentTargeterService
- All Known Implementing Classes:
ContentTargeterServiceImpl
public interface ContentTargeterService
-
Method Summary
Modifier and TypeMethodDescriptionReturns the ContentTargetingActionXref associated with the passed in id.findFieldActionsForPage(org.broadleafcommerce.cms.page.domain.Page page) Returns contentTargetingActions associated with the passedin page.findTargetedContentItemForZone(ContentZone contentZone) Returns the contentItem if any found for the passed in zone.findTargetedReplacementEmailTemplate(EmailTemplate emailTemplate) If a targeter has been setup for the passed in email template with an action type ofContentTargetingActionType.CHANGE_EMAIL_TEMPLATE, then the new email template will be returned.com.broadleafcommerce.theme.domain.ThemeFilefindTargetedReplacementForTemplatePath(String templatePath) If a targeter has been setup for the passed in page with an action type ofContentTargetingActionType.CHANGE_TEMPLATE, then the new template will be returned.org.broadleafcommerce.cms.page.domain.PagefindTargetedReplacementPage(org.broadleafcommerce.cms.page.domain.Page page) If a targeter has been setup for the passed in page with an action type ofContentTargetingActionType.CHANGE_PAGE, then the new page will be returned.findTargetedReplacementSmsTemplate(SMSTemplate smsTemplate) com.broadleafcommerce.theme.domain.ThemeConfigurationIf a targeter has been setup for the passed in page with an action type ofContentTargetingActionType.CHANGE_THEME, then the newThemeConfigurationwill be returned.booleantargeterPassesRules(ContentTargeter targeter, Map<String, Object> ruleDTOs) Check if a ContentTargeter passes the given rules
-
Method Details
-
findTargetedContentItemForZone
Returns the contentItem if any found for the passed in zone.- Parameters:
contentZone-- Returns:
-
findFieldActionsForPage
List<ContentTargetingAction> findFieldActionsForPage(org.broadleafcommerce.cms.page.domain.Page page) Returns contentTargetingActions associated with the passedin page.- Parameters:
page-- Returns:
-
findTargetedReplacementPage
org.broadleafcommerce.cms.page.domain.Page findTargetedReplacementPage(org.broadleafcommerce.cms.page.domain.Page page) If a targeter has been setup for the passed in page with an action type ofContentTargetingActionType.CHANGE_PAGE, then the new page will be returned.Otherwise, returns null.
- Parameters:
page-- Returns:
-
findTargetedReplacementForTemplatePath
com.broadleafcommerce.theme.domain.ThemeFile findTargetedReplacementForTemplatePath(String templatePath) If a targeter has been setup for the passed in page with an action type ofContentTargetingActionType.CHANGE_TEMPLATE, then the new template will be returned.Otherwise, returns null.
- Parameters:
templatePath-- Returns:
-
findTargetedReplacementThemeConfiguration
com.broadleafcommerce.theme.domain.ThemeConfiguration findTargetedReplacementThemeConfiguration()If a targeter has been setup for the passed in page with an action type ofContentTargetingActionType.CHANGE_THEME, then the newThemeConfigurationwill be returned.Otherwise, returns null.
- Returns:
-
findTargetedReplacementEmailTemplate
If a targeter has been setup for the passed in email template with an action type ofContentTargetingActionType.CHANGE_EMAIL_TEMPLATE, then the new email template will be returned.Otherwise, returns null.
- Parameters:
emailTemplate-- Returns:
-
findTargetedReplacementSmsTemplate
-
targeterPassesRules
Check if a ContentTargeter passes the given rules- Returns:
- boolean
-
findContentTargetingActionXrefById
Returns the ContentTargetingActionXref associated with the passed in id.- Parameters:
id- - The id of the content targeting action xref.- Returns:
- The associated content targeting action xref.
-