com.ibm.commerce.contract.commands
Class CreateLightWeightStoreCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.contract.commands.CreateLightWeightStoreCmdImpl
All Implemented Interfaces:
CreateLightWeightStoreCmd, ECCommand, ECTargetableCommand, TaskCommand

public class CreateLightWeightStoreCmdImpl
extends TaskCommandImpl
implements CreateLightWeightStoreCmd

The default implementation of CreateLightWeightStore command

See Also:
Serialized Form

Field Summary
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.
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.contract.commands. CreateLightWeightStoreCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
CreateLightWeightStoreCmdImpl()
           
 
Method Summary
protected  boolean additionalMethodAfterStoreCreation()
          Additional method to be called after the store creation process.
protected  boolean additionalMethodBeforeStoreCreation()
          Additional method to be called before the store creation process.
protected  void createBussinessPolicies(org.w3c.dom.NodeList bps)
          Creates bussiness policies.
protected  void createBussinessPolicy(org.w3c.dom.Element e)
          Creates bussiness policy based one bussiness policy element.
protected  void createInventoryAdjustmentCode(org.w3c.dom.NodeList nl)
          Createss the Inventory Adjustment Code and Description
protected  void createProfile(org.w3c.dom.NodeList nl)
          Creates store profile.
protected  void createScheduledCommand(org.w3c.dom.Element ele)
          Run the Custom Extension Command via the scheduler
protected  void createShippingArrangement(org.w3c.dom.NodeList inlSA)
          Creates Shipping Arrangement between the Reseller store and the Manufacturer's Shared Fulfillment Center
protected  void createShippingMode(org.w3c.dom.NodeList inlShippingMode)
          Creates Shipping Modes for the store
protected  boolean createStore()
          Creates the distributor or reseller store based on the information in store XML string.
protected  void createStoreAddressAndSetContactAndLocationAddress(java.lang.Long storeOrgMemberId, java.lang.Integer storeId, java.lang.String storeIdentifier, java.lang.Integer languageId, java.lang.String url)
          Creates two store addresses (Location and Contact) and popluates storeentdesc table Calls copyOrgAddress to create store addresses
protected  void createStorePath(org.w3c.dom.NodeList pathNodeList)
          Creates store releationship: relationship with profile store(s)
protected  void createStorePathFromStore(org.w3c.dom.NodeList pathNodeList)
          Creates store releationship: relationship with channel store
protected  void createSupportedCurrency(org.w3c.dom.NodeList inlCurrency)
          Sets store supported currencies
protected  void createSupportedLang(org.w3c.dom.NodeList inlLang)
          Sets store supported languages
 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.
protected  org.w3c.dom.Document getXMLDoc(java.lang.String xmlString)
          Gets the XML document from the xml string
protected  void parseXMLDoc(org.w3c.dom.Document XMLDoc)
          Parses the xml document
 void performExecute()
          Creates the store; Depends on the supplied store XML string, it also creates the store relationships, supported languages, supported currencies, business policies, profiles, shipping modes and shipping arrangements.
protected  void setBusinessPolicyName(java.lang.String[] bpNames)
          Sets the business policy names.
 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.
protected  void setDefaultShippingModeId(java.lang.Integer i)
          Sets the default shipping mode of the store
protected  void setHasMasterCatalogProfileStore(boolean b)
          Sets if master catalog exists in catalog asset store.
protected  void setPricePolicies(java.util.Vector v)
          Sets price policies
protected  void setProfileStoreCatalogId(java.lang.Long id)
          Sets the catalog asset store's catalog ID.
protected  void setProfileStoreCatalogName(java.lang.String s)
          Sets the catalog asset store's catalog name.
protected  void setProfileStoreCatalogOwnerMemberId(java.lang.String s)
          Sets the catalog owner's member ID.
protected  void setResult(boolean r)
          Sets if the store is successfully created
protected  void setStore_Id(java.lang.String sid)
          Sets the store ID
