java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.tools.command.ToolsControllerCommandImpl
com.ibm.commerce.inventory.commands.FulfillmentCenterUpdateCmdImpl
Default implementation of the FulfillmentCenterUpdateCmd interface. Updates the fulfillment center.
Calls generic RedirectView when successfully executed, or GenericApplicationError view when failed.
Utilizes these access beans:
Field Summary | |
static java.lang.String | COPYRIGHT The internal copyright field. |
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.inventory.commands.FulfillmentCenterUpdateCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.tools.common.ECToolsConstants |
EC_LINE_SEPARATOR, EC_TOOLS_FULFILLMENT_CENTER_ID, EC_TOOLS_MERCHANT_CENTER_URL, EC_TOOLS_STORE_LANGUAGE_URL, EC_TOOLS_STORES_ACCESS_CONTROL_REQUIRED, EC_TOOLS_STORES_EMPTY, EC_TOOLS_STORES_NO_ACCESS, EC_TOOLS_STORES_NOT_ADMINISTRATOR, EC_XML, EC_XMLFILE, EC_XMLFILEOBJECT, EC_XMLOBJECT, EC_XMLSTRING |
Constructor Summary | |
FulfillmentCenterUpdateCmdImpl() |
Method Summary | |
protected java.lang.String | generateNicknameForFulfillmentCenter(java.lang.String languageId) Generates nickname for FulfillmentCenter: |
protected java.lang.String | getAddress1() Returns fulfillment center address line 1. |
protected java.lang.String | getAddress2() Returns fulfillment center address line 2. |
protected java.lang.String | getAddress3() Returns fulfillment center address line 3. |
protected java.lang.String | getCity() Returns the city within this address. |
protected java.lang.String | getCountry() Returns the country or region within this address. |
protected java.lang.String | getDefaultShipOffset() Returns the value of default shipped offset. |
protected java.lang.String | getDescription() Returns the description of the fulfillment center. |
protected java.lang.String | getDisplayName() Returns the display name of fulfillment center. |
protected java.lang.String | getFulfillmentCenterId() Returns the fulfillment center identifier. |
protected java.lang.String | getFulfillmentCenterName() Returns the fulfillment center name. |
protected java.lang.String | getLanguageId() Returns the language identifier. |
protected java.lang.String | getMemberId() Returns the owner identifier. |
protected java.lang.String | getNickname() Returns the nickname for the address. |
AccessVector | getResources() Gets the access vector accessed by this command. |
protected java.lang.String | getState() Returns the state within this address. |
protected java.lang.String | getStoreAddressId() Returns the store address identifier. |
protected java.lang.String | getZipcode() Returns the ZIP code within this address. |
protected void | handleException(java.lang.Exception e, java.lang.String methodName) Formats an ECException based on the input exception value. |
protected void | handleSubmitError(ECException e) Constructs and returns the error message. |
void | performExecute() Performs the execution of updating the fulfillment center. |
void | setAddress1(java.lang.String newAddress1) Sets fulfillment center address line 1. |
void | setAddress2(java.lang.String newAddress2) Sets fulfillment center address line 2. |
void | setAddress3(java.lang.String newAddress3) Sets fulfillment center address line 3. |
void | setCity(java.lang.String newCity) Sets the city within this address. |
void | setCountry(java.lang.String newCountry) Sets the country or region within this address. |
void | setDefaultShipOffset(java.lang.String newDefaultShipOffset) Sets the value of default shipped offset. |
void | setDescription(java.lang.String newDescription) Sets the description of the fulfillment center. |
void | setDisplayName(java.lang.String newDisplayName) Sets the display name of fulfillment center. |
void | setFulfillmentCenterId(java.lang.String newFulfillmentCenterId) Sets the fulfillment center identifier. |
void | setFulfillmentCenterName(java.lang.String newFulfillmentCenterName) Sets the fulfillment center name. |
protected void | setLanguageId(java.lang.String newLanguageId) Set the language identifier. |
void | setMemberId(java.lang.String newMemberId) Sets the owner identifier. |
protected void | setNickname(java.lang.String newNickname) Set the nickname for the address. |
void | setState(java.lang.String newState) Sets the state within this address. |
void | setStoreAddressId(java.lang.String newStoreAddressId) Sets the store address identifier. |
void | setZipcode(java.lang.String newZipcode) Sets the ZIP code within this address. |
protected void | updateNicknames() Updates STADDRESS nicknames of different languages for a vendor. |
void | validateParameters() Gets the information of the fulfillment center to be updated and sets the information into the command local variable. |
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl |
getViewInputProperties, setRequestProperties |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, 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 |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, 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, getResourceOwners, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public FulfillmentCenterUpdateCmdImpl()
Method Detail |
protected java.lang.String getAddress1()
protected java.lang.String getAddress2()
protected java.lang.String getAddress3()
protected java.lang.String getCity()
protected java.lang.String getCountry()
protected java.lang.String getDefaultShipOffset()
protected java.lang.String getDescription()
protected java.lang.String getDisplayName()
protected java.lang.String getFulfillmentCenterId()
protected java.lang.String getFulfillmentCenterName()
protected java.lang.String getLanguageId()
protected java.lang.String getMemberId()
protected java.lang.String getNickname()
protected java.lang.String getState()
protected java.lang.String getStoreAddressId()
protected java.lang.String getZipcode()
public void setAddress1(java.lang.String newAddress1)
public void setAddress2(java.lang.String newAddress2)
public void setAddress3(java.lang.String newAddress3)
public void setCity(java.lang.String newCity)
public void setCountry(java.lang.String newCountry)
public void setDefaultShipOffset(java.lang.String newDefaultShipOffset)
public void setDescription(java.lang.String newDescription)
public void setDisplayName(java.lang.String newDisplayName)
public void setFulfillmentCenterId(java.lang.String newFulfillmentCenterId)
public void setFulfillmentCenterName(java.lang.String newFulfillmentCenterName)
protected void setLanguageId(java.lang.String newLanguageId)
public void setMemberId(java.lang.String newMemberId)
protected void setNickname(java.lang.String newNickname)
public void setState(java.lang.String newState)
public void setStoreAddressId(java.lang.String newStoreAddressId)
public void setZipcode(java.lang.String newZipcode)
public void validateParameters() throws ECException
Parameters:
It also sets the success redirect URL to the generic RedirectView for success, or GenericApplicationError upon failure.
public AccessVector getResources() throws ECException
public void performExecute() throws ECException
Calls CreateStoreAddressCmd to store the address of the fulfillment center. Calls UpdateStoreAddressCmd which updates STADDRESS table.
protected java.lang.String generateNicknameForFulfillmentCenter(java.lang.String languageId)
<name1>?<lang_id>?<type> where <name1> = FFMCenter.Name <lang_id> = language_id <type> = "FulfillmentCenterLocation".
protected void updateNicknames() throws ECSystemException
protected void handleException(java.lang.Exception e, java.lang.String methodName) throws ECException
protected void handleSubmitError(ECException e) throws ECApplicationException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.