com.ibm.commerce.contract.commands

Interface ValidateContractCmd

  • 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:
    ValidateContractCmdImpl


    public interface ValidateContractCmd
    extends com.ibm.commerce.command.TaskCommand
    This contract task command is used to validate the contract (WebSphere Commerce Enterprise only). The default implementation of this command is ValidateContractCmdImpl.
    • 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
      void checkIsContractExpired()
      Validates if the contract is expired
      java.lang.Long getContractId()
      Returns the ID of the contract to validate.
      com.ibm.commerce.datatype.TypedProperty getResponseProperties()
      Returns the response properties.
      void otherValidateCheck()
      Other contract validation checking.
      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 target store ID.
      void validateAccountRelatedInfo()
      Validates account related Information in the contract if the contract referred to a business account.
      void validateBuyerParticipant()
      Validates Buyer participant(s) in the contract.
      void validateSellerParticipant()
      Validates Seller participant in the contract.
      void validateTCOccurrence()
      Validates the occurrence of the Terms and Conditions in the contract.
      void validateTCType()
      Validates the type of the Terms and Conditions in the contract.
      • 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

      • checkIsContractExpired

        void checkIsContractExpired()
                             throws com.ibm.commerce.exception.ECException
        Validates if the contract is expired
        Throws:
        com.ibm.commerce.exception.ECException.
        java.rmi.RemoteException.
        javax.ejb.CreateException.
        javax.ejb.FinderException.
        javax.naming.NamingException.
        com.ibm.commerce.exception.ECException
      • getContractId

        java.lang.Long getContractId()
        Returns the ID of the contract to validate.
        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 contract validation checking. Override this method to add more contract validation.
        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 target store ID.
        Parameters:
        storeId - The store id which the contract belongs to.
      • validateAccountRelatedInfo

        void validateAccountRelatedInfo()
                                 throws com.ibm.commerce.exception.ECException
        Validates account related Information in the contract if the contract referred to a business account.
        Throws:
        com.ibm.commerce.exception.ECException.
        java.rmi.RemoteException.
        javax.ejb.CreateException.
        javax.ejb.FinderException.
        javax.naming.NamingException.
        com.ibm.commerce.exception.ECException
      • validateBuyerParticipant

        void validateBuyerParticipant()
                               throws com.ibm.commerce.exception.ECException
        Validates Buyer participant(s) in the contract.
        Throws:
        com.ibm.commerce.exception.ECException.
        java.rmi.RemoteException.
        javax.ejb.CreateException.
        javax.ejb.FinderException.
        javax.naming.NamingException.
        com.ibm.commerce.exception.ECException
      • validateSellerParticipant

        void validateSellerParticipant()
                                throws com.ibm.commerce.exception.ECException
        Validates Seller participant in the contract.
        Throws:
        com.ibm.commerce.exception.ECException.
        java.rmi.RemoteException.
        javax.ejb.CreateException.
        javax.ejb.FinderException.
        javax.naming.NamingException.
        com.ibm.commerce.exception.ECException
      • validateTCOccurrence

        void validateTCOccurrence()
                           throws com.ibm.commerce.exception.ECException
        Validates the occurrence of the Terms and Conditions in the contract.
        Throws:
        com.ibm.commerce.exception.ECException.
        java.rmi.RemoteException.
        javax.ejb.CreateException.
        javax.ejb.FinderException.
        javax.naming.NamingException.
        com.ibm.commerce.exception.ECException
      • validateTCType

        void validateTCType()
                     throws com.ibm.commerce.exception.ECException
        Validates the type of the Terms and Conditions in the contract.
        Throws:
        com.ibm.commerce.exception.ECException.
        java.rmi.RemoteException.
        javax.ejb.CreateException.
        javax.ejb.FinderException.
        javax.naming.NamingException.
        com.ibm.commerce.exception.ECException