Class RejectMapResponse
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.mapping.RejectMapResponse
-
public class RejectMapResponse extends Object
The result of a request to reject a previous promotion- Author:
- Jeff Fischer
-
-
Constructor Summary
Constructors Constructor Description RejectMapResponse(Trackable userState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)TrackablegetAdvancedState()The resulting promotion sandbox state after anyChangeDetailinstances have been removed, and the entity state updated to reflect the removal.TrackablegetUserState()The resulting user sandbox state after the reject request.inthashCode()booleanisShouldArchiveAdvancedState()voidsetAdvancedState(Trackable advancedState)The resulting promotion sandbox state after anyChangeDetailinstances have been removed, and the entity state updated to reflect the removal.voidsetShouldArchiveAdvancedState(boolean shouldArchiveAdvancedState)StringtoString()RejectMapResponsewithAdvancedState(Trackable advancedState)RejectMapResponsewithShouldArchiveAdvancedState(boolean shouldArchiveAdvancedState)
-
-
-
Constructor Detail
-
RejectMapResponse
public RejectMapResponse(Trackable userState)
-
-
Method Detail
-
withAdvancedState
public RejectMapResponse withAdvancedState(Trackable advancedState)
-
withShouldArchiveAdvancedState
public RejectMapResponse withShouldArchiveAdvancedState(boolean shouldArchiveAdvancedState)
-
getAdvancedState
public Trackable getAdvancedState()
The resulting promotion sandbox state after anyChangeDetailinstances have been removed, and the entity state updated to reflect the removal. This can be null in cases where the reject request resulted in the removal of all change details.- Returns:
- The resulting promotion sandbox state after a reject request
-
getUserState
public Trackable getUserState()
The resulting user sandbox state after the reject request. The user state contains only changes related to the rejected promotion.- Returns:
- The resulting user sandbox state after the reject request
-
isShouldArchiveAdvancedState
public boolean isShouldArchiveAdvancedState()
-
setAdvancedState
public void setAdvancedState(Trackable advancedState)
The resulting promotion sandbox state after anyChangeDetailinstances have been removed, and the entity state updated to reflect the removal. This can be null in cases where the reject request resulted in the removal of all change details.- Parameters:
advancedState- The resulting promotion sandbox state after a reject request
-
setShouldArchiveAdvancedState
public void setShouldArchiveAdvancedState(boolean shouldArchiveAdvancedState)
-
canEqual
protected boolean canEqual(Object other)
-
-