com.ibm.commerce.account.commands
Class CreateAccountCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.account.commands.CreateAccountCmdImpl
All Implemented Interfaces:
CreateAccountCmd, ECCommand, TaskCommand

public class CreateAccountCmdImpl
extends TaskCommandImpl
implements CreateAccountCmd

This is the default implementation of the CreateAccount task command.

See Also:
CreateAccountCmd

Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.account.commands.CreateAccountCmd
defaultCommandClassName, NAME
 
Constructor Summary
CreateAccountCmdImpl()
           
 
Method Summary
 java.lang.Long getAccountId()
          Returns the accountId.
 java.lang.Integer getAccountState()
           
 java.lang.String getAccountTitle()
           
 AccessVector getResources()
          Gets the access vector accessed by this command.
 void parseXMLDocument()
           
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void setAccountDescription(java.lang.String description)
           
 void setAccountDescriptionElement(org.w3c.dom.Element newAccountDescriptionElement)
           
 void setAccountElement(com.ibm.commerce.account.commands.Element accountElement)
          Sets the account XML element.
 void setAccountId(java.lang.Long newAccountId)
           
 void setAccountState(java.lang.String newAccountState)
           
 void setAccountTitle(java.lang.String newAccountTitle)
           
 void setLanguageId(java.lang.Integer newLangId)
          Sets the languageId.
 void validateParameters()
          Performs server side parameter checking.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

CreateAccountCmdImpl

public CreateAccountCmdImpl()
Method Detail

getAccountId

public java.lang.Long getAccountId()
Description copied from interface: CreateAccountCmd
Returns the accountId.
Specified by:
getAccountId in interface CreateAccountCmd

getAccountState

public java.lang.Integer getAccountState()

getAccountTitle

public java.lang.String getAccountTitle()

getResources

public AccessVector getResources()
                          throws ECException
Description copied from interface: ECCommand
Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command. It is the responsibilities of the command writer to return the protectable primary resource(s) and the corresponding actions accessed by this command.

Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Returns:
AccessVector - a vector of resource action pairs

parseXMLDocument

public void parseXMLDocument()

performExecute

public void performExecute()
                    throws ECException
Description copied from interface: ECCommand
Contains the actual business logic of the command It should be implemented by all the command writer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setAccountDescription

public void setAccountDescription(java.lang.String description)

setAccountDescriptionElement

public void setAccountDescriptionElement(org.w3c.dom.Element newAccountDescriptionElement)

setAccountElement

public void setAccountElement(com.ibm.commerce.account.commands.Element accountElement)
Description copied from interface: CreateAccountCmd
Sets the account XML element.
Specified by:
setAccountElement in interface CreateAccountCmd

setAccountId

public void setAccountId(java.lang.Long newAccountId)

setAccountState

public void setAccountState(java.lang.String newAccountState)

setAccountTitle

public void setAccountTitle(java.lang.String newAccountTitle)

setLanguageId

public void setLanguageId(java.lang.Integer newLangId)
Description copied from interface: CreateAccountCmd
Sets the languageId.
Specified by:
setLanguageId in interface CreateAccountCmd

validateParameters

public void validateParameters()
                        throws ECException
Description copied from interface: ECCommand
Performs server side parameter checking. This method replaces the checkParameters() method in a previous version of the code.

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -