Class CombinabilityOverride
java.lang.Object
com.broadleafcommerce.promotion.offer.domain.CombinabilityOverride
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware,Serializable
public class CombinabilityOverride
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
Represents a collection of overrides to other combinability and stacking settings.
Overrides can be used to make an offer more or less restrictive with other specific offers.
- Author:
- Brian Polster
- See Also:
-
Field Summary
Fields inherited from interface com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
DEFAULT_FIELD_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleancom.broadleafcommerce.data.tracking.core.EmbeddedContextStateA subset ofTrackinginformation to expose the context state for this object.The type of override being performed for this offer combination.The id of an offer for which combinability is being overridden for this offer.inthashCode()voidsetContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetOverrideType(String overrideType) The type of override being performed for this offer combination.voidsetRelatedOfferRef(String relatedOfferRef) The id of an offer for which combinability is being overridden for this offer.toString()
-
Constructor Details
-
CombinabilityOverride
public CombinabilityOverride()
-
-
Method Details
-
getRelatedOfferRef
The id of an offer for which combinability is being overridden for this offer.- Returns:
- The context id of the related offer
-
getOverrideType
The type of override being performed for this offer combination.- Returns:
- the maximum number of times that this code can be used regardless of Order or Customer.
- See Also:
-
getContextState
public com.broadleafcommerce.data.tracking.core.EmbeddedContextState getContextState()A subset ofTrackinginformation to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetailsfor the parent object's entireattributesmap are compared.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware- Returns:
- a subset of
Trackinginformation to expose the context state for this object
-
setRelatedOfferRef
The id of an offer for which combinability is being overridden for this offer.- Parameters:
relatedOfferRef- The context id of a related offer.
-
setOverrideType
The type of override being performed for this offer combination.- Parameters:
maxUses- the maximum number of times that this code can be used regardless of Order or Customer.- See Also:
-
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) A subset ofTrackinginformation to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetailsfor the parent object's entireattributesmap are compared.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-