Interface ContentTargeter
- All Superinterfaces:
org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentTargeter>,Serializable
- All Known Implementing Classes:
ContentTargeterImpl
public interface ContentTargeter
extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentTargeter>
A ContentTargetingRule is used to change the value of a content item when certain
rules are met.
- Author:
- bpolster
-
Method Summary
Modifier and TypeMethodDescriptionReturns the last date thisContentTargeterwill be active.Returns the first date thisContentTargeterwill be used.Returns the action associated with this targeter (when there is only one action).Returns a the list of actions to take for this targeter.Gets the description.getId()Gets the primary key.Returns a map of the rules that determine if this targeter appliesgetName()Gets the name.Gets the integer priority of this content targeting rule.Returns a map of the cart based rules that determine if this targeter applies.voidsetActiveEndDate(Date activeEndDate) Sets the last date thisContentTargeterwill be active.voidsetActiveStartDate(Date activeStartDate) Sets the first date thisContentTargeterwill be used.voidsetContentTargetingAction(ContentTargetingAction targetingAction) Sets the action associated with this targeter (when there is only one action).voidsetContentTargetingActions(List<ContentTargetingActionXref> contentTargetingActions) Sets the list of actions to take for this targeter.voidsetDescription(String description) Sets the description.voidSets the primary key.voidsetMatchRules(Map<String, ContentTargetingRuleXref> matchRules) Sets the rules that determine if this targeter appliesvoidSets the name.voidsetPriority(Integer priority) Sets the priority for this rule.voidsetQualifyingItemCriteria(Set<ContentTargetingItemCriteria> qualifyingItemCriteria) Sets a map of the cart based rules that determine if this targeter applies.Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Gets the primary key.- Returns:
- the primary key
-
setId
Sets the primary key.- Parameters:
id- the new primary key
-
getName
Gets the name.- Returns:
- the name
-
setDescription
Sets the description.- Parameters:
description-
-
getDescription
Gets the description.- Returns:
- the description
-
setName
Sets the name.- Parameters:
name-
-
getActiveStartDate
Date getActiveStartDate()Returns the first date thisContentTargeterwill be used. A value of null means that this targeter is not active and should not be run.- Returns:
- the first date the targeter will be used
-
setActiveStartDate
Sets the first date thisContentTargeterwill be used. A value of null means that this targeter is not active and should not be run.- Parameters:
activeStartDate- - the first day the targeter will be used
-
getActiveEndDate
Date getActiveEndDate()Returns the last date thisContentTargeterwill be active. A value of null should be interpreted as a targeter that has no end date.- Returns:
- the last day the targeter should be run.
-
setActiveEndDate
Sets the last date thisContentTargeterwill be active.- Parameters:
activeEndDate- - the last day the targeter will nul
-
getMatchRules
Returns a map of the rules that determine if this targeter applies- Returns:
-
setMatchRules
Sets the rules that determine if this targeter applies- Parameters:
matchRules-
-
getQualifyingItemCriteria
Returns a map of the cart based rules that determine if this targeter applies.- Returns:
-
setQualifyingItemCriteria
Sets a map of the cart based rules that determine if this targeter applies.- Parameters:
qualifyingItemCriteria-
-
getPriority
Gets the integer priority of this content targeting rule. If multiple content rules can apply to a given context, the one with the highest priority will apply.- Returns:
- the priority as a numeric value
-
setPriority
Sets the priority for this rule. If multiple rules match for a given page, content-slot, etc., then the one with the highest priority will win.- Parameters:
priority-
-
getContentTargetingAction
ContentTargetingAction getContentTargetingAction()Returns the action associated with this targeter (when there is only one action).- Returns:
- the single ContentAction
-
setContentTargetingAction
Sets the action associated with this targeter (when there is only one action). -
getContentTargetingActions
List<ContentTargetingActionXref> getContentTargetingActions()Returns a the list of actions to take for this targeter.- Returns:
-
setContentTargetingActions
Sets the list of actions to take for this targeter.- Parameters:
contentTargetingActions-
-