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 boolean
canEqual(Object other)
boolean
equals(Object o)
Trackable
getAdvancedState()
The resulting promotion sandbox state after anyChangeDetail
instances have been removed, and the entity state updated to reflect the removal.Trackable
getUserState()
The resulting user sandbox state after the reject request.int
hashCode()
boolean
isShouldArchiveAdvancedState()
void
setAdvancedState(Trackable advancedState)
The resulting promotion sandbox state after anyChangeDetail
instances have been removed, and the entity state updated to reflect the removal.void
setShouldArchiveAdvancedState(boolean shouldArchiveAdvancedState)
String
toString()
RejectMapResponse
withAdvancedState(Trackable advancedState)
RejectMapResponse
withShouldArchiveAdvancedState(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 anyChangeDetail
instances 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 anyChangeDetail
instances 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)
-
-