com.ibm.commerce.contract.commands

Class ValidateBusinessPolicyInContractForStoreCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.TaskCommandImpl
            • com.ibm.commerce.contract.commands.ValidateBusinessPolicyInContractForStoreCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, ValidateBusinessPolicyInContractForStoreCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class ValidateBusinessPolicyInContractForStoreCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements ValidateBusinessPolicyInContractForStoreCmd
    This is the default implementation of the 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

    AccessBeans called:

    • BusinessPolicyAccessBean
    • com.ibm.commerce.common.objects.StoreJDBCHelperAccessBean
    • ContractJDBCHelperAccessBean
    • ContractAccessBean
    • StoreAccessBean
    • TradingAgreementAccessBean

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand

        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
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
    • Field Detail

      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The full name of this command.
        See Also:
        Constant Field Values
      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ValidateBusinessPolicyInContractForStoreCmdImpl

        public ValidateBusinessPolicyInContractForStoreCmdImpl()
        Constructor for ValidateBusinessPolicyInContractForStoreCmdImpl
    • Method Detail

      • otherValidateCheck

        public void otherValidateCheck()
                                throws com.ibm.commerce.exception.ECException
        Any other checks. It is empty in this default implementation.
        Specified by:
        otherValidateCheck in interface ValidateBusinessPolicyInContractForStoreCmd
        Throws:
        com.ibm.commerce.exception.ECException.
        java.rmi.RemoteException.
        javax.ejb.CreateException.
        javax.ejb.FinderException.
        javax.naming.NamingException.
        com.ibm.commerce.exception.ECException
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Validates all the business policies referred by the specified contract in the specified store.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException
        See Also:
        validateBusinessPolicies(), otherValidateCheck(), AbstractECTargetableCommand.performExecute()
      • validateBusinessPolicies

        public void validateBusinessPolicies()
                                      throws com.ibm.commerce.exception.ECException,
                                             javax.naming.NamingException,
                                             java.sql.SQLException
        Validates 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. - 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