java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.inventory.commands.VendorCreateCmdImpl
Create a new vendor.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT |
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. VendorCreateCmd |
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 | |
---|---|
VendorCreateCmdImpl() |
Method Summary | |
---|---|
protected
java.lang.String |
generateNicknameForVendor() This method generates nickname for vendor: |
protected
java.lang.String |
getAddress1() Return vendor address line 1. |
protected
java.lang.String |
getAddress2() Return vendor address line 2. |
protected
java.lang.String |
getAddress3() Return vendor address line 3. |
protected
java.lang.String |
getBusinessTitle() Return the business title. |
protected
java.lang.String |
getCity() Return the city within this address. |
protected
java.lang.String |
getCountry() Return the country or region within this address. |
protected
java.lang.String |
getDescription() Return the description of the vendor. |
protected
java.lang.String |
getEmail1() Return the primary e-mail address. |
protected
java.lang.String |
getFax1() Return the primary fax number. |
protected
java.lang.String |
getFirstName() Return the first name for the contact person. |
protected
java.lang.String |
getLanguageId() Return the language identifier. |
protected
java.lang.String |
getLastName() Return the last name for the contact person. |
protected
java.lang.String |
getMemberId() Return owner identifier. |
protected
void |
getMemberIdAndIdentifierFromStoreent() This method gets owner identifier and identifer string of the store entity. |
protected
java.lang.String |
getMiddleName() Return the middle name for the contact person. |
protected
java.lang.String |
getNickname() Return the nickname for the address. |
protected
java.lang.String |
getPersonTitle() Return the business title for the contact person. |
protected
java.lang.String |
getPhone1() Return the primary phone number. |
AccessVector |
getResources() Gets the access vector accessed by this command. |
protected
java.lang.String |
getState() Return the state within this address. |
protected
java.lang.String |
getStoreAddressId() Return the store address identifier. |
protected
java.lang.String |
getStoreentId() Return the store entity identifier. |
protected
java.lang.String |
getStoreEntityIdentifier() Return the identifier string of store entity. |
protected
java.lang.String |
getVendorId() Return the vendor identifier. |
protected
java.lang.String |
getVendorName() Return the vendor name. |
protected
java.lang.String |
getZipCode() Return 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) This method constructs and returns the error message. |
void |
performExecute() This method performs the execution of creating a new vendor. |
void |
setAddress1(java.lang.String newAddress1) Set vendor address line 1. |
void |
setAddress2(java.lang.String newAddress2) Set vendor address line 2. |
void |
setAddress3(java.lang.String newAddress3) Set vendor address line 3. |
void |
setBusinessTitle(java.lang.String newBusinessTitle) Set the business title. |
void |
setCity(java.lang.String newCity) Set the city within this address. |
void |
setCountry(java.lang.String newCountry) Set the country or region within this address. |
void |
setDescription(java.lang.String newDescription) Set the description of the vendor. |
void |
setEmail1(java.lang.String newEmail1) Set the primary e-mail address. |
void |
setFax1(java.lang.String newFax1) Set the primary fax number. |
void |
setFirstName(java.lang.String newFirstName) Set the first name for the contact person. |
void |
setLanguageId(java.lang.String newLanguageId) Set the language identifier. |
void |
setLastName(java.lang.String newLastName) Set the last name for the contact person. |
protected
void |
setMemberId(java.lang.String newMemberId) Set the owner identifier. |
void |
setMiddleName(java.lang.String newMiddleName) Set the middle name for the contact person. |
protected
void |
setNickname(java.lang.String newNickname) Set the nickname for the address. |
void |
setPersonTitle(java.lang.String newPersonTitle) Set the business title for the contact person. |
void |
setPhone1(java.lang.String newPhone1) Set the primary phone number. |
void |
setState(java.lang.String newState) Set the state within this address. |
protected
void |
setStoreAddressId(java.lang.String newStoreAddressId) Set the store address identifier. |
protected
void |
setStoreentId(java.lang.String newStoreentId) Set the store entity identifier. |
protected
void |
setStoreEntityIdentifier(java.lang.String newStoreEntityIdentifier) Set the identifier string of store entity. |
protected
void |
setVendorId(java.lang.String newVendorId) Set the vendor identifier. |
void |
setVendorName(java.lang.String newVendorName) Set the vendor name. |
void |
setZipCode(java.lang.String newZipCode) Set the ZIP code within this address. |
void |
validateParameters() This method gets the information of the new vendor to be created 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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public VendorCreateCmdImpl()
Method Detail |
---|
protected java.lang.String getAddress1()
protected java.lang.String getAddress2()
protected java.lang.String getAddress3()
protected java.lang.String getBusinessTitle()
protected java.lang.String getCity()
protected java.lang.String getCountry()
protected java.lang.String getDescription()
protected java.lang.String getEmail1()
protected java.lang.String getFax1()
protected java.lang.String getFirstName()
protected java.lang.String getLanguageId()
protected java.lang.String getLastName()
protected java.lang.String getMemberId()
protected java.lang.String getMiddleName()
protected java.lang.String getNickname()
protected java.lang.String getPersonTitle()
protected java.lang.String getPhone1()
protected java.lang.String getState()
protected java.lang.String getStoreAddressId()
protected java.lang.String getStoreentId()
protected java.lang.String getStoreEntityIdentifier()
protected java.lang.String getVendorId()
protected java.lang.String getVendorName()
protected java.lang.String getZipCode()
public void setAddress1(java.lang.String newAddress1)
setAddress1
in interface
VendorCreateCmd
newAddress1
- java.lang.Stringpublic void setAddress2(java.lang.String newAddress2)
setAddress2
in interface
VendorCreateCmd
newAddress2
- java.lang.Stringpublic void setAddress3(java.lang.String newAddress3)
setAddress3
in interface
VendorCreateCmd
newAddress3
- java.lang.Stringpublic void setBusinessTitle(java.lang.String newBusinessTitle)
setBusinessTitle
in interface
VendorCreateCmd
newBusinessTitle
- java.lang.Stringpublic void setCity(java.lang.String newCity)
setCity
in interface
VendorCreateCmd
newCity
- java.lang.Stringpublic void setCountry(java.lang.String newCountry)
setCountry
in interface
VendorCreateCmd
newCountry
- java.lang.Stringpublic void setDescription(java.lang.String newDescription)
setDescription
in interface
VendorCreateCmd
newDescription
- java.lang.Stringpublic void setEmail1(java.lang.String newEmail1)
setEmail1
in interface
VendorCreateCmd
newEmail1
- java.lang.Stringpublic void setFax1(java.lang.String newFax1)
setFax1
in interface
VendorCreateCmd
newFax1
- java.lang.Stringpublic void setFirstName(java.lang.String newFirstName)
setFirstName
in interface
VendorCreateCmd
newFirstName
- java.lang.Stringpublic void setLanguageId(java.lang.String newLanguageId)
newLanguageId
- java.lang.Stringpublic void setLastName(java.lang.String newLastName)
setLastName
in interface
VendorCreateCmd
newLastName
- java.lang.Stringprotected void setMemberId(java.lang.String newMemberId)
newMemberId
- java.lang.Stringpublic void setMiddleName(java.lang.String newMiddleName)
setMiddleName
in interface
VendorCreateCmd
newMiddleName
- java.lang.Stringprotected void setNickname(java.lang.String newNickname)
newNickname
- java.lang.Stringpublic void setPersonTitle(java.lang.String newPersonTitle)
setPersonTitle
in interface
VendorCreateCmd
newPersonTitle
- java.lang.Stringpublic void setPhone1(java.lang.String newPhone1)
setPhone1
in interface
VendorCreateCmd
newPhone1
- java.lang.Stringpublic void setState(java.lang.String newState)
setState
in interface
VendorCreateCmd
newState
- java.lang.Stringprotected void setStoreAddressId(java.lang.String newStoreAddressId)
newStoreAddressId
- java.lang.Stringprotected void setStoreentId(java.lang.String newStoreentId)
newStoreentId
- java.lang.Stringprotected void setStoreEntityIdentifier(java.lang.String newStoreEntityIdentifier)
newStoreEntityIdentifier
-
java.lang.Stringprotected void setVendorId(java.lang.String newVendorId)
newVendorId
- java.lang.Stringpublic void setVendorName(java.lang.String newVendorName)
setVendorName
in interface
VendorCreateCmd
newVendorName
- java.lang.Stringpublic void setZipCode(java.lang.String newZipCode)
setZipCode
in interface
VendorCreateCmd
newZipCode
- java.lang.Stringpublic void validateParameters() throws ECException
Exception:
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
com.ibm.commerce.exception.ECApplicationException.
- If the
XMLObject cannot be parsed as expected, throw ECApplicationException.ECException
protected void getMemberIdAndIdentifierFromStoreent() throws ECException
This method uses the following AccessBean:
Exceptions:
com.ibm.commerce.exception.ECException.
ECSystemException
- for the following reasons:
javax.ejb.CreateException, javax.ejb.FinderException,
javax.naming.NamingException, java.rmi.RemoteException and any generic
ExceptionECException
public AccessVector getResources() throws ECException
This method uses the following AccessBean:
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
Exception:
ECSystemException
- for the following reasons: CreateException,
FinderException, RemoteException, NamingExceptionECException
public void performExecute() throws ECException
This method uses the following AccessBean:
Exception:
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
protected java.lang.String generateNicknameForVendor()
<name2>?<name1>?<lang_id>?<type> where <name2> = Vendor.VendorName <name1> = StoreEntity.Identifier <lang_id> = language_id <type> = "VendorLocation".
protected void handleException(java.lang.Exception e, java.lang.String methodName) throws ECException
e
- Exception - The exception instance to be formatted.methodName
- String - The name of the method from which this
method was called. Exception:ECException
- - could be one of many different exceptions: ECApplicationException.
RemoteException, CreateException, FinderException, or
NamingException.protected void handleSubmitError(ECException e) throws ECApplicationException
Exception:
com.ibm.commerce.exception.ECApplicationException.
- Throw
ECApplicationException with the newly constructed message.
ECApplicationException