com.ibm.commerce.contract.commands

Interface UpdateContractCmd

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


    public interface UpdateContractCmd
    extends com.ibm.commerce.command.TaskCommand
    This contract task command is used to update a contract based on the given Contract element (WebSphere Commerce Enterprise only). The default implementation of this command is UpdateContractCmdImpl.
    • 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 the ID of the updated contract.
      void setContractElement(org.w3c.dom.Element contractElement)
      Sets the contract Element object.
      void setContractId(java.lang.Long contractId)
      Sets the id of the contract to update.
      void setTermConditionId(java.lang.Long tcId)
      Sets the Id of the term and condition
      • 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 the ID of the updated contract.
        Returns:
        the ID of the updated contract
      • setContractElement

        void setContractElement(org.w3c.dom.Element contractElement)
        Sets the contract Element object.
        Parameters:
        contractElement - the Element object of the contract
      • setContractId

        void setContractId(java.lang.Long contractId)
        Sets the id of the contract to update.
        Parameters:
        contractId - the id of the contract
      • setTermConditionId

        void setTermConditionId(java.lang.Long tcId)
        Sets the Id of the term and condition
        Parameters:
        tcId - the term condition ID