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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.EmbeddedContextState
A subset ofTracking
information 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.int
hashCode()
void
setContextState
(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setOverrideType
(String overrideType) The type of override being performed for this offer combination.void
setRelatedOfferRef
(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 ofTracking
information to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetails
for the parent object's entireattributes
map are compared.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
- Returns:
- a subset of
Tracking
information 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 ofTracking
information to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetails
for the parent object's entireattributes
map are compared.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-