public abstract class AbstractResolvePromotionCodeTaskCmdImpl extends TaskCommandImpl implements ResolvePromotionCodeTaskCmd
Constructor and Description |
---|
AbstractResolvePromotionCodeTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected boolean | correctCode(java.lang.String source, java.lang.String code)
Checks to see if an entered promotion code is part of the promotion codes associated with a promotion.
|
protected java.lang.Integer | getInputStoreId()
Gets the store ID specified for this command.
|
java.lang.Short | getPromotionCodeType()
This method returns the implementation type that is used for promotion code.
|
PromotionKey[] | getPromotionKeys()
This is the method declaration to get the PromotionKey array.
|
void | performExecute()
The main business logic to execute the command.
|
void | reset()
This method is called after a command has been executed.
|
protected PromotionKey[] | resolvePublicPromotionCode(java.lang.String code, java.lang.Integer storeId)
This method is used to resolve public promotion code
|
protected abstract PromotionKey[] | resolvUniquePromotionCode(java.lang.String code, java.util.List listPromotionStatus)
This abstract method is used to resolve unique promotion code
|
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 | setPromotionStatus(java.util.List listPromotionStatus)
This is the method declaration to Set Promotion Status.
|
void | setSeparator(java.lang.String separator)
This is the method declaration to Set Separator.
|
void | setStoreId(java.lang.Integer storeId)
This is the method declaration to Set Store Id.
|
void | validateParameters()
This method validates if the task command can be executed or not.
If the store id or promotion code is not correctly set, throw exception. |
public AbstractResolvePromotionCodeTaskCmdImpl()
public void setPromotionCode(java.lang.String promotionCode)
public void setStoreId(java.lang.Integer storeId)
public void setPromotionStatus(java.util.List listPromotionStatus)
public PromotionKey[] getPromotionKeys()
public void setSeparator(java.lang.String separator)
public void setPromotionCodeType(java.lang.Short promotionCodeType)
public java.lang.Short getPromotionCodeType()
public void performExecute() throws ECException
The business logic of this command implementation is responsible for resolving promotion code.
protected PromotionKey[] resolvePublicPromotionCode(java.lang.String code, java.lang.Integer storeId) throws ECException
protected abstract PromotionKey[] resolvUniquePromotionCode(java.lang.String code, java.util.List listPromotionStatus) throws ECException
public void reset()
public void validateParameters() throws ECException
protected boolean correctCode(java.lang.String source, java.lang.String code)
protected java.lang.Integer getInputStoreId()