protected  void setStoreDefaultLanguageId(java.lang.Integer id)
          Sets the store default language ID.
protected  void setStoreIdentifier(java.lang.String s)
          Sets the store name (identifier)
protected  void setStoreInitialState(java.lang.String s)
          Sets the store initial state.
protected  void setStoreOwnerMemberId(java.lang.String s)
          Sets the store owner's member Id
 void setStoreType(java.lang.Integer i)
          Sets the store type.
 void setStoreXML(java.lang.String s)
          Sets the store XML string.
 void validateParameters()
          Validates the parameters
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, 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
 

Field Detail
public static final java.lang.String COPYRIGHT
The internal copyright field.
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
The name of this class is "com.ibm.commerce.contract.commands.CreateLightWeightStoreCmdImpl".
See Also:
Constant Field Values
Constructor Detail

CreateLightWeightStoreCmdImpl

public CreateLightWeightStoreCmdImpl()
Method Detail

getStoreElement

public org.w3c.dom.Element getStoreElement()
Gets the Store element
Specified by:
getStoreElement in interface CreateLightWeightStoreCmd
Returns:
Store element.

getPricePolicies

public java.util.Vector getPricePolicies()
Gets price policies
Specified by:
getPricePolicies in interface CreateLightWeightStoreCmd
Returns:
price policies
See Also:
com.ibm.commerce.contract.util

setPricePolicies

protected void setPricePolicies(java.util.Vector v)
Sets price policies

getHasMasterCatalogProfileStore

public boolean getHasMasterCatalogProfileStore()
Gets the master catalog if one exists in catalog profile store.
Specified by:
getHasMasterCatalogProfileStore in interface CreateLightWeightStoreCmd
Returns:
true found master catalog in one of the specified catalog profile store
false no master catalog was found in one of the specified catalog profile store, or there was no catalog profile store specified

setHasMasterCatalogProfileStore

protected void setHasMasterCatalogProfileStore(boolean b)
Sets if master catalog exists in catalog asset store.

setStoreXML

public void setStoreXML(java.lang.String s)
Sets the store XML string.
Specified by:
setStoreXML in interface CreateLightWeightStoreCmd
Parameters:
s - store XML string

getStoreXML

public java.lang.String getStoreXML()
Gets the store XML string.
Specified by:
getStoreXML in interface CreateLightWeightStoreCmd
Returns:
Store XML string

getStoreInitialState

public java.lang.String getStoreInitialState()
Gets the store initial state.
Specified by:
getStoreInitialState in interface CreateLightWeightStoreCmd
Returns:
store initial state

setStoreInitialState

protected void setStoreInitialState(java.lang.String s)
Sets the store initial state.

setChannelStoreId

public void setChannelStoreId(java.lang.Integer id)
Sets the channel store ID.
Specified by:
setChannelStoreId in interface CreateLightWeightStoreCmd
Parameters:
id - channel store ID

getChannelStoreId

public java.lang.Integer getChannelStoreId()
Gets the channel store ID.
Specified by:
getChannelStoreId in interface CreateLightWeightStoreCmd
Returns:
channel store ID

getStoreDefaultLanguageId

public java.lang.Integer getStoreDefaultLanguageId()
Gets the store default language ID.
Specified by:
getStoreDefaultLanguageId in interface CreateLightWeightStoreCmd
Returns:
store default language ID

setStoreDefaultLanguageId

protected void setStoreDefaultLanguageId(java.lang.Integer id)
Sets the store default language ID.
Parameters:
id - store default language ID

setCreatedByContractId

public void setCreatedByContractId(java.lang.Long id)
Sets the contract's ID that created the store.
Specified by:
setCreatedByContractId in interface CreateLightWeightStoreCmd
Parameters:
id - contract ID

getCreatedByContractId

