@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()
ContentTargeter
getId
in interface ContentTargeter
public void setId(Long id)
ContentTargeter
setId
in interface ContentTargeter
id
- the new primary keypublic String getName()
ContentTargeter
getName
in interface ContentTargeter
public void setName(String name)
ContentTargeter
setName
in interface ContentTargeter
public String getDescription()
ContentTargeter
getDescription
in interface ContentTargeter
public void setDescription(String description)
ContentTargeter
setDescription
in interface ContentTargeter
public Date getActiveStartDate()
ContentTargeter
ContentTargeter
will be used. A value of
null means that this targeter is not active and should not be run.getActiveStartDate
in interface ContentTargeter
public void setActiveStartDate(Date activeStartDate)
ContentTargeter
ContentTargeter
will be used. A value of
null means that this targeter is not active and should not be run.setActiveStartDate
in interface ContentTargeter
activeStartDate
- - the first day the targeter will be usedpublic Date getActiveEndDate()
ContentTargeter
ContentTargeter
will be active. A value of null should be
interpreted as a targeter that has no end date.getActiveEndDate
in interface ContentTargeter
public void setActiveEndDate(Date activeEndDate)
ContentTargeter
ContentTargeter
will be active.setActiveEndDate
in interface ContentTargeter
activeEndDate
- - the last day the targeter will nulpublic Integer getPriority()
ContentTargeter
getPriority
in interface ContentTargeter
public void setPriority(Integer priority)
ContentTargeter
setPriority
in interface ContentTargeter
public Map<String,ContentTargetingRuleXref> getMatchRules()
ContentTargeter
getMatchRules
in interface ContentTargeter
public void setMatchRules(Map<String,ContentTargetingRuleXref> matchRules)
ContentTargeter
setMatchRules
in interface ContentTargeter
public Set<ContentTargetingItemCriteria> getQualifyingItemCriteria()
ContentTargeter
getQualifyingItemCriteria
in interface ContentTargeter
public void setQualifyingItemCriteria(Set<ContentTargetingItemCriteria> qualifyingItemCriteria)
ContentTargeter
setQualifyingItemCriteria
in interface ContentTargeter
public ContentTargetingAction getContentTargetingAction()
ContentTargeter
getContentTargetingAction
in interface ContentTargeter
public void setContentTargetingAction(ContentTargetingAction defaultContentTargetingAction)
ContentTargeter
setContentTargetingAction
in interface ContentTargeter
public List<ContentTargetingActionXref> getContentTargetingActions()
ContentTargeter
getContentTargetingActions
in interface ContentTargeter
public void setContentTargetingActions(List<ContentTargetingActionXref> targetingActions)
ContentTargeter
setContentTargetingActions
in interface ContentTargeter
public boolean isActive()
isActive
in interface org.broadleafcommerce.common.persistence.Status
public Character getArchived()
getArchived
in interface org.broadleafcommerce.common.persistence.Status
public void setArchived(Character archived)
setArchived
in interface org.broadleafcommerce.common.persistence.Status
public <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>
CloneNotSupportedException
Copyright © 2020. All rights reserved.