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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe author responsible for the change.All of the information contained withinTrackingfor 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 implementsIndexableand is a member ofBatchIndexableType, reference the id of the target item to be indexed.If the change implementsIndexableand is a member ofBatchIndexableType, reference the string value ofBatchIndexableTypehere 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.inthashCode()booleanWhether or not the sandbox denoted withgetSandbox()should be created if it does not already exist.booleanWhether or not the resulting state in the sandbox service represents a promoted item.booleanWhether or not to remove temporary application catalog override state at the edges of sandbox transition.booleanWhether or not the sandbox denoted atgetSandbox()is temporary and should be removed at the end of the sandbox transition lifecycle.voidThe author responsible for the change.voidsetChangeTracking(Tracking changeTracking) All of the information contained withinTrackingfor the record of this change.voidsetCreateSandboxIfDoesNotExist(boolean createSandboxIfDoesNotExist) Whether or not the sandbox denoted withgetSandbox()should be created if it does not already exist.voidsetDisplayName(String displayName) The name to display to the user that represents this change summary.voidsetDomainAlias(String domainAlias) The projection domain alias for this change, represented as the class simple name, i.e., Product.voidsetDomainContextId(String domainContextId) The contextId of the domain object that underwent the change.voidsetEntityType(String entityType) The entity type for this change, represented as the fully qualified classname.voidsetIndexableTargetId(String indexableTargetId) If the change implementsIndexableand is a member ofBatchIndexableType, reference the id of the target item to be indexed.voidsetIndexableType(String indexableType) If the change implementsIndexableand is a member ofBatchIndexableType, reference the string value ofBatchIndexableTypehere for the target item to be indexed.voidsetPromoted(boolean isPromoted) Whether or not the resulting state in the sandbox service represents a promoted item.voidsetPromotionId(String promotionId) The promotion id to associate with this change event whenisPromoted()is true.voidsetRemoveTemporaryOverride(boolean isRemoveTemporaryOverride) Whether or not to remove temporary application catalog override state at the edges of sandbox transition.voidsetSandbox(String sandbox) The sandbox that contains the change.voidsetSandboxName(String sandboxName) The sandbox name to use if creating a sandbox.voidsetTemporarySandbox(boolean isTemporarySandbox) Whether or not the sandbox denoted atgetSandbox()is temporary and should be removed at the end of the sandbox transition lifecycle.voidsetVendorRef(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 withinTrackingfor the record of this change.- Returns:
- All of the information contained within
Trackingfor 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 implementsIndexableand is a member ofBatchIndexableType, reference the string value ofBatchIndexableTypehere 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 implementsIndexableand 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. SeeVendorSandboxPropagationHandlerfor 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 withinTrackingfor the record of this change.- Parameters:
changeTracking- All of the information contained withinTrackingfor 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 implementsIndexableand is a member ofBatchIndexableType, reference the string value ofBatchIndexableTypehere 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 implementsIndexableand 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. SeeVendorSandboxPropagationHandlerfor 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
-