public java.lang.Long getCreatedByContractId()
Gets the contract's ID that created the store.
Specified by:
getCreatedByContractId in interface CreateLightWeightStoreCmd
Returns:
the contract ID of the contract that created the store

setStoreType

public void setStoreType(java.lang.Integer i)
Sets the store type.
Specified by:
setStoreType in interface CreateLightWeightStoreCmd
Parameters:
i - 0: distributor proxy store 1: reseller hosting store Only 0 and 1 are allowed here

getStoreType

public java.lang.Integer getStoreType()
Gets the store type:.
Specified by:
getStoreType in interface CreateLightWeightStoreCmd
Returns:
0: distributor proxy store 1: reseller hosting store Only 0 and 1 will be returned.

getProfileStoreCatalogId

public java.lang.Long getProfileStoreCatalogId()
Gets the catalog assets store's catalog ID.
Specified by:
getProfileStoreCatalogId in interface CreateLightWeightStoreCmd
Returns:
catalog asset store's catalog ID

setProfileStoreCatalogId

protected void setProfileStoreCatalogId(java.lang.Long id)
Sets the catalog asset store's catalog ID.
Parameters:
id - catalog asset store's catalog ID

getProfileStoreCatalogName

public java.lang.String getProfileStoreCatalogName()
Gets the catalog asset store's catalog name.
Specified by:
getProfileStoreCatalogName in interface CreateLightWeightStoreCmd
Returns:
catalog asset store's catalog name

setProfileStoreCatalogName

protected void setProfileStoreCatalogName(java.lang.String s)
Sets the catalog asset store's catalog name.
Parameters:
s - catalog asset store's catalog name

getProfileStoreCatalogOwnerMemberId

public java.lang.String getProfileStoreCatalogOwnerMemberId()
Gets the catalog owner's member ID.
Specified by:
getProfileStoreCatalogOwnerMemberId in interface CreateLightWeightStoreCmd
Returns:
catalog owner's member ID

setProfileStoreCatalogOwnerMemberId

protected void setProfileStoreCatalogOwnerMemberId(java.lang.String s)
Sets the catalog owner's member ID.
Parameters:
s - catalog owner's member ID in String

getStore_Id

public java.lang.String getStore_Id()
Gets the store ID.
Specified by:
getStore_Id in interface CreateLightWeightStoreCmd
Returns:
Store iD

setStore_Id

protected void setStore_Id(java.lang.String sid)
Sets the store ID
Parameters:
sid - Store ID

getBusinessPolicyName

public java.lang.String[] getBusinessPolicyName()
Gets the business policy names.
Specified by:
getBusinessPolicyName in interface CreateLightWeightStoreCmd
Returns:
business policy names

setBusinessPolicyName

protected void setBusinessPolicyName(java.lang.String[] bpNames)
Sets the business policy names.
Parameters:
bpNames - business policy names

getResult

public boolean getResult()
Gets if the store is successfully created
Specified by:
getResult in interface CreateLightWeightStoreCmd
Returns:
true: store is created successfully. false: store is not created.

setResult

protected void setResult(boolean r)
Sets if the store is successfully created

getStoreOwnerMemberId

public java.lang.String getStoreOwnerMemberId()
Gets the store owner's member Id
Specified by:
getStoreOwnerMemberId in interface CreateLightWeightStoreCmd
Returns:
Store owner's member Id

setStoreOwnerMemberId

protected void setStoreOwnerMemberId(java.lang.String s)
Sets the store owner's member Id

getStoreIdentifier

public java.lang.String getStoreIdentifier()
Gets the store name (identifier)
Specified by:
getStoreIdentifier in interface CreateLightWeightStoreCmd
Returns:
Store name (identifier)

setStoreIdentifier

protected void setStoreIdentifier(java.lang.String s)
Sets the store name (identifier)

getDefaultShippingModeId

public java.lang.Integer getDefaultShippingModeId()
Gets the default shipping mode of the store
Specified by:
getDefaultShippingModeId in interface CreateLightWeightStoreCmd
Returns:
Default shipping mode of the store

