public abstract class AbstractRestoreUnusedPromotionCodeTaskCmdImpl extends TaskCommandImpl implements RestoreUnusedPromotionCodeTaskCmd
Constructor and Description |
---|
AbstractRestoreUnusedPromotionCodeTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void | performExecute()
This method executes the business logic of this command implementation.
The business logic of this command implementation is responsible for restoring promotion codes from an order. |
protected void | restoreUnusedPublicPromotionCode(java.lang.Long orderId)
This method is used to restore public promotion codes from order
|
protected abstract void | restoreUnusedUniquePromotionCode(java.lang.Long orderId)
This abstract method is used to restore unique promotion codes from order
|
void | setOrderId(java.lang.Long orderId)
This is the method declaration to Set Order Id.
|
void | setPromotionCodeType(java.lang.Short promotionCodeType)
This method sets the implementation type that is used for promotion code.
|
void | validateParameters()
This method validates if the task command can be executed or not.
If the order id or promotion code is not correctly set, throw exception. |
public AbstractRestoreUnusedPromotionCodeTaskCmdImpl()
public void performExecute() throws ECException
protected void restoreUnusedPublicPromotionCode(java.lang.Long orderId) throws ECException
protected abstract void restoreUnusedUniquePromotionCode(java.lang.Long orderId) throws ECException
public void validateParameters() throws ECException
public void setOrderId(java.lang.Long orderId)
public void setPromotionCodeType(java.lang.Short promotionCodeType)