java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.contract.commands.ValidateBusinessPolicyInContractForStoreCmdImpl
Validate the Business policy in the specified contract for the specified store (WebSphere Commerce Business Edition only). This is the default implementation of ValidateBusinessPolicyInContractForStore. In the default implementation, we check if the business policy expired, if the business policy is available to the specified store. Calling command: ContractDeploy The following AccessBeans are used in this default implementaton: BusinessPolicyAccessBean, StoreJDBCHelperAccessBean().findStoresCreatedByContract(contractId) ContractJDBCHelperAccessBean().findSameFamilyContracts(name, ownerId, origin, contractId), ContractAccessBean, StoreAccessBean, TradingAgreementAccessBean
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME The name of this command. |
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.contract.commands. ValidateBusinessPolicyInContractForStoreCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
ValidateBusinessPolicyInContractForStoreCmdImpl() Constructor for ValidateBusinessPolicyInContractForStoreCmdImpl |
Method Summary | |
---|---|
java.lang.Long |
getContractId() Returns the ID of the contract to validate. |
TypedProperty |
getResponseProperties() Returns the response properties. |
void |
otherValidateCheck() Any other checks. |
void |
performExecute() Validates all the business policies referred by the specified contract in the specified store. |
void |
setContractId(java.lang.Long contractId) Sets the ID of the contract to validate. |
void |
setResponseProperties(
TypedProperty resp) Sets the response properties. |
void |
setReturnViewForTools(java.lang.String returnView) Sets the return view for the tools GUI |
void |
setStoreId(java.lang.Integer storeId) Sets the ID of the store. |
void |
validateBusinessPolicies() Validates if the business policies are expired and if they are available for the store. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
Constructor Detail |
---|
public ValidateBusinessPolicyInContractForStoreCmdImpl()
Method Detail |
---|
public java.lang.Long getContractId()
getContractId
in interface
ValidateBusinessPolicyInContractForStoreCmd
public TypedProperty getResponseProperties()
getResponseProperties
in interface
ValidateBusinessPolicyInContractForStoreCmd
public void otherValidateCheck() throws ECException, CreateException, java.rmi.RemoteException, FinderException, javax.naming.NamingException
otherValidateCheck
in interface
ValidateBusinessPolicyInContractForStoreCmd
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
public void setContractId(java.lang.Long contractId)
setContractId
in interface
ValidateBusinessPolicyInContractForStoreCmd
contractId
- the contract IDpublic void setResponseProperties(TypedProperty resp)
setResponseProperties
in interface
ValidateBusinessPolicyInContractForStoreCmd
resp
- the response propertiespublic void setReturnViewForTools(java.lang.String returnView)
setReturnViewForTools
in interface
ValidateBusinessPolicyInContractForStoreCmd
returnView
- the return view namepublic void setStoreId(java.lang.Integer storeId)
setStoreId
in interface
ValidateBusinessPolicyInContractForStoreCmd
storeId
- the store IDpublic void validateBusinessPolicies() throws ECException, CreateException, java.rmi.RemoteException, FinderException, javax.naming.NamingException, java.sql.SQLException
validateBusinessPolicies
in interface
ValidateBusinessPolicyInContractForStoreCmd
com.ibm.commerce.exception.ECException.
- Raised with message
_ERR_BIZ_POLICY_NOT_AVAILABLE_FOR_STORE if one of the referred business
policies is not available in the specified store. Raised with message
_ERR_BIZ_POLICY_EXPIRED if one of the referred business policies is
expired.java.rmi.RemoteException.
javax.ejb.CreateException.
javax.ejb.FinderException.
javax.naming.NamingException.
java.sql.SQLException.
java.sql.SQLException
ECException
CreateException
java.rmi.RemoteException
FinderException
javax.naming.NamingException
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
validateBusinessPolicies()
,
otherValidateCheck()
,
AbstractECTargetableCommand.performExecute()