com.ibm.commerce.contract.commands
Interface ValidateContractCmd

All Superinterfaces:
TaskCommand
All Known Implementing Classes:
ValidateContractCmdImpl

public interface ValidateContractCmd
extends TaskCommand

Validate the contract (WebSphere Commerce Business Edition only). Calling commands: ContractImportApprovedVersion, ContractSubmitPreApproval, ContractDeploy


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
static java.lang.String defaultCommandClassName
          The name of the default implementation class.
static java.lang.String NAME
          The name of this interface.
 
Method Summary
 void checkIsContractExpired()
          Validates if the contract is expired
 java.lang.Long getContractId()
          Returns the ID of the contract to validate.
  TypedProperty getResponseProperties()
          Returns the response properties.
 void otherValidateCheck()
          Other contract validation checking.
 void setContractId(java.lang.Long contractId)
          Sets the ID of the contract to validate.
 void setResponseProperties( TypedProperty respProps)
          Sets the response properties.
 void setReturnViewForTools(java.lang.String returnView)
          Sets the return view for the tools GUI
 void validateAccountRelatedInfo()
          Validates account related Information in the contract if the contract referred to a business account.
 void validateBuyerParticipant()
          Validates Buyer participant(s) in the contract.
 void validateSellerParticipant()
          Validates Seller participant in the contract.
 void validateTCOccurrence()
          Validates the occurrence of the Terms and Conditions in the contract.
 void validateTCType()           Validates the type of the Terms and Conditions in the contract.
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
The name of this interface.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The name of the default implementation class.
See Also:
Constant Field Values
Method Detail

checkIsContractExpired

public void checkIsContractExpired()
                            throws ECException,
                                   CreateException,
                                   java.rmi.RemoteException,
                                   FinderException,
                                   javax.naming.NamingException
Validates if the contract is expired
Throws:
com.ibm.commerce.exception.ECException.
java.rmi.RemoteException.
javax.ejb.CreateException.
javax.ejb.FinderException.
javax.naming.NamingException.
ECException
CreateException
java.rmi.RemoteException
FinderException
javax.naming.NamingException

getContractId

public java.lang.Long getContractId()
Returns the ID of the contract to validate.
Returns:
the contract ID

getResponseProperties

public TypedProperty getResponseProperties()
Returns the response properties.
Returns:
responseProperties the response properties

otherValidateCheck

public void otherValidateCheck()
                        throws ECException,
                               CreateException,
                               java.rmi.RemoteException,
                               FinderException,
                               javax.naming.NamingException
Other contract validation checking. Override this method to add more contract validation.
Throws:
com.ibm.commerce.exception.ECException.
java.rmi.RemoteException.
javax.ejb.CreateException.
javax.ejb.FinderException.
javax.naming.NamingException.
ECException
CreateException
java.rmi.RemoteException
FinderException
javax.naming.NamingException

setContractId

public void setContractId(java.lang.Long contractId)
Sets the ID of the contract to validate.
Parameters:
contractId - the contract ID

setResponseProperties

public void setResponseProperties(TypedProperty respProps)
Sets the response properties.
Parameters:
respProps - the response properties

setReturnViewForTools

public void setReturnViewForTools(java.lang.String returnView)
Sets the return view for the tools GUI
Parameters:
returnView - the return view name

validateAccountRelatedInfo

public void validateAccountRelatedInfo()
                                throws ECException,
                                       CreateException,
                                       java.rmi.RemoteException,
                                       FinderException,
                                       javax.naming.NamingException
Validates account related Information in the contract if the contract referred to a business account.
Throws:
com.ibm.commerce.exception.ECException.
java.rmi.RemoteException.
javax.ejb.CreateException.
javax.ejb.FinderException.
javax.naming.NamingException.
ECException
CreateException
java.rmi.RemoteException
FinderException
javax.naming.NamingException

validateBuyerParticipant

public void validateBuyerParticipant()
                              throws ECException,
                                     CreateException,
                                     java.rmi.RemoteException,
                                     FinderException,
                                     javax.naming.NamingException
Validates Buyer participant(s) in the contract.
Throws:
com.ibm.commerce.exception.ECException.
java.rmi.RemoteException.
javax.ejb.CreateException.
javax.ejb.FinderException.
javax.naming.NamingException.
ECException
CreateException
java.rmi.RemoteException
FinderException
javax.naming.NamingException

validateSellerParticipant

public void validateSellerParticipant()
                               throws ECException,
                                      CreateException,
                                      java.rmi.RemoteException,
                                      FinderException,
                                      javax.naming.NamingException
Validates Seller participant in the contract.
Throws:
com.ibm.commerce.exception.ECException.
java.rmi.RemoteException.
javax.ejb.CreateException.
javax.ejb.FinderException.
javax.naming.NamingException.
ECException
CreateException
java.rmi.RemoteException
FinderException
javax.naming.NamingException

validateTCOccurrence

public void validateTCOccurrence()
                          throws ECException,
                                 CreateException,
                                 java.rmi.RemoteException,
                                 FinderException,
                                 javax.naming.NamingException
Validates the occurrence of the Terms and Conditions in the contract.
Throws:
com.ibm.commerce.exception.ECException.
java.rmi.RemoteException.
javax.ejb.CreateException.
javax.ejb.FinderException.
javax.naming.NamingException.
ECException
CreateException
java.rmi.RemoteException
FinderException
javax.naming.NamingException

validateTCType

public void validateTCType()
                    throws ECException,
                           CreateException,
                           java.rmi.RemoteException,
                           FinderException,
                           javax.naming.NamingException
Validates the type of the Terms and Conditions in the contract.
Throws:
com.ibm.commerce.exception.ECException.
java.rmi.RemoteException.
javax.ejb.CreateException.
javax.ejb.FinderException.
javax.naming.NamingException.
ECException
CreateException
java.rmi.RemoteException
FinderException
javax.naming.NamingException