setDefaultShippingModeId

protected void setDefaultShippingModeId(java.lang.Integer i)
Sets the default shipping mode of the store

additionalMethodBeforeStoreCreation

protected boolean additionalMethodBeforeStoreCreation()
Additional method to be called before the store creation process.
Returns:
true: the method was executed successfully
false: the method failed to execute

additionalMethodAfterStoreCreation

protected boolean additionalMethodAfterStoreCreation()
Additional method to be called after the store creation process.
Returns:
true: the method was executed successfully
false: the method failed to execute

validateParameters

public void validateParameters()
                        throws ECException
Validates the parameters
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException
ECSystemException - Raised with message _ERR_MISSING_PARAMETER if Store XML is null or store type (distributor proxy or reseller hosting) is not set.
See Also:
AbstractECTargetableCommand.validateParameters()

performExecute

public void performExecute()
                    throws ECException
Creates the store; Depends on the supplied store XML string, it also creates the store relationships, supported languages, supported currencies, business policies, profiles, shipping modes and shipping arrangements. Also, it configures the Websphere Commerce Payments if the store type is 'Reseller Hosting Store' and if PaymentsInformation element in store XML string is not empty.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException
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 SQL Exception 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 occured
See Also:
com.ibm.commerce.command.TaskCommandImpl##performExecute()

createStore

protected boolean createStore()
                       throws FinderException,
                              java.rmi.RemoteException,
                              javax.naming.NamingException,
                              CreateException,
ECApplicationException,
                              java.sql.SQLException
Creates the distributor or reseller store based on the information in store XML string. This method will only create a store in store/storeent table. This method is called when deploying a distributor contract.
Returns:
true store was created successfully false store was not created
Throws:
CreateException
ECApplicationException - Raised with message _ERR_CONTRACT_INCORRECT_STORE_IDENTIFIER if an existing store (created by a different version of this contract) has a different store identifier Raised with message _ERR_RETRIEVE_LANGUAGE_ID if the language(s) specified in defaultLocale and locale attribute could not be find Raised with message _ERR_RETRIEVE_MEMBER_GROUP_ID, _ERR_RETRIEVE_USER_ID, _ERR_RETRIEVE_ORG_ID and _ERR_RETRIEVE_STORE_ID whenever the store owner's ID could not be retrived by the given distinguish name Raised with message _ERR_CONTRACT_DUPLICATE_STORE_IDENTIFIER if the owner of this store specified in the store XML has an existing store in the database with the same store identifier
FinderException
javax.naming.NamingException
java.rmi.RemoteException
java.sql.SQLException

getXMLDoc

protected org.w3c.dom.Document getXMLDoc(java.lang.String xmlString)
                                  throws org.xml.sax.SAXException,
                                         java.io.IOException
Gets the XML document from the xml string
Parameters:
xmlString - The xml string
Returns:
XML document
Throws:
java.io.IOException
org.xml.sax.SAXException

parseXMLDoc

protected void parseXMLDoc(org.w3c.dom.Document XMLDoc)
Parses the xml document
Parameters:
XMLDoc - XML document

createStorePath

protected void createStorePath(org.w3c.dom.NodeList pathNodeList)
                        throws java.rmi.RemoteException,
                               FinderException,
                               javax.naming.NamingException,
                               CreateException,
ECException,
ECApplicationException,
                               java.sql.SQLException
Creates store releationship: relationship with profile store(s)
Parameters:
pathNodeList - Store relationship node list
Throws:
CreateException
ECApplicationException - Raised with message _ERR_RETRIEVE_MEMBER_GROUP_ID whenever the member group ID of the owner of the related store can not be found (if the owner is a member group) Raised with message _ERR_RETRIEVE_USER_ID whenever the user ID of the owner of the related store can not be found (if the owner is an user) Raised with message _ERR_RETRIEVE_ORG_ID whenever the organization ID of the owner of the related store can not be found (if the owner is an organization) Raised with message _ERR_RETRIEVE_STORE_ID whenever the related store can not be found
ECException
FinderException.
NamingException.
RemoteException.
SQLException.
java.rmi.RemoteException
FinderException
javax.naming.NamingException
java.sql.SQLException

