public class RemovePromotionCodeFromOrderTaskCmdImpl extends AbstractRemovePromotionCodeFromOrderTaskCmdImpl implements RemovePromotionCodeFromOrderTaskCmd
This class extends AbstractRemovePromotionCodeFromOrderTaskCmdImpl.
This is the default implementation for RemovePromotionCodeFromOrderTaskCmd task command.
Constructor and Description |
---|
RemovePromotionCodeFromOrderTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Short | checkPromotionCodeImplType(java.lang.String code)
This method is used to check the promotion code implementation type.
|
void | performExecute()
This method executes the business logic of this command implementation.
|
protected void | removeUniquePromotionCodeFromOrder(java.lang.Long orderId, java.lang.String code)
This method is does nothing.
|
void | reset()
This method is called after a command has been executed.
|
void | setOrderId(java.lang.Long orderId)
This is the method to set order id.
|
void | setPromotionCode(java.lang.String promotionCode)
This is the method to set promotion code.
|
void | setPromotionCodeType(java.lang.Short promotionCodeType)
This method sets the implementation type that is used for promotion code.
|
public RemovePromotionCodeFromOrderTaskCmdImpl()
protected void removeUniquePromotionCodeFromOrder(java.lang.Long orderId, java.lang.String code) throws ECException
public void performExecute() throws ECException
The business logic of this command implementation is responsible for removing a promotion code from an order.
public void setOrderId(java.lang.Long orderId)
public void setPromotionCode(java.lang.String promotionCode)
public void setPromotionCodeType(java.lang.Short promotionCodeType)
protected java.lang.Short checkPromotionCodeImplType(java.lang.String code) throws ECException
public void reset()