com.ibm.commerce.contract.commands

Interface ContractSaveCmd

  • All Superinterfaces:
    com.ibm.commerce.command.AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.commerce.command.ControllerCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.security.Protectable
    All Known Implementing Classes:
    ContractSaveCmdImpl


    public interface ContractSaveCmd
    extends com.ibm.commerce.command.ControllerCommand
    This contract controller command is used to add a new contract. or update an existing one, which is in Draft state (WebSphere Commerce Enterprise only). The default implementation of this command is ContractSaveCmdImpl. The ContractSaveURL URL is mapped to this command by default.
    See Also:
    CreateXSDContractCmd, UpdateXSDContractCmd
    • 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 class is "com.ibm.commerce.contract.commands.ContractSaveCmdImpl".
      static java.lang.String NAME
      The name of this interface is "com.ibm.commerce.contract.commands.ContractSaveCmd".
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void setLastUpdatedTime(java.lang.String lastUpdatedTime)
      Sets the last updated time of the contract.
      void setXML(java.lang.String xmlString)
      Sets the xml string of the contract to save.
      void setXSDValidation(boolean bValidation)
      Sets the XSD validation flag.
      • Methods inherited from class java.lang.Object

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

        checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
      • Methods inherited from interface com.ibm.commerce.command.AccCommand

        accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
      • Methods inherited from interface com.ibm.commerce.security.Protectable

        fulfills, getOwner
    • 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 class is "com.ibm.commerce.contract.commands.ContractSaveCmdImpl".
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The name of this interface is "com.ibm.commerce.contract.commands.ContractSaveCmd".
        See Also:
        Constant Field Values
    • Method Detail

      • setLastUpdatedTime

        void setLastUpdatedTime(java.lang.String lastUpdatedTime)
        Sets the last updated time of the contract.
        Parameters:
        lastUpdatedTime - last update time of the specified contract
      • setXML

        void setXML(java.lang.String xmlString)
        Sets the xml string of the contract to save.
        Parameters:
        xmlString - the xml string which contains the contract information
      • setXSDValidation

        void setXSDValidation(boolean bValidation)
        Sets the XSD validation flag. If the flag is set to true, the xml parser will validate the xml instance against the specified XSD file.
        Parameters:
        bValidation - the validation flag, true: validate, false: do not validate.