com.ibm.commerce.contract.commands
Interface ValidateContractCmd

All Superinterfaces:
ECCommand, 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
          The internal copyright field.
static java.lang.String defaultCommandClassName
          The default implementation class is "com.ibm.commerce.contract.commands.ValidateContractCmdImpl".
static java.lang.String NAME
          The name of this interface is "com.ibm.commerce.contract.commands.ValidateContractCmd".
 
Method Summary
 void checkIsContractExpired()
          Validate if the contract is expired
 java.lang.Long getContractId()
          Return the id of the contract
 TypedProperty getResponseProperties()
          Return the responseProperties
 void otherValidateCheck()
          Other validation check
 void setContractId(java.lang.Long contractId)
          Set the id of the contract to validate
 void setResponseProperties(TypedProperty respProps)
          set the ResponseProperties
 void setReturnViewForTools(java.lang.String returnView)
          Set the return view for Tools
 void validateAccountRelatedInfo()
          Validate account related Information in the contract
 void validateBuyerParticipant()
          Validate Buyer participant in contract
 void validateSellerParticipant()
          Validate Seller participant in contract
 void validateTCOccurrence()
          Validate the occurrence of the Terms and Conditions in the contract
 void validateTCType()
          Validate the type of the Terms and Conditions in the contract
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
The internal copyright field.

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class is "com.ibm.commerce.contract.commands.ValidateContractCmdImpl".

NAME

public static final java.lang.String NAME
The name of this interface is "com.ibm.commerce.contract.commands.ValidateContractCmd".
Method Detail

checkIsContractExpired

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

getContractId

public java.lang.Long getContractId()
Return the id of the contract
Returns:
java.lang.Long

getResponseProperties

public TypedProperty getResponseProperties()
Return the responseProperties
Returns:
responseProperties com.ibm.commerce.datatype.TypedProperty

otherValidateCheck

public void otherValidateCheck()
                        throws ECException,
                               javax.ejb.CreateException,
                               java.rmi.RemoteException,
                               javax.ejb.FinderException,
                               javax.naming.NamingException
Other validation check
Throws:
com.ibm.commerce.exception.ECException. -  
java.rmi.RemoteException. -  
javax.ejb.CreateException. -  
javax.ejb.FinderException. -  
javax.naming.NamingException. -  

setContractId

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

setResponseProperties

public void setResponseProperties(TypedProperty respProps)
set the ResponseProperties
Parameters:
respProps - com.ibm.commerce.datatype.TypedProperty

setReturnViewForTools

public void setReturnViewForTools(java.lang.String returnView)
Set the return view for Tools
Parameters:
returnView - java.lang.String

validateAccountRelatedInfo

public void validateAccountRelatedInfo()
                                throws ECException,
                                       javax.ejb.CreateException,
                                       java.rmi.RemoteException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException
Validate account related Information in the contract
Throws:
com.ibm.commerce.exception.ECException. -  
java.rmi.RemoteException. -  
javax.ejb.CreateException. -  
javax.ejb.FinderException. -  
javax.naming.NamingException. -  

validateBuyerParticipant

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

validateSellerParticipant

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

validateTCOccurrence

public void validateTCOccurrence()
                          throws ECException,
                                 javax.ejb.CreateException,
                                 java.rmi.RemoteException,
                                 javax.ejb.FinderException,
                                 javax.naming.NamingException
Validate 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. -  

validateTCType

public void validateTCType()
                    throws ECException,
                           javax.ejb.CreateException,
                           java.rmi.RemoteException,
                           javax.ejb.FinderException,
                           javax.naming.NamingException
Validate 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. -