|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.tools.optools.order.commands.CSRCustomerAddressAddCmdImpl
Create a new address for the customer by calling AddressUpdateCmd.
Field Summary | |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
ERRTASK_NAME
Error handling viewname for this command. |
java.lang.Integer |
orgLangId
|
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.tools.optools.order.commands.CSRCustomerAddressAddCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
CSRCustomerAddressAddCmdImpl()
|
Method Summary | |
protected void |
createAddress()
This method generates an address Id based on the address information and address type passed to the command. |
protected TypedProperty |
exceptionUtil(TypedProperty prop,
java.lang.Exception ex,
java.lang.String methodName,
java.lang.String cmdName)
Common exception code for this command. |
java.util.Hashtable |
getAddress()
Returns the address information as a hashtable. |
java.lang.String |
getAddressId()
Returns the address ID. |
java.lang.String |
getCustomerId()
Returns the customer ID. |
protected java.lang.String |
getMissingParam(java.lang.String msg)
Returns the missing parameter for the address. |
java.lang.String |
getNickName()
Returns the nickname used by the customer. |
java.util.Hashtable |
getNLS()
Return the properties containing all translatable messages for this command. |
CommandContext |
getOrgCmdContext()
Returns the original commandContext (administrator's command context). |
java.lang.Integer |
getOrgLangId()
Return original language ID. |
java.util.Locale |
getOrgLocale()
Return original locale. |
TypedProperty |
getOrgReqProperties()
Return original request properties. |
java.lang.String |
getRedirectURL()
Returns the redirect URL that is to be executed after this controller command terminates. |
AccessVector |
getResources()
Gets the access vector accessed by this command. |
void |
performExecute()
This method perform the execution for creating an addressId for the shopper. |
protected void |
setAddress(java.util.Hashtable newAddress)
Set the address. |
protected void |
setAddressId(java.lang.String newAddressId)
Set address ID. |
protected void |
setCustomerId(java.lang.String newCustomerId)
Set customer ID. |
protected void |
setNickName(java.lang.String newNickName)
Set customer's nickname. |
protected void |
setNLS(java.util.Hashtable newNLS)
Set NLS properties. |
protected void |
setOrgCmdContext(CommandContext newOrgCmdContext)
Set original commandContext. |
protected void |
setOrgLangId(java.lang.Integer newOrgLangId)
Set the original language ID. |
protected void |
setOrgLocale(java.util.Locale newOrgLocale)
Set original locale. |
protected void |
setOrgReqProperties(TypedProperty newOrgReqProperties)
Set original request properties. |
protected void |
setRedirectURL(java.lang.String newRedirectURL)
Set redirect URL. |
void |
validateParameters()
This method gets the XMLObject from the GUI dialog. |
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl |
getViewInputProperties, setRequestProperties |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
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, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
public static java.lang.String ERRTASK_NAME
public java.lang.Integer orgLangId
Constructor Detail |
public CSRCustomerAddressAddCmdImpl()
Method Detail |
protected void createAddress() throws ECException
In address Hashtable, it contains following information:
ECException
- protected TypedProperty exceptionUtil(TypedProperty prop, java.lang.Exception ex, java.lang.String methodName, java.lang.String cmdName)
prop
- The response typed property.ex
- The catched exception.methodName
- The name of the method with exception.cmdName
- The name of the command.public java.util.Hashtable getAddress()
public java.lang.String getAddressId()
getAddressId
in interface CSRCustomerAddressAddCmd
public java.lang.String getCustomerId()
protected java.lang.String getMissingParam(java.lang.String msg)
msg
- The error message from the AddressUpdateCmd command.public java.lang.String getNickName()
public java.util.Hashtable getNLS()
public CommandContext getOrgCmdContext()
public java.lang.Integer getOrgLangId()
public java.util.Locale getOrgLocale()
public TypedProperty getOrgReqProperties()
public java.lang.String getRedirectURL()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
ECException
- protected void setAddress(java.util.Hashtable newAddress)
newAddress
- Contains the name-value pairs with the address information.protected void setAddressId(java.lang.String newAddressId)
newAddressId
- The newly created address ID.protected void setCustomerId(java.lang.String newCustomerId)
newCustomerId
- The customer ID.protected void setNickName(java.lang.String newNickName)
newNickName
- The customer's nickname.protected void setNLS(java.util.Hashtable newNLS)
newNLS
- The name-value pairs containing the messages to be used
by this command.protected void setOrgCmdContext(CommandContext newOrgCmdContext)
newOrgCmdContext
- The original command context (admin command context).protected void setOrgLangId(java.lang.Integer newOrgLangId)
newOrgLangId
- The original language ID.protected void setOrgLocale(java.util.Locale newOrgLocale)
newOrgLocale
- The locale from the original command context.protected void setOrgReqProperties(TypedProperty newOrgReqProperties)
newOrgReqProperties
- The original request properties.protected void setRedirectURL(java.lang.String newRedirectURL)
newRedirectURL
- The name of the redirect page.public void validateParameters() throws ECApplicationException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- If cannot parse the XMLObject as expected, throw ECApplicationException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |