public class ValidateBusinessPolicyInContractForStoreCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements ValidateBusinessPolicyInContractForStoreCmd
ValidateBusinessPolicyInContractForStoreCmd task command.
Validates the Business policy in the specified contract for the specified store
(WebSphere Commerce Enterprise only).
In the default implementation, we check if the business policy expired, if the
business policy is available to the specified store.
Calling command: ContractDeploy
BusinessPolicyAccessBeancom.ibm.commerce.common.objects.StoreJDBCHelperAccessBeanContractJDBCHelperAccessBeanContractAccessBeanStoreAccessBeanTradingAgreementAccessBean| 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.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
ValidateBusinessPolicyInContractForStoreCmdImpl()
Constructor for ValidateBusinessPolicyInContractForStoreCmdImpl
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getContractId()
Returns the ID of the contract to validate.
|
com.ibm.commerce.datatype.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(com.ibm.commerce.datatype.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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterscheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public ValidateBusinessPolicyInContractForStoreCmdImpl()
public java.lang.Long getContractId()
getContractId in interface ValidateBusinessPolicyInContractForStoreCmdpublic com.ibm.commerce.datatype.TypedProperty getResponseProperties()
getResponseProperties in interface ValidateBusinessPolicyInContractForStoreCmdpublic void otherValidateCheck()
throws com.ibm.commerce.exception.ECException
otherValidateCheck in interface ValidateBusinessPolicyInContractForStoreCmdcom.ibm.commerce.exception.ECException.java.rmi.RemoteException.javax.ejb.CreateException.javax.ejb.FinderException.javax.naming.NamingException.com.ibm.commerce.exception.ECExceptionpublic void performExecute()
throws com.ibm.commerce.exception.ECException
performExecute in interface com.ibm.commerce.command.ECCommandperformExecute in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECExceptionvalidateBusinessPolicies(),
otherValidateCheck(),
AbstractECTargetableCommand.performExecute()public void setContractId(java.lang.Long contractId)
setContractId in interface ValidateBusinessPolicyInContractForStoreCmdcontractId - the contract IDpublic void setResponseProperties(com.ibm.commerce.datatype.TypedProperty resp)
setResponseProperties in interface ValidateBusinessPolicyInContractForStoreCmdresp - the response propertiespublic void setReturnViewForTools(java.lang.String returnView)
setReturnViewForTools in interface ValidateBusinessPolicyInContractForStoreCmdreturnView - the return view namepublic void setStoreId(java.lang.Integer storeId)
setStoreId in interface ValidateBusinessPolicyInContractForStoreCmdstoreId - the store IDpublic void validateBusinessPolicies()
throws com.ibm.commerce.exception.ECException,
javax.naming.NamingException,
java.sql.SQLException
validateBusinessPolicies in interface ValidateBusinessPolicyInContractForStoreCmdcom.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.SQLExceptioncom.ibm.commerce.exception.ECExceptionjavax.naming.NamingException