com.ibm.commerce.contract.commands
Class CreateSubOrganizationCmdImpl

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

public class CreateSubOrganizationCmdImpl
extends TaskCommandImpl
implements CreateSubOrganizationCmd

Creates the sub-organization based on the contract XML. (WebSphere Commerce Business Edition only) Calling command: DeployContractCmd The following AccessBeans are used in this class: ServerJDBCHelperAccessBean The following commands are used in this class: OrgEntityAddCmd

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
          The name of this class is "com.ibm.commerce.contract.commands.CreateSubOrganizationCmdImpl".
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. CreateSubOrganizationCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
CreateSubOrganizationCmdImpl()
           
 
Method Summary
 java.lang.String getSubOrgId()
          Gets the sub-organization ID.
 void performExecute()
          The business logic for this command.
 void setStoreXML(java.lang.String storeXML)
          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.CreateSubOrganizationCmdImpl".
See Also:
Constant Field Values
Constructor Detail

CreateSubOrganizationCmdImpl

public CreateSubOrganizationCmdImpl()
Method Detail

getSubOrgId

public java.lang.String getSubOrgId()
Gets the sub-organization ID.
Specified by:
getSubOrgId in interface CreateSubOrganizationCmd
Returns:
sub-organization ID

setStoreXML

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

performExecute

public void performExecute()
                    throws ECException
Description copied from class: AbstractECTargetableCommand
The business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.
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:
AbstractECTargetableCommand.performExecute()

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 whenever Store XML is null or store type (distributor proxy or reseller hosting) is not set
See Also:
AbstractECTargetableCommand.validateParameters()