Interface ContentTargeterService

All Known Implementing Classes:
ContentTargeterServiceImpl

public interface ContentTargeterService
  • Method Details

    • findTargetedContentItemForZone

      ContentItem findTargetedContentItemForZone(ContentZone contentZone)
      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 of ContentTargetingActionType.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 of ContentTargetingActionType.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 of ContentTargetingActionType.CHANGE_THEME, then the new ThemeConfiguration will be returned.

      Otherwise, returns null.

      Returns:
    • findTargetedReplacementEmailTemplate

      EmailTemplate findTargetedReplacementEmailTemplate(EmailTemplate emailTemplate)
      If a targeter has been setup for the passed in email template with an action type of ContentTargetingActionType.CHANGE_EMAIL_TEMPLATE, then the new email template will be returned.

      Otherwise, returns null.

      Parameters:
      emailTemplate -
      Returns:
    • findTargetedReplacementSmsTemplate

      SMSTemplate findTargetedReplacementSmsTemplate(SMSTemplate smsTemplate)
    • targeterPassesRules

      boolean targeterPassesRules(ContentTargeter targeter, Map<String,Object> ruleDTOs)
      Check if a ContentTargeter passes the given rules
      Returns:
      boolean
    • findContentTargetingActionXrefById

      ContentTargetingActionXref findContentTargetingActionXrefById(Long id)
      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.