public abstract class AbstractCopyOrderPromotionCodeTaskCmdImpl extends TaskCommandImpl implements CopyOrderPromotionCodeTaskCmd
Constructor and Description |
---|
AbstractCopyOrderPromotionCodeTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | copyPublicPromotionCode(java.lang.Long[] fromOrderIds, java.lang.Long toOrderId, java.lang.String code)
This method is used to copy public promotion code to order
|
protected abstract void | copyUniquePromotionCode(java.lang.Long[] fromOrderIds, java.lang.Long toOrderId, java.lang.String code)
This abstract method is used to copy unique promotion code to order
|
void | performExecute()
This method executes the business logic of this command implementation.
|
void | setFromOrderIds(java.lang.Long[] orderIds)
This is the method declaration to Set From Order Id array.
|
void | setPromotionCode(java.lang.String promotionCode)
This is the method declaration to Set Promotion Code.
|
void | setPromotionCodeType(java.lang.Short promotionCodeType)
This method sets the implementation type that is used for promotion code.
|
void | setToOrderId(java.lang.Long orderId)
This is the method declaration to Set To Order Id.
|
public AbstractCopyOrderPromotionCodeTaskCmdImpl()
public void performExecute() throws ECException
The business logic of this command implementation is responsible for copy a promotion code to an order.
protected void copyPublicPromotionCode(java.lang.Long[] fromOrderIds, java.lang.Long toOrderId, java.lang.String code) throws ECException
protected abstract void copyUniquePromotionCode(java.lang.Long[] fromOrderIds, java.lang.Long toOrderId, java.lang.String code) throws ECException
public void setToOrderId(java.lang.Long orderId)
public void setFromOrderIds(java.lang.Long[] orderIds)
public void setPromotionCode(java.lang.String promotionCode)
public void setPromotionCodeType(java.lang.Short promotionCodeType)