java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.contract.commands.StoreCreationWizardCmdImpl
Read the XML template file for the right profile store (e.g.: TemplateHostingContractRPS.xml) and substitutes with user specified values.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice 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.contract.commands. StoreCreationWizardCmd |
defaultCommandClassName |
Fields inherited from interface com.ibm.commerce.tools.command. ToolsControllerCommand |
NAME |
Constructor Summary | |
---|---|
StoreCreationWizardCmdImpl() |
Method Summary | |
---|---|
org.w3c.dom.Document |
createCustomXMLElement(org.w3c.dom.Document adocRoot) Override this method to customize the XML template read by the command. |
java.lang.String |
createHostedStoreHomepageURL() Override this method to specify the hosted store home page URL. |
java.lang.String |
getIstrStoreHomepageURL() Returns the istrStoreHomepageURL. |
java.util.Vector |
getPaymentsList() Returns the payment list. |
AccessVector |
getResources() Gets the access vector accessed by this command. |
boolean |
isUsAscii(java.lang.String parameterValue) String utility that checks if String is UTF8 value. |
void |
performExecute()
performExecute does the follow:
Put strings to be substituted in a Vector. |
void |
setCatalogProfileStore(java.lang.String astrCatalogProfStore) Sets unique name of the catalog profile store. |
void |
setDefaultCurrency(java.lang.String astrDefaultCurr) Sets store's default currency. |
void |
setDefaultLocale(java.lang.String astrDefaultLocale) Sets store's default locale. |
void |
setISPOrgDN(java.lang.String astrISPOrgDN) Sets the full distinguished name of the service provider organization. |
void |
setISPStoreIdentifier(java.lang.String astrISPStoreIdentifier) Sets service provider store's identifier. |
void |
setIstrStoreHomepageURL(java.lang.String istrStoreHomepageURL) Sets the istrStoreHomepageURL. |
void |
setOwnerDN(java.lang.String astrOwnerDN) Sets full distinguished name of the owner of the hosted store. |
void |
setOwnerEmail(java.lang.String astrOwnerEmail) Sets e-mail address for message notifications. |
void |
setProfileOrgDN(java.lang.String astrProfileOrgDN) Sets the full distinguished name of the profile stores organization. |
void |
setProfileStore(java.lang.String astrProfileStore) Sets unique name of the hosted store profile store. |
void |
setRequestProperties(
TypedProperty aRequestProperties) Gets the input parameters from the requestProperties object and sets each parameter to a local variable. |
void |
setStoreCategory(java.lang.String astrStoreCategory) Sets store's category. |
void |
setStoreDescription(java.lang.String astrStoreDesc) Sets store's description. |
void |
setStoreDir(java.lang.String astrStoreDir) Sets name of folder to keep hosted store file assets. |
void |
setStoreDisplayName(java.lang.String astrStoreDisplayName) Sets store display name. |
void |
setStoreIdentifier(java.lang.String astrStoreIdentifier) Sets store's identifier. |
void |
setStoreOrgId(java.lang.String astrStoreOrgId) Sets the full distinguished name of the hosted store organization. |
void |
validateParameters() Validate Paramaters from request. |
Methods inherited from class com.ibm.commerce.tools.command. ToolsControllerCommandImpl |
getViewInputProperties |
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,
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 StoreCreationWizardCmdImpl()
Method Detail |
---|
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
AbstractECTargetableCommand.getResources()
public boolean isUsAscii(java.lang.String parameterValue)
parameterValue
- The input Sting to checkpublic org.w3c.dom.Document createCustomXMLElement(org.w3c.dom.Document adocRoot) throws ECApplicationException
createCustomXMLElement
in interface
StoreCreationWizardCmd
adocRoot
- The XML document root
ECApplicationException
- the exception to throw if the custom code
needs to throw an exceptionpublic java.lang.String createHostedStoreHomepageURL()
createHostedStoreHomepageURL
in interface
StoreCreationWizardCmd
public java.util.Vector getPaymentsList()
getPaymentsList
in interface
StoreCreationWizardCmd
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- threw with message _ERR_SCW_ERROR_STORE_STATE if "Store"
element's "state" attribute from input template is not
"Active". threw with message _ERR_DUPLICATED_CONTRACT_NAME if Store
display name already exists in database. threw with message
_ERR_CONTRACT_SYS_GENERIC if there are other system errorspublic void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ToolsControllerCommandImpl
aRequestProperties
- request properties
ECApplicationException
-
threw with message _ERR_MISSING_CMD_PARAMETER if storeId is missing.
threw with message _ERR_CMD_INVALID_PARAM if paymentOverride parameter is not
a boolean.
threw with message _ERR_CMD_INVALID_PARAM if storeId or XML object is
invalid.
threw with message _ERR_SCW_MISSING_PAYMENT_METHOD if Payment Method Name is
missing from Custom Offline.
threw with message _ERR_SCW_MISSING_BRAND if brand is missing from Offline
Card.
threw with message _ERR_SCW_MISSING_CURRENCY if currency is missing from
Offline Card.public void validateParameters() throws ECException, ECApplicationException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException
ECApplicationException
- threw with message _ERR_SCW_ERROR_STORE_DN
if the system cannot get store organization DN using the store
organization's Id.
threw with message _ERR_SCW_ERROR_OWNER_DN if the system cannot get store
owner's DN using userId from command context.
threw with message _ERR_SCW_ERROR_PROFILE_STORE_IDENTIFIER if the system
cannot get profile store identifier using profile store id.
threw with message _ERR_SCW_ERROR_PROFILE_STORE_TYPE if the system cannot get
profile store type using profile store id, or an error occurred while
generating the input template file name.
threw with message _ERR_SCW_ERROR_PROFILE_STORE_DN if the system cannot get
profile store DN using profile store id.
threw with message _ERR_SCW_ERROR_CAT_PROF_STORE_IDENTIFIER if the system
cannot get catalog profile store identifier using catalog profile store
id.
threw with message _ERR_SCW_ERROR_CAT_PROF_STORE_DN if the system cannot get
catalog profile store DN using catalog profile store id.
threw with message _ERR_SCW_ERROR_SUB_ORG_NAME if the system cannot generate a
sub organization for the store.
threw with message _ERR_SCW_ERROR_ISP_ORG_DN if the system cannot get the
service provider's DN using the store Id parameter passed in.
threw with message _ERR_SCW_STORE_IDENTIFIER_EXISTS if store identifier
already exist for user's sub-organization.
threw with message _ERR_SCW_FFMC_EXISTS if fulfillemnt center name already
exist for user's organization.
threw with message _ERR_SCW_EMAIL_NOT_UTF8 if E-mail is in multibyte
format.
threw with message _ERR_SCW_ERROR_GETTING_LOCALE if there's an error
getting locale from command context.
threw with message _ERR_CONTRACT_SYS_GENERIC for other system
exceptions.public void setStoreOrgId(java.lang.String astrStoreOrgId)
astrStoreOrgId
- The full distinguished name of the hosted
store organization.public void setOwnerDN(java.lang.String astrOwnerDN)
astrOwnerDN
- The full distinguished name of the owner of the
hosted store.public void setOwnerEmail(java.lang.String astrOwnerEmail)
astrOwnerEmail
- The owner's e-mail
address.public void setStoreDisplayName(java.lang.String astrStoreDisplayName)
astrStoreDisplayName
- The store display
name.public void setStoreDir(java.lang.String astrStoreDir)
astrStoreDir
- The store directory.public void setISPOrgDN(java.lang.String astrISPOrgDN)
astrISPOrgDN
- The distinguished name of the service provider
organization.public void setProfileOrgDN(java.lang.String astrProfileOrgDN)
astrProfileOrgDN
- The distinguished name of the profile
stores organization.public void setCatalogProfileStore(java.lang.String astrCatalogProfStore)
astrCatalogProfStore
- The catalog profile store
name.public void setProfileStore(java.lang.String astrProfileStore)
astrProfileStore
- The profile store name.public void setDefaultLocale(java.lang.String astrDefaultLocale)
astrDefaultLocale
- The store's default
locale.public void setDefaultCurrency(java.lang.String astrDefaultCurr)
astrDefaultCurr
- The store's default
currency.public void setStoreCategory(java.lang.String astrStoreCategory)
astrStoreCategory
- The store categorypublic void setStoreDescription(java.lang.String astrStoreDesc)
astrStoreDesc
- The store description.public void setStoreIdentifier(java.lang.String astrStoreIdentifier)
astrStoreIdentifier
- The store's
identifier.public void setISPStoreIdentifier(java.lang.String astrISPStoreIdentifier)
astrISPStoreIdentifier
- The store identifier of service
provider's store.public java.lang.String getIstrStoreHomepageURL()
public void setIstrStoreHomepageURL(java.lang.String istrStoreHomepageURL)
istrStoreHomepageURL
- The istrStoreHomepageURL to
set