public class CreateLightWeightStoreCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements CreateLightWeightStoreCmd
CreateLightWeightStoreCmd
task command.
PaymentsInformation
element in store XML string is not empty.
additionalMethodBeforeStoreCreation()
and additionalMethodAfterStoreCreation()
provide
a quick way to run additional codes before or after the store creation process.
CreateLightWeightStoreWrapperCmd
.
AddStoreRelationshipCmd
PolicyAddCmd
UpdateRegistryCmd
CSEditAttAccessBean
CatalogAccessBean
CatalogDescriptionAccessBean
FulfillmentCenterAccessBean
ISEditAttAccessBean
MsgTypesAccessBean
ProfilesAccessBean
ServerJDBCHelperBean
ShippingArrangementAccessBean
ShippingModeAccessBean
ShippingModeDescriptionAccessBean
StoreAccessBean
StoreCatalogAccessBean
StoreCategoryAccessBean
StoreEntityAccessBean
StoreEntityDescriptionAccessBean
StoreJDBCHelperAccessBean
StoreTransAccessBean
SupportedCurrencyAccessBean
SupportedLanguageAccessBean
TransportAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class is "com.ibm.commerce.contract.commands.CreateLightWeightStoreCmdImpl".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
CreateLightWeightStoreCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getBusinessPolicyName()
Gets the business policy names.
|
java.lang.Integer |
getChannelStoreId()
Gets the channel store ID.
|
java.lang.Long |
getCreatedByContractId()
Gets the contract's ID that created the store.
|
java.lang.Integer |
getDefaultShippingModeId()
Gets the default shipping mode of the store.
|
boolean |
getHasMasterCatalogProfileStore()
Gets the master catalog if one exists in catalog profile store.
|
java.util.Vector |
getPricePolicies()
Gets price policies.
|
java.lang.Long |
getProfileStoreCatalogId()
Gets the catalog assets store's catalog ID.
|
java.lang.String |
getProfileStoreCatalogName()
Gets the catalog asset store's catalog name.
|
java.lang.String |
getProfileStoreCatalogOwnerMemberId()
Gets the catalog owner's member ID.
|
boolean |
getResult()
Gets if the store is successfully created.
|
java.lang.String |
getStore_Id()
Gets the store ID.
|
java.lang.Integer |
getStoreDefaultLanguageId()
Gets the store default language ID.
|
org.w3c.dom.Element |
getStoreElement()
Gets the Store element.
|
java.lang.String |
getStoreIdentifier()
Gets the store name (identifier).
|
java.lang.String |
getStoreInitialState()
Gets the store initial state.
|
java.lang.String |
getStoreOwnerMemberId()
Gets the store owner's member Id.
|
java.lang.Integer |
getStoreType()
Gets the store type.
|
java.lang.String |
getStoreXML()
Gets the store XML string.
|
boolean |
getSynchronousDeployment()
Gets the synchronousDeployment flag to indicate contract should be deployed synchronously.
|
void |
performExecute()
Executes the business logic of this command implementation.
|
void |
setChannelStoreId(java.lang.Integer id)
Sets the channel store ID.
|
void |
setCreatedByContractId(java.lang.Long id)
Sets the contract's ID that created the store.
|
void |
setStoreType(java.lang.Integer i)
Sets the store type.
|
void |
setStoreXML(java.lang.String s)
Sets the store XML string.
|
void |
setSynchronousDeployment(boolean synchronousDeploymentFlag)
Sets the synchronousDeployment flag to indicate contract should be deployed synchronously.
|
void |
validateParameters()
Validates the parameters.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public java.lang.String[] getBusinessPolicyName()
getBusinessPolicyName
in interface CreateLightWeightStoreCmd
public java.lang.Integer getChannelStoreId()
getChannelStoreId
in interface CreateLightWeightStoreCmd
public java.lang.Long getCreatedByContractId()
getCreatedByContractId
in interface CreateLightWeightStoreCmd
public java.lang.Integer getDefaultShippingModeId()
getDefaultShippingModeId
in interface CreateLightWeightStoreCmd
public boolean getHasMasterCatalogProfileStore()
getHasMasterCatalogProfileStore
in interface CreateLightWeightStoreCmd
true
found master catalog in one of the specified catalog profile storefalse
no master catalog was found in one of the specified catalog profile store, or there was no catalog profile store specifiedpublic java.util.Vector getPricePolicies()
getPricePolicies
in interface CreateLightWeightStoreCmd
ContractCmdUtil.getPricePoliciesByStoreIdAndTPCIdAndTPCName(String, String, String)
public java.lang.Long getProfileStoreCatalogId()
getProfileStoreCatalogId
in interface CreateLightWeightStoreCmd
public java.lang.String getProfileStoreCatalogName()
getProfileStoreCatalogName
in interface CreateLightWeightStoreCmd
public java.lang.String getProfileStoreCatalogOwnerMemberId()
getProfileStoreCatalogOwnerMemberId
in interface CreateLightWeightStoreCmd
public boolean getResult()
getResult
in interface CreateLightWeightStoreCmd
true: store is created successfully.
false
: store is not created.
public java.lang.String getStore_Id()
getStore_Id
in interface CreateLightWeightStoreCmd
public java.lang.Integer getStoreDefaultLanguageId()
getStoreDefaultLanguageId
in interface CreateLightWeightStoreCmd
public org.w3c.dom.Element getStoreElement()
getStoreElement
in interface CreateLightWeightStoreCmd
public java.lang.String getStoreIdentifier()
getStoreIdentifier
in interface CreateLightWeightStoreCmd
public java.lang.String getStoreInitialState()
getStoreInitialState
in interface CreateLightWeightStoreCmd
public java.lang.String getStoreOwnerMemberId()
getStoreOwnerMemberId
in interface CreateLightWeightStoreCmd
public java.lang.Integer getStoreType()
getStoreType
in interface CreateLightWeightStoreCmd
0
: distributor proxy store
1
: reseller hosting store
Only 0
and 1
will be returned.public java.lang.String getStoreXML()
getStoreXML
in interface CreateLightWeightStoreCmd
public boolean getSynchronousDeployment()
getSynchronousDeployment
in interface CreateLightWeightStoreCmd
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
com.ibm.commerce.exception.ECSystemException
- Raised with message _ERR_FINDER_EXCEPTION if a FinderException is occured
Raised with message _ERR_REMOTE_EXCEPTION if a RemoteException is occured
Raised with message _ERR_NAMING_EXCEPTION if a NamingException is occured
Raised with message _ERR_CREATE_EXCEPTION if a CreateException is occured
Raised with message _ERR_SQL_EXCEPTION if a SQLException is occured
Raised with message _ERR_REMOVE_EXCEPTION if a RemoteException is occured
Raised with message _ERR_PARSE_XML if store XML cannot be parsed
Raised with message _ERR_CONTRACT_CMD_EXEC whenever other errors are occuredAbstractECTargetableCommand.performExecute()
public void setChannelStoreId(java.lang.Integer id)
setChannelStoreId
in interface CreateLightWeightStoreCmd
id
- channel store IDpublic void setCreatedByContractId(java.lang.Long id)
setCreatedByContractId
in interface CreateLightWeightStoreCmd
id
- contract IDpublic void setStoreType(java.lang.Integer i)
setStoreType
in interface CreateLightWeightStoreCmd
i
- 0
: distributor proxy store
1
: reseller hosting store
Only 0
and 1
are allowed herepublic void setStoreXML(java.lang.String s)
setStoreXML
in interface CreateLightWeightStoreCmd
s
- Store XML stringpublic void setSynchronousDeployment(boolean synchronousDeploymentFlag)
setSynchronousDeployment
in interface CreateLightWeightStoreCmd
synchronousDeploymentFlag
- true for synchronous deployment, false for asynchronous deploymentpublic void validateParameters() throws com.ibm.commerce.exception.ECException
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.ECSystemException
- Raised with message _ERR_MISSING_PARAMETER if Store XML is null or store type (distributor proxy or reseller hosting) is not set.AbstractECTargetableCommand.validateParameters()