createBussinessPolicies

protected void createBussinessPolicies(org.w3c.dom.NodeList bps)
                                throws ECException
Creates bussiness policies. Bussiness policies are defined in Store xml. Calls createBussinessPolicy method to add bussiness policies
Parameters:
bps - Bussiness policy Node List
Throws:
ECException

createBussinessPolicy

protected void createBussinessPolicy(org.w3c.dom.Element e)
                              throws ECException
Creates bussiness policy based one bussiness policy element. Calls PolicyAddCmd to add bussiness policy.
Parameters:
e - Bussiness policy element.
Throws:
ECException
See Also:
PolicyAddCmdImpl

createSupportedLang

protected void createSupportedLang(org.w3c.dom.NodeList inlLang)
                            throws java.rmi.RemoteException,
                                   FinderException,
                                   javax.naming.NamingException,
                                   CreateException,
ECException,
ECApplicationException
Sets store supported languages
Parameters:
inlLang - Store supported language node list
Throws:
CreateException.
ECApplicationException - Raised with message _ERR_RETRIEVE_LANGUAGE_ID whenever a corresponding language ID of a locale name can not be found
ECException.
FinderException.
NamingException.
RemoteException.
java.rmi.RemoteException
FinderException
javax.naming.NamingException
CreateException
ECException

createSupportedCurrency

protected void createSupportedCurrency(org.w3c.dom.NodeList inlCurrency)
                                throws java.rmi.RemoteException,
                                       FinderException,
                                       javax.naming.NamingException,
                                       CreateException
Sets store supported currencies
Parameters:
inlCurrency - Store supported currency node list
Throws:
CreateException.
FinderException.
NamingException.
RemoteException.
java.rmi.RemoteException
FinderException
javax.naming.NamingException
CreateException

createProfile

protected void createProfile(org.w3c.dom.NodeList nl)
                      throws java.rmi.RemoteException,
                             FinderException,
                             javax.naming.NamingException,
                             CreateException,
ECException,
ECApplicationException
Creates store profile. Profiles are defined in StoreBase xml.
Parameters:
nl - Store profile node list
Throws:
CreateException
ECApplicationException - Raised with message _ERR_RETRIEVE_TRANSPORT_ID if the corrseponding transport ID of a transport can not be found Raised with message _ERR_RETRIEVE_MESSAGE_TYPE if the message type ID cannot be retrived
ECException
FinderException
javax.naming.NamingException
java.rmi.RemoteException

createStoreAddressAndSetContactAndLocationAddress

protected void createStoreAddressAndSetContactAndLocationAddress(java.lang.Long storeOrgMemberId,
                                                                 java.lang.Integer storeId,
                                                                 java.lang.String storeIdentifier,
                                                                 java.lang.Integer languageId,
                                                                 java.lang.String url)
                                                          throws java.rmi.RemoteException,
                                                                 FinderException,
                                                                 javax.naming.NamingException,
                                                                 CreateException,
ECApplicationException
Creates two store addresses (Location and Contact) and popluates storeentdesc table Calls copyOrgAddress to create store addresses
Parameters:
storeOrgMemberId - Store owner org's member ID
storeId - Store ID
storeIdentifier - Store identifier
languageId - Language ID
url - Store URL
Throws:
CreateException.
ECApplicationException - Raised with message _ERR_RETRIEVE_LANGUAGE_ID if the language(s) specified in locale attribute could not be retrived
FinderException.
NamingException.
RemoteException.
java.rmi.RemoteException
FinderException
javax.naming.NamingException
CreateException

