|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.contract.commands.ValidateContractCmdImpl
Validate the contract (WebSphere Commerce Business Edition only). This is the default implementation of the ValidateContractCmd. Calling commands: ContractImportApprovedVersion, ContractSubmitPreApproval, ContractDeploy
Field Summary | |
static java.lang.String |
CLASSNAME
|
static java.lang.String |
COPYRIGHT
|
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.contract.commands.ValidateContractCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
ValidateContractCmdImpl()
ContractCreateCommand constructor comment. |
Method Summary | |
void |
checkIsContractExpired()
In this default implementation, we validate if the contract is expired and the expired date of the contract should later than its referenced business policies' expired date. |
java.lang.Long |
getContractId()
Return the id of the contract |
TypedProperty |
getResponseProperties()
Return the responseProperties |
void |
otherValidateCheck()
current implementation is empty. |
void |
setContractId(java.lang.Long newContractId)
Set the id of the contract to validate |
void |
setResponseProperties(TypedProperty resp)
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 In this default implementation, this method checks: 1. |
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 class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
Constructor Detail |
public ValidateContractCmdImpl()
Method Detail |
public void checkIsContractExpired() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
checkIsContractExpired
in interface ValidateContractCmd
com.ibm.commerce.exception.ECException.
- java.rmi.RemoteException.
- javax.ejb.CreateException.
- javax.ejb.FinderException.
- javax.naming.NamingException.
- public java.lang.Long getContractId()
getContractId
in interface ValidateContractCmd
public TypedProperty getResponseProperties()
getResponseProperties
in interface ValidateContractCmd
public void otherValidateCheck() throws ECApplicationException
otherValidateCheck
in interface ValidateContractCmd
com.ibm.commerce.exception.ECException.
- java.rmi.RemoteException.
- javax.ejb.CreateException.
- javax.ejb.FinderException.
- javax.naming.NamingException.
- public void setContractId(java.lang.Long newContractId)
setContractId
in interface ValidateContractCmd
contractId
- java.lang.Longpublic void setResponseProperties(TypedProperty resp)
setResponseProperties
in interface ValidateContractCmd
resp
- com.ibm.commerce.datatype.TypedPropertypublic void setReturnViewForTools(java.lang.String returnView)
setReturnViewForTools
in interface ValidateContractCmd
returnView
- java.lang.Stringpublic void validateAccountRelatedInfo() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
validateAccountRelatedInfo
in interface ValidateContractCmd
com.ibm.commerce.exception.ECException.
- java.rmi.RemoteException.
- javax.ejb.CreateException.
- javax.ejb.FinderException.
- javax.naming.NamingException.
- public void validateBuyerParticipant() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
validateBuyerParticipant
in interface ValidateContractCmd
com.ibm.commerce.exception.ECException.
- java.rmi.RemoteException.
- javax.ejb.CreateException.
- javax.ejb.FinderException.
- javax.naming.NamingException.
- public void validateSellerParticipant() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
validateSellerParticipant
in interface ValidateContractCmd
com.ibm.commerce.exception.ECException.
- java.rmi.RemoteException.
- javax.ejb.CreateException.
- javax.ejb.FinderException.
- javax.naming.NamingException.
- public void validateTCOccurrence() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
validateTCOccurrence
in interface ValidateContractCmd
com.ibm.commerce.exception.ECException.
- java.rmi.RemoteException.
- javax.ejb.CreateException.
- javax.ejb.FinderException.
- javax.naming.NamingException.
- public void validateTCType() throws ECApplicationException, javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
validateTCType
in interface ValidateContractCmd
com.ibm.commerce.exception.ECException.
- java.rmi.RemoteException.
- javax.ejb.CreateException.
- javax.ejb.FinderException.
- javax.naming.NamingException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |