public class AddPromotionCodeToOrderCOTaskCmdImpl extends AbstractAddPromotionCodeToOrderTaskCmdImpl implements AddPromotionCodeToOrderTaskCmd
Constructor and Description |
---|
AddPromotionCodeToOrderCOTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | addUniquePromotionCodeToOrder(java.lang.Long orderId, java.lang.String code)
This method is used to add unique promotion code to order.
|
protected java.lang.Short | checkPromotionCodeImplType(java.lang.String code)
This method returns the promotion code implementation type.
|
protected boolean | isUniquePromotionCodeReleaseable(com.ibm.commerce.promotion.facade.server.entity.datatypes.Px_cdusage cdusage)
This method is used to judge if the unique promotion code can release to another order.
|
void | performExecute()
This method executes the business logic of this command implementation.
|
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.
|
protected boolean | validateUniqueCodeUsageStatus(int status)
This method validates if a unique promotion code can adds to an order by its usage status.
|
public AddPromotionCodeToOrderCOTaskCmdImpl()
protected java.lang.Short checkPromotionCodeImplType(java.lang.String code) throws ECException
protected void addUniquePromotionCodeToOrder(java.lang.Long orderId, java.lang.String code) throws ECException
protected boolean isUniquePromotionCodeReleaseable(com.ibm.commerce.promotion.facade.server.entity.datatypes.Px_cdusage cdusage) throws ECException
protected boolean validateUniqueCodeUsageStatus(int status)
public void reset()
public void performExecute() throws ECException
The business logic of this command implementation is responsible for adding a promotion code to an order. *
public void setOrderId(java.lang.Long orderId)
public void setPromotionCode(java.lang.String promotionCode)
public void setPromotionCodeType(java.lang.Short promotionCodeType)