@Entity public class ContentTargeterImpl extends Object implements ContentTargeter, org.broadleafcommerce.common.persistence.Status, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity, ContentTargeterAdminPresentation
ContentTargeterAdminPresentation.GroupName, ContentTargeterAdminPresentation.GroupOrder, ContentTargeterAdminPresentation.TabName, ContentTargeterAdminPresentation.TabOrder| Modifier and Type | Field and Description |
|---|---|
protected Date |
activeEndDate |
protected Date |
activeStartDate |
protected org.broadleafcommerce.common.persistence.ArchiveStatus |
archiveStatus |
protected ContentTargetingAction |
contentTargetingAction |
protected String |
description |
protected Long |
id |
protected String |
name |
protected Integer |
priority |
protected Set<ContentTargetingItemCriteria> |
qualifyingItemCriteria |
protected List<ContentTargetingActionXref> |
targetingActions |
| Constructor and Description |
|---|
ContentTargeterImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends ContentTargeter> |
createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) |
boolean |
equals(Object o) |
Date |
getActiveEndDate()
Returns the last date this
ContentTargeter will be active. |
Date |
getActiveStartDate()
Returns the first date this
ContentTargeter will be used. |
Character |
getArchived() |
ContentTargetingAction |
getContentTargetingAction()
Returns the action associated with this targeter (when there is only one action).
|
List<ContentTargetingActionXref> |
getContentTargetingActions()
Returns a the list of actions to take for this targeter.
|
String |
getDescription()
Gets the description.
|
Long |
getId()
Gets the primary key.
|
Map<String,ContentTargetingRuleXref> |
getMatchRules()
Returns a map of the rules that determine if this targeter applies
|
String |
getName()
Gets the name.
|
Integer |
getPriority()
Gets the integer priority of this content targeting rule.
|
Set<ContentTargetingItemCriteria> |
getQualifyingItemCriteria()
Returns a map of the cart based rules that determine if this targeter applies.
|
int |
hashCode() |
boolean |
isActive() |
void |
setActiveEndDate(Date activeEndDate)
Sets the last date this
ContentTargeter will be active. |
void |
setActiveStartDate(Date activeStartDate)
Sets the first date this
ContentTargeter will be used. |
void |
setArchived(Character archived) |
void |
setContentTargetingAction(ContentTargetingAction defaultContentTargetingAction)
Sets the action associated with this targeter (when there is only one action).
|
void |
setContentTargetingActions(List<ContentTargetingActionXref> targetingActions)
Sets the list of actions to take for this targeter.
|
void |
setDescription(String description)
Sets the description.
|
void |
setId(Long id)
Sets the primary key.
|
void |
setMatchRules(Map<String,ContentTargetingRuleXref> matchRules)
Sets the rules that determine if this targeter applies
|
void |
setName(String name)
Sets the name.
|
void |
setPriority(Integer priority)
Sets the priority for this rule.
|
void |
setQualifyingItemCriteria(Set<ContentTargetingItemCriteria> qualifyingItemCriteria)
Sets a map of the cart based rules that determine if this targeter applies.
|
protected Long id
protected String name
protected String description
protected Date activeStartDate
protected Date activeEndDate
protected Integer priority
protected org.broadleafcommerce.common.persistence.ArchiveStatus archiveStatus
protected Set<ContentTargetingItemCriteria> qualifyingItemCriteria
protected ContentTargetingAction contentTargetingAction
protected List<ContentTargetingActionXref> targetingActions
public Long getId()
ContentTargetergetId in interface ContentTargeterpublic void setId(Long id)
ContentTargetersetId in interface ContentTargeterid - the new primary keypublic String getName()
ContentTargetergetName in interface ContentTargeterpublic void setName(String name)
ContentTargetersetName in interface ContentTargeterpublic String getDescription()
ContentTargetergetDescription in interface ContentTargeterpublic void setDescription(String description)
ContentTargetersetDescription in interface ContentTargeterpublic Date getActiveStartDate()
ContentTargeterContentTargeter will be used. A value of
null means that this targeter is not active and should not be run.getActiveStartDate in interface ContentTargeterpublic void setActiveStartDate(Date activeStartDate)
ContentTargeterContentTargeter will be used. A value of
null means that this targeter is not active and should not be run.setActiveStartDate in interface ContentTargeteractiveStartDate - - the first day the targeter will be usedpublic Date getActiveEndDate()
ContentTargeterContentTargeter will be active. A value of null should be
interpreted as a targeter that has no end date.getActiveEndDate in interface ContentTargeterpublic void setActiveEndDate(Date activeEndDate)
ContentTargeterContentTargeter will be active.setActiveEndDate in interface ContentTargeteractiveEndDate - - the last day the targeter will nulpublic Integer getPriority()
ContentTargetergetPriority in interface ContentTargeterpublic void setPriority(Integer priority)
ContentTargetersetPriority in interface ContentTargeterpublic Map<String,ContentTargetingRuleXref> getMatchRules()
ContentTargetergetMatchRules in interface ContentTargeterpublic void setMatchRules(Map<String,ContentTargetingRuleXref> matchRules)
ContentTargetersetMatchRules in interface ContentTargeterpublic Set<ContentTargetingItemCriteria> getQualifyingItemCriteria()
ContentTargetergetQualifyingItemCriteria in interface ContentTargeterpublic void setQualifyingItemCriteria(Set<ContentTargetingItemCriteria> qualifyingItemCriteria)
ContentTargetersetQualifyingItemCriteria in interface ContentTargeterpublic ContentTargetingAction getContentTargetingAction()
ContentTargetergetContentTargetingAction in interface ContentTargeterpublic void setContentTargetingAction(ContentTargetingAction defaultContentTargetingAction)
ContentTargetersetContentTargetingAction in interface ContentTargeterpublic List<ContentTargetingActionXref> getContentTargetingActions()
ContentTargetergetContentTargetingActions in interface ContentTargeterpublic void setContentTargetingActions(List<ContentTargetingActionXref> targetingActions)
ContentTargetersetContentTargetingActions in interface ContentTargeterpublic boolean isActive()
isActive in interface org.broadleafcommerce.common.persistence.Statuspublic Character getArchived()
getArchived in interface org.broadleafcommerce.common.persistence.Statuspublic void setArchived(Character archived)
setArchived in interface org.broadleafcommerce.common.persistence.Statuspublic <G extends ContentTargeter> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentTargeter>CloneNotSupportedExceptionCopyright © 2020. All rights reserved.