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
BusinessPolicyAccessBean
com.ibm.commerce.common.objects.StoreJDBCHelperAccessBean
ContractJDBCHelperAccessBean
ContractAccessBean
StoreAccessBean
TradingAgreementAccessBean
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, wait
accessControlCheck, 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, validateParameters
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public ValidateBusinessPolicyInContractForStoreCmdImpl()
public java.lang.Long getContractId()
getContractId
in interface ValidateBusinessPolicyInContractForStoreCmd
public com.ibm.commerce.datatype.TypedProperty getResponseProperties()
getResponseProperties
in interface ValidateBusinessPolicyInContractForStoreCmd
public void otherValidateCheck() throws com.ibm.commerce.exception.ECException
otherValidateCheck
in interface ValidateBusinessPolicyInContractForStoreCmd
com.ibm.commerce.exception.ECException.
java.rmi.RemoteException.
javax.ejb.CreateException.
javax.ejb.FinderException.
javax.naming.NamingException.
com.ibm.commerce.exception.ECException
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
validateBusinessPolicies()
,
otherValidateCheck()
,
AbstractECTargetableCommand.performExecute()
public void setContractId(java.lang.Long contractId)
setContractId
in interface ValidateBusinessPolicyInContractForStoreCmd
contractId
- the contract IDpublic void setResponseProperties(com.ibm.commerce.datatype.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 com.ibm.commerce.exception.ECException, 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
com.ibm.commerce.exception.ECException
javax.naming.NamingException