Class ContentTargeterImpl
java.lang.Object
com.broadleafcommerce.advancedcms.domain.targeting.ContentTargeterImpl
- All Implemented Interfaces:
ContentTargeter,ContentTargeterAdminPresentation,Serializable,org.broadleafcommerce.common.admin.domain.AdminMainEntity,org.broadleafcommerce.common.copy.MultiTenantCloneable<ContentTargeter>,org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity,org.broadleafcommerce.common.persistence.Status
@Entity
public class ContentTargeterImpl
extends Object
implements ContentTargeter, org.broadleafcommerce.common.persistence.Status, org.broadleafcommerce.common.extensibility.jpa.copy.ProfileEntity, ContentTargeterAdminPresentation, org.broadleafcommerce.common.admin.domain.AdminMainEntity
Created by bpolster.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.broadleafcommerce.advancedcms.domain.targeting.ContentTargeterAdminPresentation
ContentTargeterAdminPresentation.GroupName, ContentTargeterAdminPresentation.GroupOrder, ContentTargeterAdminPresentation.TabName, ContentTargeterAdminPresentation.TabOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dateprotected Dateprotected org.broadleafcommerce.common.persistence.ArchiveStatusprotected ContentTargetingActionprotected Stringprotected Longprotected Stringprotected Integerprotected Set<ContentTargetingItemCriteria>protected List<ContentTargetingActionXref>Fields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends ContentTargeter>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) booleanReturns 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.inthashCode()booleanisActive()voidsetActiveEndDate(Date activeEndDate) Sets the last date thisContentTargeterwill be active.voidsetActiveStartDate(Date activeStartDate) Sets the first date thisContentTargeterwill be used.voidsetArchived(Character archived) voidsetContentTargetingAction(ContentTargetingAction defaultContentTargetingAction) Sets the action associated with this targeter (when there is only one action).voidsetContentTargetingActions(List<ContentTargetingActionXref> targetingActions) 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.
-
Field Details
-
id
-
name
-
description
-
activeStartDate
-
activeEndDate
-
priority
-
archiveStatus
protected org.broadleafcommerce.common.persistence.ArchiveStatus archiveStatus -
qualifyingItemCriteria
-
contentTargetingAction
-
targetingActions
-
-
Constructor Details
-
ContentTargeterImpl
public ContentTargeterImpl()
-
-
Method Details
-
getId
Description copied from interface:ContentTargeterGets the primary key.- Specified by:
getIdin interfaceContentTargeter- Returns:
- the primary key
-
setId
Description copied from interface:ContentTargeterSets the primary key.- Specified by:
setIdin interfaceContentTargeter- Parameters:
id- the new primary key
-
getName
Description copied from interface:ContentTargeterGets the name.- Specified by:
getNamein interfaceContentTargeter- Returns:
- the name
-
setName
Description copied from interface:ContentTargeterSets the name.- Specified by:
setNamein interfaceContentTargeter
-
getDescription
Description copied from interface:ContentTargeterGets the description.- Specified by:
getDescriptionin interfaceContentTargeter- Returns:
- the description
-
setDescription
Description copied from interface:ContentTargeterSets the description.- Specified by:
setDescriptionin interfaceContentTargeter
-
getActiveStartDate
Description copied from interface:ContentTargeterReturns the first date thisContentTargeterwill be used. A value of null means that this targeter is not active and should not be run.- Specified by:
getActiveStartDatein interfaceContentTargeter- Returns:
- the first date the targeter will be used
-
setActiveStartDate
Description copied from interface:ContentTargeterSets the first date thisContentTargeterwill be used. A value of null means that this targeter is not active and should not be run.- Specified by:
setActiveStartDatein interfaceContentTargeter- Parameters:
activeStartDate- - the first day the targeter will be used
-
getActiveEndDate
Description copied from interface:ContentTargeterReturns the last date thisContentTargeterwill be active. A value of null should be interpreted as a targeter that has no end date.- Specified by:
getActiveEndDatein interfaceContentTargeter- Returns:
- the last day the targeter should be run.
-
setActiveEndDate
Description copied from interface:ContentTargeterSets the last date thisContentTargeterwill be active.- Specified by:
setActiveEndDatein interfaceContentTargeter- Parameters:
activeEndDate- - the last day the targeter will nul
-
getPriority
Description copied from interface:ContentTargeterGets 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.- Specified by:
getPriorityin interfaceContentTargeter- Returns:
- the priority as a numeric value
-
setPriority
Description copied from interface:ContentTargeterSets 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.- Specified by:
setPriorityin interfaceContentTargeter
-
getMatchRules
Description copied from interface:ContentTargeterReturns a map of the rules that determine if this targeter applies- Specified by:
getMatchRulesin interfaceContentTargeter- Returns:
-
setMatchRules
Description copied from interface:ContentTargeterSets the rules that determine if this targeter applies- Specified by:
setMatchRulesin interfaceContentTargeter
-
getQualifyingItemCriteria
Description copied from interface:ContentTargeterReturns a map of the cart based rules that determine if this targeter applies.- Specified by:
getQualifyingItemCriteriain interfaceContentTargeter- Returns:
-
setQualifyingItemCriteria
Description copied from interface:ContentTargeterSets a map of the cart based rules that determine if this targeter applies.- Specified by:
setQualifyingItemCriteriain interfaceContentTargeter
-
getContentTargetingAction
Description copied from interface:ContentTargeterReturns the action associated with this targeter (when there is only one action).- Specified by:
getContentTargetingActionin interfaceContentTargeter- Returns:
- the single ContentAction
-
setContentTargetingAction
Description copied from interface:ContentTargeterSets the action associated with this targeter (when there is only one action).- Specified by:
setContentTargetingActionin interfaceContentTargeter
-
getContentTargetingActions
Description copied from interface:ContentTargeterReturns a the list of actions to take for this targeter.- Specified by:
getContentTargetingActionsin interfaceContentTargeter- Returns:
-
setContentTargetingActions
Description copied from interface:ContentTargeterSets the list of actions to take for this targeter.- Specified by:
setContentTargetingActionsin interfaceContentTargeter
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.broadleafcommerce.common.persistence.Status
-
getArchived
- Specified by:
getArchivedin interfaceorg.broadleafcommerce.common.persistence.Status
-
setArchived
- Specified by:
setArchivedin interfaceorg.broadleafcommerce.common.persistence.Status
-
createOrRetrieveCopyInstance
public <G extends ContentTargeter> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<ContentTargeter>- Throws:
CloneNotSupportedException
-
hashCode
public int hashCode() -
equals
-
getMainEntityName
- Specified by:
getMainEntityNamein interfaceorg.broadleafcommerce.common.admin.domain.AdminMainEntity
-