createShippingMode

protected void createShippingMode(org.w3c.dom.NodeList inlShippingMode)
                           throws java.rmi.RemoteException,
                                  FinderException,
                                  javax.naming.NamingException,
                                  CreateException,
ECException
Creates Shipping Modes for the store
Parameters:
inlShippingMode - Shipping Mode Node List
Throws:
CreateException
ECException
FinderException
javax.naming.NamingException
java.rmi.RemoteException

createShippingArrangement

protected void createShippingArrangement(org.w3c.dom.NodeList inlSA)
                                  throws java.rmi.RemoteException,
                                         FinderException,
                                         javax.naming.NamingException,
                                         CreateException,
ECException,
ECApplicationException
Creates Shipping Arrangement between the Reseller store and the Manufacturer's Shared Fulfillment Center
Parameters:
inlSA - Shipping Arrangement Node List
Throws:
CreateException
ECException
ECApplicationException - Raised with message _ERR_RETRIEVE_MEMBER_GROUP_ID whenever the member group ID of the owner of the fulfillment center can not be found (if the owner is a member group) Raised with message _ERR_RETRIEVE_USER_ID whenever the user ID of the owner of the fulfillment center can not be found (if the owner is an user) Raised with message _ERR_RETRIEVE_ORG_ID whenever the organization ID of the owner of the fulfillment center can not be found (if the owner is an organization)
FinderException
javax.naming.NamingException
java.rmi.RemoteException

createStorePathFromStore

protected void createStorePathFromStore(org.w3c.dom.NodeList pathNodeList)
                                 throws java.rmi.RemoteException,
                                        FinderException,
                                        javax.naming.NamingException,
                                        CreateException,
ECException,
ECApplicationException,
                                        java.sql.SQLException
Creates store releationship: relationship with channel store
Parameters:
pathNodeList - StoreRelationshipFromStore node list
Throws:
CreateException
ECApplicationException - Raised with message _ERR_RETRIEVE_MEMBER_GROUP_ID whenever the member group ID of the owner of the related store can not be found (if the owner is a member group) Raised with message _ERR_RETRIEVE_USER_ID whenever the user ID of the owner of the related store can not be found (if the owner is an user) Raised with message _ERR_RETRIEVE_ORG_ID whenever the organization ID of the owner of the related store can not be found (if the owner is an organization) Raised with message _ERR_RETRIEVE_STORE_ID whenever the related store can not be found Raised with message _ERR_RETRIEVE_STORE_REL_TYPE whenever the store relationship ID can not be found
ECException
FinderException.
NamingException.
RemoteException.
SQLException.
java.rmi.RemoteException
FinderException
javax.naming.NamingException
java.sql.SQLException

createInventoryAdjustmentCode

protected void createInventoryAdjustmentCode(org.w3c.dom.NodeList nl)
                                      throws java.rmi.RemoteException,
                                             javax.naming.NamingException,
                                             FinderException,
                                             CreateException,
ECApplicationException
Createss the Inventory Adjustment Code and Description
Parameters:
nl - Inventory Adjustment Code node list
Throws:
CreateException
FinderException
javax.naming.NamingException
java.rmi.RemoteException
ECApplicationException - Raised with error message _ERR_RETRIEVE_LANGUAGE_ID if the language Id of the locale in the Description element cannot be found

createScheduledCommand

protected void createScheduledCommand(org.w3c.dom.Element ele)
                               throws java.rmi.RemoteException,
                                      javax.naming.NamingException,
                                      FinderException,
                                      CreateException,
ECApplicationException
Run the Custom Extension Command via the scheduler
Parameters:
ele - Custom Extension Command element
Throws:
CreateException,
FinderException,
NamingException,
RemoteException,
ECApplicationException - Raised with error message _ERR_GENERIC if the command could not be scheduled
java.rmi.RemoteException
javax.naming.NamingException
FinderException
CreateException