com.ibm.commerce.account.commands

Interface SaveAccountCmd

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


    public interface SaveAccountCmd
    extends com.ibm.commerce.command.TaskCommand
    This task command is called by AccountImport and AccountSave to create a new account or update an existed account. The default implementation of this command is SaveAccountCmdImpl.
    See Also:
    AccountImportCmd, AccountSaveCmd
    • 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 name of this command.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      java.lang.Long getAccountId()
      Returns the account ID.
      void setAccountElement(org.w3c.dom.Element accountElement)
      Sets the account XML element.
      void setAction(boolean bCreateAction)
      Sets the action for the saving process.
      • 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
    • Method Detail

      • getAccountId

        java.lang.Long getAccountId()
        Returns the account ID.
        Returns:
        the ID of the newly created account
      • setAccountElement

        void setAccountElement(org.w3c.dom.Element accountElement)
        Sets the account XML element.
        Parameters:
        accountElement - the Element object of the account
      • setAction

        void setAction(boolean bCreateAction)
        Sets the action for the saving process.
        Parameters:
        bCreateAction - the action of this command. true: create a new account, false: update an existed account.