com.ibm.commerce.account.commands
Interface SaveAccountCmd

All Superinterfaces:
TaskCommand
All Known Implementing Classes:
SaveAccountCmdImpl

public interface SaveAccountCmd
extends TaskCommand

This task command is called by AccountImport and AccountSave to create a new account or update an existed account.

See Also:
AccountImportCmd, AccountSaveCmd

Field Summary
static java.lang.String COPYRIGHT
          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
 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.
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
The name of this command.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation of this command.
See Also:
Constant Field Values
Method Detail

getAccountId

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

setAccountElement

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

setAction

public 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.