com.ibm.commerce.contract.commands

Interface ValidateBusinessPolicyInContractForStoreCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.TaskCommand
    All Known Implementing Classes:
    ValidateBusinessPolicyInContractForStoreCmdImpl


    public interface ValidateBusinessPolicyInContractForStoreCmd
    extends com.ibm.commerce.command.TaskCommand
    This contract task command is used to validate the Business policy in the specified contract for the specified store (WebSphere Commerce Enterprise only). The default implementation of this command is ValidateBusinessPolicyInContractForStoreCmdImpl.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM copyright notice field.
      static java.lang.String defaultCommandClassName
      The default implementation of this command.
      static java.lang.String NAME
      The full name of this command.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.Long getContractId()
      Returns ID of the contract to be validated.
      com.ibm.commerce.datatype.TypedProperty getResponseProperties()
      Returns the response properties.
      void otherValidateCheck()
      Other validation check
      void setContractId(java.lang.Long contractId)
      Sets the ID of the contract to validate.
      void setResponseProperties(com.ibm.commerce.datatype.TypedProperty respProps)
      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 referred by the specified contract are valid in the
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 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, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String defaultCommandClassName
        The default implementation of this command.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The full name of this command.
        See Also:
        Constant Field Values
    • Method Detail

      • getContractId

        java.lang.Long getContractId()
        Returns ID of the contract to be validated.
        Returns:
        the contract ID
      • getResponseProperties

        com.ibm.commerce.datatype.TypedProperty getResponseProperties()
        Returns the response properties.
        Returns:
        responseProperties the response properties
      • otherValidateCheck

        void otherValidateCheck()
                         throws com.ibm.commerce.exception.ECException
        Other validation check
        Throws:
        com.ibm.commerce.exception.ECException.
        java.rmi.RemoteException.
        javax.ejb.CreateException.
        javax.ejb.FinderException.
        javax.naming.NamingException.
        com.ibm.commerce.exception.ECException
      • setContractId

        void setContractId(java.lang.Long contractId)
        Sets the ID of the contract to validate.
        Parameters:
        contractId - the contract ID
      • setResponseProperties

        void setResponseProperties(com.ibm.commerce.datatype.TypedProperty respProps)
        Sets the response properties.
        Parameters:
        respProps - the response properties
      • setReturnViewForTools

        void setReturnViewForTools(java.lang.String returnView)
        Sets the return view for the tools GUI
        Parameters:
        returnView - the return view name
      • setStoreId

        void setStoreId(java.lang.Integer storeId)
        Sets the ID of the store.
        Parameters:
        storeId - the store ID
      • validateBusinessPolicies

        void validateBusinessPolicies()
                               throws com.ibm.commerce.exception.ECException,
                                      javax.naming.NamingException,
                                      java.sql.SQLException
        Validates if the business policies referred by the specified contract are valid in the
        Throws:
        com.ibm.commerce.exception.ECException.
        java.rmi.RemoteException.
        javax.ejb.CreateException.
        javax.ejb.FinderException.
        javax.naming.NamingException.
        java.sql.SQLException
        com.ibm.commerce.exception.ECException
        javax.naming.NamingException