com.ibm.commerce.tools.optools.order.commands
Class CSRGuestCustomerAddCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.tools.optools.order.commands.CSRGuestCustomerAddCmdImpl
All Implemented Interfaces:
CSRGuestCustomerAddCmd, ECCommand, ECTargetableCommand, TaskCommand

public class CSRGuestCustomerAddCmdImpl
extends TaskCommandImpl
implements CSRGuestCustomerAddCmd

This is the default implementation of the CSRGuestCustomerAddressCmd command.

This command uses the following AccessBean(s):

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
static java.lang.String ERRTASK_NAME
          Error handling viewname for this command.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.tools.optools.order.commands. CSRGuestCustomerAddCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
CSRGuestCustomerAddCmdImpl()
           
 
Method Summary
 java.lang.String getCustomerId()
          Returns customer id.
 java.lang.Integer getLangId()
          Returns language id.
 void performExecute()
          This method performs the execution for creating a guest customer.
protected  void setCustomerId(java.lang.String newCustomerId)
          Sets customer id.
 void setLangId(java.lang.Integer newLangId)
          Sets the language id.
 void validateParameters()
          Validates the language id passed to this command.
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

ERRTASK_NAME

public static java.lang.String ERRTASK_NAME
Error handling viewname for this command.
Constructor Detail

CSRGuestCustomerAddCmdImpl

public CSRGuestCustomerAddCmdImpl()
Method Detail

getCustomerId

public java.lang.String getCustomerId()
Returns customer id.
Specified by:
getCustomerId in interface CSRGuestCustomerAddCmd
Returns:
The customer id.

getLangId

public java.lang.Integer getLangId()
Returns language id.
Returns:
The language id.

performExecute

public void performExecute()
                    throws ECException
This method performs the execution for creating a guest customer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - if guest customer can not be created.

setCustomerId

protected void setCustomerId(java.lang.String newCustomerId)
Sets customer id.
Parameters:
newCustomerId - The customer id.

setLangId

public void setLangId(java.lang.Integer newLangId)
Sets the language id.
Specified by:
setLangId in interface CSRGuestCustomerAddCmd
Parameters:
newLangId - The language id.

validateParameters

public void validateParameters()
                        throws ECException
Validates the language id passed to this command.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - if language id is null