@Entity public class CartRuleActionImpl extends Object implements CartRuleAction, CartRuleActionAdminPresentation
CartRuleActionAdminPresentation.FieldOrder, CartRuleActionAdminPresentation.GroupName, CartRuleActionAdminPresentation.GroupOrder, CartRuleActionAdminPresentation.TabName, CartRuleActionAdminPresentation.TabOrder| Modifier and Type | Field and Description |
|---|---|
protected CartRule |
cartRule |
protected String |
cartRuleActionType |
protected Long |
id |
protected Boolean |
isDefaultProduct |
protected org.broadleafcommerce.core.catalog.domain.Product |
product |
protected Integer |
quantity |
protected Boolean |
shouldReverse
Deprecated.
|
protected org.broadleafcommerce.core.catalog.domain.Sku |
targetedSku |
| Constructor and Description |
|---|
CartRuleActionImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends CartRuleAction> |
createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) |
CartRule |
getCartRule()
Returns the
CartRuleActions target CartRule |
CartRuleActionType |
getCartRuleActionType()
Returns the
CartRuleActionType for this CartRuleAction |
Long |
getId()
Returns the
CartRuleActions id |
org.broadleafcommerce.core.catalog.domain.Product |
getProduct()
Returns the
Product for this CartRuleAction |
Integer |
getQuantity()
Returns the quantity for this
CartRuleAction |
Boolean |
getShouldReverse()
Deprecated.
|
org.broadleafcommerce.core.catalog.domain.Sku |
getTargetedSku()
Returns the
Sku for this CartRuleAction
If the Sku is not set (null), this returns the product's default sku |
void |
setCartRule(CartRule cartRule)
Sets the
CartRuleActions target CartRule |
void |
setCartRuleActionType(CartRuleActionType cartRuleActionType)
Sets the
CartRuleActionType for this CartRuleAction |
void |
setId(Long id)
Sets the
CartRuleActions id |
void |
setProduct(org.broadleafcommerce.core.catalog.domain.Product product)
Sets the
Product for this CartRuleAction |
void |
setQuantity(Integer quantity)
Sets the quantity for this
CartRuleAction |
void |
setShouldReverse(Boolean shouldReverse)
Deprecated.
|
void |
setTargetedSku(org.broadleafcommerce.core.catalog.domain.Sku targetedSku)
Sets the
Sku for this CartRuleAction |
protected Long id
protected CartRule cartRule
protected String cartRuleActionType
protected Boolean isDefaultProduct
protected org.broadleafcommerce.core.catalog.domain.Product product
protected org.broadleafcommerce.core.catalog.domain.Sku targetedSku
protected Integer quantity
@Deprecated protected Boolean shouldReverse
public Long getId()
CartRuleActionCartRuleActions idgetId in interface CartRuleActionpublic void setId(Long id)
CartRuleActionCartRuleActions idsetId in interface CartRuleActionpublic CartRule getCartRule()
CartRuleActionCartRuleActions target CartRulegetCartRule in interface CartRuleActionpublic void setCartRule(CartRule cartRule)
CartRuleActionCartRuleActions target CartRulesetCartRule in interface CartRuleActionpublic CartRuleActionType getCartRuleActionType()
CartRuleActionCartRuleActionType for this CartRuleActiongetCartRuleActionType in interface CartRuleActionpublic void setCartRuleActionType(CartRuleActionType cartRuleActionType)
CartRuleActionCartRuleActionType for this CartRuleActionsetCartRuleActionType in interface CartRuleActionpublic org.broadleafcommerce.core.catalog.domain.Product getProduct()
CartRuleActionProduct for this CartRuleActiongetProduct in interface CartRuleActionpublic void setProduct(org.broadleafcommerce.core.catalog.domain.Product product)
CartRuleActionProduct for this CartRuleActionsetProduct in interface CartRuleActionpublic org.broadleafcommerce.core.catalog.domain.Sku getTargetedSku()
CartRuleActionSku for this CartRuleAction
If the Sku is not set (null), this returns the product's default skugetTargetedSku in interface CartRuleActionpublic void setTargetedSku(org.broadleafcommerce.core.catalog.domain.Sku targetedSku)
CartRuleActionSku for this CartRuleActionsetTargetedSku in interface CartRuleActionpublic Integer getQuantity()
CartRuleActionCartRuleActiongetQuantity in interface CartRuleActionpublic void setQuantity(Integer quantity)
CartRuleActionCartRuleActionsetQuantity in interface CartRuleAction@Deprecated public Boolean getShouldReverse()
CartRuleActionCartRuleAction should reverse if its CartRule
no longer appliesgetShouldReverse in interface CartRuleAction@Deprecated public void setShouldReverse(Boolean shouldReverse)
CartRuleActionCartRuleAction should reverse if its CartRule
no longer appliessetShouldReverse in interface CartRuleActionpublic <G extends CartRuleAction> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<CartRuleAction>CloneNotSupportedExceptionCopyright © 2020. All rights reserved.