@Entity public class CartRuleImpl extends Object implements CartRule, org.broadleafcommerce.common.admin.domain.AdminMainEntity, CartRuleAdminPresentation
CartRuleAdminPresentation.FieldOrder, CartRuleAdminPresentation.GroupName, CartRuleAdminPresentation.GroupOrder, CartRuleAdminPresentation.TabName, CartRuleAdminPresentation.TabOrder| Modifier and Type | Field and Description |
|---|---|
protected Date |
activeEndDate |
protected Date |
activeStartDate |
protected org.broadleafcommerce.common.persistence.ArchiveStatus |
archiveStatus |
protected List<CartRuleAction> |
cartRuleActions |
protected List<CartRuleCustomerSegmentXref> |
customerSegmentXrefs |
protected String |
executionTimeType |
protected Long |
id |
protected String |
name |
protected Set<CartRuleQualifyingItemCriteriaXref> |
qualifyingItemCriteria |
protected Set<CartRuleQualifyingOrderCriteriaXref> |
qualifyingOrderCriteria |
protected Integer |
timesPerOrder |
| Constructor and Description |
|---|
CartRuleImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends CartRule> |
createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) |
boolean |
equals(Object o) |
Date |
getActiveEndDate()
Returns the active end date of this
CartRule |
Date |
getActiveStartDate()
Returns the active start date of this
CartRule |
Character |
getArchived() |
List<CartRuleAction> |
getCartRuleActions()
Returns a list of
CartRuleActions associated with this CartRule |
List<CartRuleCustomerSegmentXref> |
getCustomerSegmentXrefs()
Returns a list of
CartRuleCustomerSegmentXrefs associated with this CartRule |
ExecutionTimeType |
getExecutionTimeType()
Returns the
ExecutionTimeType associated with this CartRule |
Long |
getId()
Returns the
CartRules id |
String |
getMainEntityName() |
String |
getName()
Returns the
CartRules name |
Set<CartRuleQualifyingItemCriteriaXref> |
getQualifyingItemCriteria()
Returns the set of
CartRuleQualifyingItemCriteriaXrefs associated with this CartRule |
Set<CartRuleQualifyingOrderCriteriaXref> |
getQualifyingOrderCriteria()
Returns the set of
CartRuleQualifyingOrderCriteriaXrefs associated with this CartRule |
List<CartRuleAction> |
getReversibleCartRuleActions()
Returns the list of
CartRuleActions that are reversible |
Integer |
getTimesPerOrder()
Returns the number of times this
CartRule can trigger per Order |
boolean |
hasCartRuleActions()
Returns whether or not the
CartRule has any associated CartRuleActions |
int |
hashCode() |
boolean |
isActive() |
void |
setActiveEndDate(Date activeEndDate)
Sets the active end date for this
CartRule |
void |
setActiveStartDate(Date activeStartDate)
Sets the active start date for this
CartRule |
void |
setArchived(Character archived) |
void |
setCartRuleActions(List<CartRuleAction> cartRuleActions)
Sets the list of
CartRuleActions to be associated with this CartRule |
void |
setCustomerSegmentXrefs(List<CartRuleCustomerSegmentXref> customerSegmentXrefs)
Sets the list of
CartRuleCustomerSegmentXrefs to be associated with this CartRule |
void |
setExecutionTimeType(ExecutionTimeType executionTimeType)
Sets the
ExecutionTimeType to be associated with this CartRule |
void |
setId(Long id)
Sets the
CartRules id |
void |
setName(String name)
Sets the
CartRules name |
void |
setQualifyingItemCriteria(Set<CartRuleQualifyingItemCriteriaXref> qualifyingItemCriteria)
Sets the set of
CartRuleQualifyingItemCriteriaXrefs to be associated with this CartRule |
void |
setQualifyingOrderCriteria(Set<CartRuleQualifyingOrderCriteriaXref> qualifyingOrderCriteria)
Sets the set of
CartRuleQualifyingOrderCriteriaXrefs to be associated with this CartRule |
void |
setTimesPerOrder(Integer timesPerOrder)
Sets the number of times this
CartRule can trigger per Order |
protected Long id
protected String name
protected String executionTimeType
protected Set<CartRuleQualifyingItemCriteriaXref> qualifyingItemCriteria
protected Set<CartRuleQualifyingOrderCriteriaXref> qualifyingOrderCriteria
protected List<CartRuleAction> cartRuleActions
protected List<CartRuleCustomerSegmentXref> customerSegmentXrefs
protected Date activeStartDate
protected Date activeEndDate
protected Integer timesPerOrder
protected org.broadleafcommerce.common.persistence.ArchiveStatus archiveStatus
public String getName()
CartRuleCartRules namepublic void setName(String name)
CartRuleCartRules namepublic ExecutionTimeType getExecutionTimeType()
CartRuleExecutionTimeType associated with this CartRulegetExecutionTimeType in interface CartRulepublic void setExecutionTimeType(ExecutionTimeType executionTimeType)
CartRuleExecutionTimeType to be associated with this CartRulesetExecutionTimeType in interface CartRulepublic Set<CartRuleQualifyingItemCriteriaXref> getQualifyingItemCriteria()
CartRuleCartRuleQualifyingItemCriteriaXrefs associated with this CartRulegetQualifyingItemCriteria in interface CartRulepublic void setQualifyingItemCriteria(Set<CartRuleQualifyingItemCriteriaXref> qualifyingItemCriteria)
CartRuleCartRuleQualifyingItemCriteriaXrefs to be associated with this CartRulesetQualifyingItemCriteria in interface CartRulepublic Set<CartRuleQualifyingOrderCriteriaXref> getQualifyingOrderCriteria()
CartRuleCartRuleQualifyingOrderCriteriaXrefs associated with this CartRulegetQualifyingOrderCriteria in interface CartRulepublic void setQualifyingOrderCriteria(Set<CartRuleQualifyingOrderCriteriaXref> qualifyingOrderCriteria)
CartRuleCartRuleQualifyingOrderCriteriaXrefs to be associated with this CartRulesetQualifyingOrderCriteria in interface CartRulepublic List<CartRuleAction> getCartRuleActions()
CartRuleCartRuleActions associated with this CartRulegetCartRuleActions in interface CartRulepublic void setCartRuleActions(List<CartRuleAction> cartRuleActions)
CartRuleCartRuleActions to be associated with this CartRulesetCartRuleActions in interface CartRulepublic boolean hasCartRuleActions()
CartRuleCartRule has any associated CartRuleActionshasCartRuleActions in interface CartRulepublic List<CartRuleCustomerSegmentXref> getCustomerSegmentXrefs()
CartRuleCartRuleCustomerSegmentXrefs associated with this CartRulegetCustomerSegmentXrefs in interface CartRulepublic void setCustomerSegmentXrefs(List<CartRuleCustomerSegmentXref> customerSegmentXrefs)
CartRuleCartRuleCustomerSegmentXrefs to be associated with this CartRulesetCustomerSegmentXrefs in interface CartRulepublic Date getActiveStartDate()
CartRuleCartRulegetActiveStartDate in interface CartRulepublic void setActiveStartDate(Date activeStartDate)
CartRuleCartRulesetActiveStartDate in interface CartRulepublic Date getActiveEndDate()
CartRuleCartRulegetActiveEndDate in interface CartRulepublic void setActiveEndDate(Date activeEndDate)
CartRuleCartRulesetActiveEndDate in interface CartRulepublic Integer getTimesPerOrder()
CartRuleCartRule can trigger per OrdergetTimesPerOrder in interface CartRulepublic void setTimesPerOrder(Integer timesPerOrder)
CartRuleCartRule can trigger per OrdersetTimesPerOrder in interface CartRulepublic String getMainEntityName()
getMainEntityName in interface org.broadleafcommerce.common.admin.domain.AdminMainEntitypublic List<CartRuleAction> getReversibleCartRuleActions()
CartRuleCartRuleActions that are reversiblegetReversibleCartRuleActions in interface CartRulepublic Character getArchived()
getArchived in interface org.broadleafcommerce.common.persistence.Statuspublic void setArchived(Character archived)
setArchived in interface org.broadleafcommerce.common.persistence.Statuspublic boolean isActive()
isActive in interface org.broadleafcommerce.common.persistence.Statuspublic <G extends CartRule> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<CartRule>CloneNotSupportedExceptionCopyright © 2019. All rights reserved.