public class StoreCreationWizardCmdImpl extends com.ibm.commerce.tools.command.ToolsControllerCommandImpl implements StoreCreationWizardCmd
StoreCreationWizardCmd
tools controller command.
Name | XPath | Description |
---|---|---|
CatalogProfileStore |
%CATALOG_PROFILE_STORE% |
The catalog profile store name. Optional. |
DefaultCurrency |
%HOSTED_STORE_DEFAULT_CURRENCY% |
The store's default currency. Mandatory. |
DefaultLocale |
%HOSTED_STORE_DEFAULT_LOCALE% |
The store's default locale. Optional. |
ISPOrgDN |
%SERVICE_PROVIDER_ORG_DISTINGUISHED_NAME% |
The full distinguished name of the service provider organization. This can be found in the dn column of the orgentity table. Optional. |
ISPStoreIdentifier |
%SERVICE_PROVIDER_STORE_IDENTIFIER% |
The store identifier of service provider's store. Optional. |
IstrStoreHomepageURL |
%HOSTED_STORE_HOMEPAGE_URL% |
The istrStoreHomepageURL to set. Optional. |
OwnerDN |
%HOSTED_STORE_OWNER_DISTINGUISHED_NAME% |
The distinguished name of the owner of the hosted store. This can be found in the dn column of the users table. Optional. |
OwnerEmail |
%HOSTED_STORE_OWNER_EMAIL_ADDRESS% |
The owner's e-mail address. Mandatory. |
ProfileOrgDN |
%PROFILE_ORG_DISTINGUISHED_NAME% |
The full distinguished name of the profile stores organization. This can be found in the dn column of the orgentity table. Optional. |
ProfileStore |
%HOSTED_STORE_PROFILE_STORE% |
The unique name of the hosted store profile store. Optional. |
RequestProperties |
null |
The request properties. Possible include: paymentOverride, EC_XMLObject. Mandatory. |
StoreCategory |
%HOSTED _STORE_CATEGORY% |
The store category. Optional. |
StoreDescription |
%HOSTED_STORE_DESCRIPTION% |
The store description. Mandatory. |
StoreDir |
%HOSTED_STORE_DIRECTORY_NAME% |
The name of folder to keep hosted store file assets. Optional. |
StoreDisplayName |
%HOSTED_STORE_DISPLAY_NAME% |
The store display name. Mandatory. |
StoreIdentifier |
%HOSTED_STORE_IDENTIFIER% |
The store's identifier. Mandatory. |
StoreOrgId |
null |
The full distinguished name of the hosted store organization. This can be found in the dn column of the orgentity table. Mandatory. |
Name | Description |
---|---|
PaymentsList |
A Vector of hashtables of all payment list. |
IstrStoreHomepageURL |
The store homepage URL. |
Resources |
The access vector accessed by this command. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
java.util.Map |
problemTriggers |
static java.lang.String |
STAGING_FOR_CREATESTORE_CONFIGURATION_FLAG
Flag for judge whether is using the stagingProp in create new store
StagingEnable: make sure it is a staging env
SwitchForCreateStore: make sure the StagProp function in storeCreation is access,only a flag
|
static java.lang.String |
SWITCH_TO_CREATESTORE |
static java.lang.String |
SWITCH_TO_CREATESTORE_TRUE |
defaultCommandClassName
Constructor and Description |
---|
StoreCreationWizardCmdImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
static boolean |
getFlagForStagProp()
Get the config from wc-component xml
|
java.lang.String |
getIstrStoreHomepageURL()
Returns the istrStoreHomepageURL.
|
java.util.Vector |
getPaymentsList()
Returns the payment list.
|
com.ibm.commerce.accesscontrol.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.
|
boolean |
judgeTriggerWhetherExists(java.lang.String triggerName)
Judge the trigger(avoid hardCode trigger dump) is whether exists
Note, the feature maybe should enhance further,there is a limit: if there is a similar function with the current trigger, there will dump
In the current periord, the feature ask the client to check the triggers if they need to add a similar tirgger related the staglog
|
boolean |
judgeTriggerWhetherExists(java.lang.String action,
java.lang.String tableName)
Judge the trigger(same triggerEvent and tableName) is whether exists
|
void |
performExecute()
performExecute does the follow:
|
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 istrStoreHomepageURLIn)
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(com.ibm.commerce.datatype.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 Parameters from request.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getViewInputProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public java.util.Map problemTriggers
public static final java.lang.String STAGING_FOR_CREATESTORE_CONFIGURATION_FLAG
public static final java.lang.String SWITCH_TO_CREATESTORE
public static final java.lang.String SWITCH_TO_CREATESTORE_TRUE
public org.w3c.dom.Document createCustomXMLElement(org.w3c.dom.Document adocRoot) throws com.ibm.commerce.exception.ECApplicationException
createCustomXMLElement
in interface StoreCreationWizardCmd
adocRoot
- The XML document rootcom.ibm.commerce.exception.ECApplicationException
- the exception to throw if the custom code needs to throw an exceptionpublic java.lang.String createHostedStoreHomepageURL()
createHostedStoreHomepageURL
in interface StoreCreationWizardCmd
public static boolean getFlagForStagProp()
public java.lang.String getIstrStoreHomepageURL()
public java.util.Vector getPaymentsList()
getPaymentsList
in interface StoreCreationWizardCmd
public com.ibm.commerce.accesscontrol.AccessVector getResources() throws com.ibm.commerce.exception.ECException
getResources
in interface com.ibm.commerce.command.ECCommand
getResources
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
AbstractECTargetableCommand.getResources()
public boolean isUsAscii(java.lang.String parameterValue)
parameterValue
- The input Sting to checkpublic boolean judgeTriggerWhetherExists(java.lang.String triggerName)
action
- tableName
- public boolean judgeTriggerWhetherExists(java.lang.String action, java.lang.String tableName)
action
- tableName
- public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.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 setCatalogProfileStore(java.lang.String astrCatalogProfStore)
astrCatalogProfStore
- The catalog profile store name.public void setDefaultCurrency(java.lang.String astrDefaultCurr)
astrDefaultCurr
- The store's default currency.public void setDefaultLocale(java.lang.String astrDefaultLocale)
astrDefaultLocale
- The store's default locale.public void setISPOrgDN(java.lang.String astrISPOrgDN)
astrISPOrgDN
- The distinguished name of the service provider organization.public void setISPStoreIdentifier(java.lang.String astrISPStoreIdentifier)
astrISPStoreIdentifier
- The store identifier of service provider's store.public void setIstrStoreHomepageURL(java.lang.String istrStoreHomepageURLIn)
istrStoreHomepageURLIn
- The istrStoreHomepageURL to setpublic 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 setProfileOrgDN(java.lang.String astrProfileOrgDN)
astrProfileOrgDN
- The distinguished name of the profile stores organization.public void setProfileStore(java.lang.String astrProfileStore)
astrProfileStore
- The profile store name.public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aRequestProperties) throws com.ibm.commerce.exception.ECApplicationException
setRequestProperties
in interface com.ibm.commerce.command.ControllerCommand
setRequestProperties
in class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
aRequestProperties
- The input parameters that are received by the command.com.ibm.commerce.exception.ECApplicationException
- public void setStoreCategory(java.lang.String astrStoreCategory)
astrStoreCategory
- The store categorypublic void setStoreDescription(java.lang.String astrStoreDesc)
astrStoreDesc
- The store description.public void setStoreDir(java.lang.String astrStoreDir)
astrStoreDir
- The store directory.public void setStoreDisplayName(java.lang.String astrStoreDisplayName)
astrStoreDisplayName
- The store display name.public void setStoreIdentifier(java.lang.String astrStoreIdentifier)
astrStoreIdentifier
- The store's identifier.public void setStoreOrgId(java.lang.String astrStoreOrgId)
astrStoreOrgId
- The full distinguished name of the hosted store organization.public void validateParameters() throws com.ibm.commerce.exception.ECException, com.ibm.commerce.exception.ECApplicationException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
com.ibm.commerce.exception.ECApplicationException
- threw with message _ERR_SCW_ERROR_STORE_DN if the system cannot get store organization DN using the store organization's Id.