public class DeployContractCmdImpl extends TaskCommandImpl implements DeployContractCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The name of this class is "com.ibm.commerce.contract.commands.DeployContractCmdImpl".
|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
static java.lang.String | PRICE_RULE_TC
Constant for price rule term condition.
|
static java.lang.String | PRICE_RULE_TC_PROPERTY_BEGIN_DATE
Constant for the name of the price rule begin date property in the price rule term condition.
|
static java.lang.String | PRICE_RULE_TC_PROPERTY_EXPIRY_DATE
Constant for the name of the price rule expiry date property in the price rule term condition.
|
static java.lang.String | PRICE_RULE_TC_PROPERTY_RULE_ID
Constant for the name of the price rule identifier property in the price rule term condition.
|
Constructor and Description |
---|
DeployContractCmdImpl()
The default constructor
|
Modifier and Type | Method and Description |
---|---|
java.sql.Timestamp | getCurrentTime(CommandContext commandContext)
Returns the current time from the command context.
|
ExtendedTermConditionAccessBean | getValidPriceRuleExtendeTC(java.lang.Long contractID, java.lang.Long memberID, java.sql.Timestamp currentTime) |
boolean | isValidDate(java.sql.Timestamp beginDate, java.sql.Timestamp expiryDate, java.sql.Timestamp currentTime)
Check whether the date is valid compared with the current time.
|
boolean | isValidPriceRuleId(java.lang.String priceRuleId)
Check whether the price rule id is not empty
|
void | performExecute()
Executes the business logic of this command implementation.
|
void | setContractId(java.lang.Long newContractId)
Sets the contract Id
|
void | setMaxContractNameLength(int maxLength)
Sets the Maximum length of the contract name.
|
void | setRequestProperties(TypedProperty aRequestProperties)
Sets the requestProperties.
|
void | setSynchronousDeployment(boolean synchronousDeploymentFlag)
Sets the synchronousDeployment flag to indicate contract should be deployed synchronously.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public static final java.lang.String PRICE_RULE_TC
public static final java.lang.String PRICE_RULE_TC_PROPERTY_RULE_ID
public static final java.lang.String PRICE_RULE_TC_PROPERTY_BEGIN_DATE
public static final java.lang.String PRICE_RULE_TC_PROPERTY_EXPIRY_DATE
public void performExecute() throws ECException
public void setContractId(java.lang.Long newContractId)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public java.sql.Timestamp getCurrentTime(CommandContext commandContext)
public ExtendedTermConditionAccessBean getValidPriceRuleExtendeTC(java.lang.Long contractID, java.lang.Long memberID, java.sql.Timestamp currentTime) throws ECSystemException
public boolean isValidDate(java.sql.Timestamp beginDate, java.sql.Timestamp expiryDate, java.sql.Timestamp currentTime)
public boolean isValidPriceRuleId(java.lang.String priceRuleId)
public void setMaxContractNameLength(int maxLength)
public void setSynchronousDeployment(boolean synchronousDeploymentFlag)