public class ValidateContractCmdImpl extends TaskCommandImpl implements ValidateContractCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The full name of this command.
|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
ValidateContractCmdImpl()
Constructor for ValidateContractCmdImpl
|
Modifier and Type | Method and Description |
---|---|
void | checkContractReference()
In this default implementation, we validate the contract you refer to is an active contract
|
void | checkIsContractExpired()
In this default implementation, we validate if the contract is expired.
|
java.lang.Long | getContractId()
Returns the ID of the contract to validate.
|
TypedProperty | getResponseProperties()
Returns the response properties.
|
protected boolean | isOverlap(java.sql.Timestamp startTime1, java.sql.Timestamp endTime1, java.sql.Timestamp startTime2, java.sql.Timestamp endTime2)
Check whether the effective time overlapped
|
void | otherValidateCheck()
Overrides this method to add additional contract validation.
|
void | performExecute()
Executes the business logic of this command implementation to validate the specified contract.
|
void | setContractId(java.lang.Long newContractId)
Sets the id of the contract to validate
|
void | setResponseProperties(TypedProperty resp)
sets the ResponseProperties
|
void | setReturnViewForTools(java.lang.String returnView)
Sets the return view for the tools GUI
|
void | setStoreId(java.lang.Integer storeId)
Sets the target store ID.
|
void | validateAccountRelatedInfo()
Validates business account related Information in the contract.
|
void | validateBuyerParticipant()
Validates Buyer participant in contract.
|
protected void | validateCatalogFilterTC()
This method is used to validate whether the catalog filter term and condition is valid.
|
protected void | validateParticipantsForHostingContract()
Validates participants in reseller contract.
|
protected void | validateParticipantsForReferralContract()
Validates participants in distributor contract.
|
void | validatePriceRuleTC()
Validates the price rule TC in the contract.
|
void | validateSellerParticipant()
Validates Seller participant in contract In this default implementation, this method checks: 1.
|
void | validateTCOccurrence()
Validates the occurrence of the Terms and Conditions in the contract.
|
protected void | validateTCOccurrenceForHostingContract()
Validates the occurrence of the Terms and Conditions in the reseller contract.
|
protected void | validateTCOccurrenceForReferralContract()
Validates the occurrence of the Terms and Conditions in the distributor contract.
|
void | validateTCType()
Validates the type of the Terms and Conditions in the contract.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public ValidateContractCmdImpl()
public void setStoreId(java.lang.Integer storeId)
public void checkIsContractExpired() throws ECException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public java.lang.Long getContractId()
public TypedProperty getResponseProperties()
public void otherValidateCheck() throws ECException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public void setContractId(java.lang.Long newContractId)
public void setResponseProperties(TypedProperty resp)
public void setReturnViewForTools(java.lang.String returnView)
public void validateAccountRelatedInfo() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public void validateBuyerParticipant() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public void validateSellerParticipant() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public void validateTCOccurrence() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public void validateTCType() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public void validatePriceRuleTC() throws ECApplicationException, javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, java.sql.SQLException
protected boolean isOverlap(java.sql.Timestamp startTime1, java.sql.Timestamp endTime1, java.sql.Timestamp startTime2, java.sql.Timestamp endTime2)
public void performExecute() throws ECException
protected void validateParticipantsForReferralContract() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected void validateParticipantsForHostingContract() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected void validateTCOccurrenceForReferralContract() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected void validateTCOccurrenceForHostingContract() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public void checkContractReference() throws ECException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
protected void validateCatalogFilterTC() throws java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.CreateException, javax.ejb.FinderException, ECException, java.sql.SQLException, java.lang.NumberFormatException