com.ibm.commerce.contract.commands
Class ValidateBusinessPolicyInContractForStoreCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.contract.commands.ValidateBusinessPolicyInContractForStoreCmdImpl
- All Implemented Interfaces:
- ECCommand, TaskCommand, ValidateBusinessPolicyInContractForStoreCmd
- public class ValidateBusinessPolicyInContractForStoreCmdImpl
- extends TaskCommandImpl
- implements ValidateBusinessPolicyInContractForStoreCmd
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
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 |
CLASSNAME
public static final java.lang.String CLASSNAME
COPYRIGHT
public static final java.lang.String COPYRIGHT
ValidateBusinessPolicyInContractForStoreCmdImpl
public ValidateBusinessPolicyInContractForStoreCmdImpl()
- ContractCreateCommand constructor comment.
getContractId
public java.lang.Long getContractId()
- Return the id of the contract
- Specified by:
getContractId
in interface ValidateBusinessPolicyInContractForStoreCmd
- Returns:
- java.lang.Long
getResponseProperties
public TypedProperty getResponseProperties()
- Return the responseProperties
- Specified by:
getResponseProperties
in interface ValidateBusinessPolicyInContractForStoreCmd
- Returns:
- responseProperties com.ibm.commerce.datatype.TypedProperty
otherValidateCheck
public void otherValidateCheck()
throws ECApplicationException
- current implementation is empty.
- Specified by:
otherValidateCheck
in interface ValidateBusinessPolicyInContractForStoreCmd
- 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 newContractId)
- Set the id of the contract to validate
- Specified by:
setContractId
in interface ValidateBusinessPolicyInContractForStoreCmd
- Parameters:
contractId
- java.lang.Long
setResponseProperties
public void setResponseProperties(TypedProperty resp)
- set the ResponseProperties
- Specified by:
setResponseProperties
in interface ValidateBusinessPolicyInContractForStoreCmd
- Parameters:
resp
- com.ibm.commerce.datatype.TypedProperty
setReturnViewForTools
public void setReturnViewForTools(java.lang.String returnView)
- Set the return view for Tools
- Specified by:
setReturnViewForTools
in interface ValidateBusinessPolicyInContractForStoreCmd
- Parameters:
returnView
- java.lang.String
setStoreId
public void setStoreId(java.lang.Integer storeId)
- Set the id of the store
- Specified by:
setStoreId
in interface ValidateBusinessPolicyInContractForStoreCmd
- Parameters:
storeId
- java.lang.Integer
validateBusinessPolicies
public void validateBusinessPolicies()
throws ECApplicationException,
javax.ejb.CreateException,
java.rmi.RemoteException,
javax.ejb.FinderException,
javax.naming.NamingException
- Validate if the business policies are expired and if they are available for the store
- Specified by:
validateBusinessPolicies
in interface ValidateBusinessPolicyInContractForStoreCmd
- Throws:
com.ibm.commerce.exception.ECException.
- java.rmi.RemoteException.
- javax.ejb.CreateException.
- javax.ejb.FinderException.
- javax.naming.NamingException.
-