public interface ContentTargeterService
Modifier and Type | Method and Description |
---|---|
ContentTargetingActionXref |
findContentTargetingActionXrefById(Long id)
Returns the ContentTargetingActionXref associated with the passed in id.
|
List<ContentTargetingAction> |
findFieldActionsForPage(org.broadleafcommerce.cms.page.domain.Page page)
Returns contentTargetingActions associated with the passedin page.
|
ContentItem |
findTargetedContentItemForZone(ContentZone contentZone)
Returns the contentItem if any found for the passed in zone.
|
com.broadleafcommerce.theme.domain.ThemeFile |
findTargetedReplacementForTemplatePath(String templatePath)
If a targeter has been setup for the passed in page with an action type of
ContentTargetingActionType.CHANGE_TEMPLATE , then the new template will be returned. |
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 of
ContentTargetingActionType.CHANGE_PAGE , then the new page will be returned. |
com.broadleafcommerce.theme.domain.ThemeConfiguration |
findTargetedReplacementThemeConfiguration()
If a targeter has been setup for the passed in page with an action type of
ContentTargetingActionType.CHANGE_THEME , then the new ThemeConfiguration will
be returned. |
boolean |
targeterPassesRules(ContentTargeter targeter,
Map<String,Object> ruleDTOs)
Check if a ContentTargeter passes the given rules
|
ContentItem findTargetedContentItemForZone(ContentZone contentZone)
contentZone
- List<ContentTargetingAction> findFieldActionsForPage(org.broadleafcommerce.cms.page.domain.Page page)
page
- org.broadleafcommerce.cms.page.domain.Page findTargetedReplacementPage(org.broadleafcommerce.cms.page.domain.Page page)
ContentTargetingActionType.CHANGE_PAGE
, then the new page will be returned.
Otherwise, returns null.page
- com.broadleafcommerce.theme.domain.ThemeFile findTargetedReplacementForTemplatePath(String templatePath)
ContentTargetingActionType.CHANGE_TEMPLATE
, then the new template will be returned.
Otherwise, returns null.templatePath
- com.broadleafcommerce.theme.domain.ThemeConfiguration findTargetedReplacementThemeConfiguration()
ContentTargetingActionType.CHANGE_THEME
, then the new ThemeConfiguration
will
be returned.
Otherwise, returns null.boolean targeterPassesRules(ContentTargeter targeter, Map<String,Object> ruleDTOs)
ContentTargetingActionXref findContentTargetingActionXrefById(Long id)
id
- - The id of the content targeting action xref.Copyright © 2020. All rights reserved.