Class ChangeEvent
java.lang.Object
com.broadleafcommerce.data.tracking.core.messaging.domain.ChangeEvent
- All Implemented Interfaces:
Serializable
Detailed summary information of a change made to an instance of a sandboxable entity.
- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The author responsible for the change.All of the information contained withinTracking
for the record of this change.The name to display to the user that represents this change summary.The projection domain alias for this change, represented as the class simple name, i.e., Product.The contextId of the domain object that underwent the change.The entity type for this change, represented as the fully qualified classname.If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the id of the target item to be indexed.If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the string value ofBatchIndexableType
here for the target item to be indexed.The promotion id to associate with this change event whenisPromoted()
is true.The sandbox that contains the change.The sandbox name to use if creating a sandbox.The vendor code or vendor ID associated to the changed entity.int
hashCode()
boolean
Whether or not the sandbox denoted withgetSandbox()
should be created if it does not already exist.boolean
Whether or not the resulting state in the sandbox service represents a promoted item.boolean
Whether or not to remove temporary application catalog override state at the edges of sandbox transition.boolean
Whether or not the sandbox denoted atgetSandbox()
is temporary and should be removed at the end of the sandbox transition lifecycle.void
The author responsible for the change.void
setChangeTracking
(Tracking changeTracking) All of the information contained withinTracking
for the record of this change.void
setCreateSandboxIfDoesNotExist
(boolean createSandboxIfDoesNotExist) Whether or not the sandbox denoted withgetSandbox()
should be created if it does not already exist.void
setDisplayName
(String displayName) The name to display to the user that represents this change summary.void
setDomainAlias
(String domainAlias) The projection domain alias for this change, represented as the class simple name, i.e., Product.void
setDomainContextId
(String domainContextId) The contextId of the domain object that underwent the change.void
setEntityType
(String entityType) The entity type for this change, represented as the fully qualified classname.void
setIndexableTargetId
(String indexableTargetId) If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the id of the target item to be indexed.void
setIndexableType
(String indexableType) If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the string value ofBatchIndexableType
here for the target item to be indexed.void
setPromoted
(boolean isPromoted) Whether or not the resulting state in the sandbox service represents a promoted item.void
setPromotionId
(String promotionId) The promotion id to associate with this change event whenisPromoted()
is true.void
setRemoveTemporaryOverride
(boolean isRemoveTemporaryOverride) Whether or not to remove temporary application catalog override state at the edges of sandbox transition.void
setSandbox
(String sandbox) The sandbox that contains the change.void
setSandboxName
(String sandboxName) The sandbox name to use if creating a sandbox.void
setTemporarySandbox
(boolean isTemporarySandbox) Whether or not the sandbox denoted atgetSandbox()
is temporary and should be removed at the end of the sandbox transition lifecycle.void
setVendorRef
(String vendorRef) The vendor code or vendor ID associated to the changed entity.toString()
-
Constructor Details
-
ChangeEvent
public ChangeEvent()
-
-
Method Details
-
getDomainContextId
The contextId of the domain object that underwent the change.- Returns:
- The contextId of the domain object that underwent the change
-
getDomainAlias
The projection domain alias for this change, represented as the class simple name, i.e., Product.- Returns:
- The projection domain alias for this change
-
getEntityType
The entity type for this change, represented as the fully qualified classname.- Returns:
- The entity type for this change
-
getAuthor
The author responsible for the change.- Returns:
- The author responsible for this change
-
getSandbox
The sandbox that contains the change.- Returns:
- The sandbox that contains the change
-
getSandboxName
The sandbox name to use if creating a sandbox.This is generally only used if
isCreateSandboxIfDoesNotExist()
is true.- Returns:
- The sandbox name to use if creating a sandbox
-
getChangeTracking
All of the information contained withinTracking
for the record of this change.- Returns:
- All of the information contained within
Tracking
for the record of this change
-
getDisplayName
The name to display to the user that represents this change summary. Typically retrieved fromTrackable.getDisplay()
.- Returns:
- The name to display to the user that represents this change summary
-
getIndexableType
If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the string value ofBatchIndexableType
here for the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct
, the target item to be indexed is actually the referenced product. -
getIndexableTargetId
If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the id of the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct
, the target item to be indexed is actually the referenced product. -
isPromoted
public boolean isPromoted()Whether or not the resulting state in the sandbox service represents a promoted item. Note, the related entity in the resource tier must be persisted in the appropriate promoted state as well. -
getPromotionId
The promotion id to associate with this change event whenisPromoted()
is true. -
isCreateSandboxIfDoesNotExist
public boolean isCreateSandboxIfDoesNotExist()Whether or not the sandbox denoted withgetSandbox()
should be created if it does not already exist. The information supplied ingetSandboxName()
andisTemporarySandbox()
will be used to populate the corresponding fields on the sandbox. -
isTemporarySandbox
public boolean isTemporarySandbox()Whether or not the sandbox denoted atgetSandbox()
is temporary and should be removed at the end of the sandbox transition lifecycle.This will only be used if
isCreateSandboxIfDoesNotExist()
is true. -
isRemoveTemporaryOverride
public boolean isRemoveTemporaryOverride()Whether or not to remove temporary application catalog override state at the edges of sandbox transition. This includes revert or deploy. Temporary application override state can occur during parent catalog deployment propagation. SeeVendorSandboxPropagationHandler
for more information. -
getVendorRef
The vendor code or vendor ID associated to the changed entity.If the entity is not vendor-discriminated or simply doesn't have an associated vendor, this will be null.
-
setDomainContextId
The contextId of the domain object that underwent the change.- Parameters:
domainContextId
- The contextId of the domain object that underwent the change
-
setDomainAlias
The projection domain alias for this change, represented as the class simple name, i.e., Product.- Parameters:
domainAlias
- The projection domain alias for this change
-
setEntityType
The entity type for this change, represented as the fully qualified classname.- Parameters:
entityType
- The entity type for this change
-
setAuthor
The author responsible for the change.- Parameters:
author
- The author responsible for this change
-
setSandbox
The sandbox that contains the change.- Parameters:
sandbox
- The sandbox that contains the change
-
setSandboxName
The sandbox name to use if creating a sandbox.This is generally only used if
isCreateSandboxIfDoesNotExist()
is true.- Parameters:
The
- sandbox name to use if creating a sandbox
-
setChangeTracking
All of the information contained withinTracking
for the record of this change.- Parameters:
changeTracking
- All of the information contained withinTracking
for the record of this change
-
setDisplayName
The name to display to the user that represents this change summary. Typically retrieved fromTrackable.getDisplay()
.- Parameters:
displayName
- The name to display to the user that represents this change summary
-
setIndexableType
If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the string value ofBatchIndexableType
here for the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct
, the target item to be indexed is actually the referenced product. -
setIndexableTargetId
If the change implementsIndexable
and is a member ofBatchIndexableType
, reference the id of the target item to be indexed. Note, this may not be the entity actually being changed here. If, for example, this change is for aCatalogProduct
, the target item to be indexed is actually the referenced product. -
setPromoted
public void setPromoted(boolean isPromoted) Whether or not the resulting state in the sandbox service represents a promoted item. Note, the related entity in the resource tier must be persisted in the appropriate promoted state as well. -
setPromotionId
The promotion id to associate with this change event whenisPromoted()
is true. -
setCreateSandboxIfDoesNotExist
public void setCreateSandboxIfDoesNotExist(boolean createSandboxIfDoesNotExist) Whether or not the sandbox denoted withgetSandbox()
should be created if it does not already exist. The information supplied ingetSandboxName()
andisTemporarySandbox()
will be used to populate the corresponding fields on the sandbox. -
setTemporarySandbox
public void setTemporarySandbox(boolean isTemporarySandbox) Whether or not the sandbox denoted atgetSandbox()
is temporary and should be removed at the end of the sandbox transition lifecycle.This will only be used if
isCreateSandboxIfDoesNotExist()
is true. -
setRemoveTemporaryOverride
public void setRemoveTemporaryOverride(boolean isRemoveTemporaryOverride) Whether or not to remove temporary application catalog override state at the edges of sandbox transition. This includes revert or deploy. Temporary application override state can occur during parent catalog deployment propagation. SeeVendorSandboxPropagationHandler
for more information. -
setVendorRef
The vendor code or vendor ID associated to the changed entity.If the entity is not vendor-discriminated or simply doesn't have an associated vendor, this will be null.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-