com.ibm.commerce.orderitems.commands
Class GetDynamicKitConfigurationDefinitionCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.orderitems.commands.GetDynamicKitConfigurationDefinitionCmdImpl
- All Implemented Interfaces:
- ECCommand, GetDynamicKitConfigurationDefinitionCmd, TaskCommand
- public class GetDynamicKitConfigurationDefinitionCmdImpl
- extends TaskCommandImpl
- implements GetDynamicKitConfigurationDefinitionCmd
This command is accepts an XML definition of a dynamic kit configuration as input and parses it to extract the
configuration information. The configuration information is available as output parameters.
Field Summary |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
Method Summary |
java.lang.String[] |
getConfigurationComponents()
Gets the list of configuration components. |
java.lang.String |
getConfigurationId()
Gets the Configuration Id. |
java.lang.String |
getCurrency()
Gets the currency of the Prices for the configuration components. |
java.lang.String |
getDynamicKitId()
Gets the Dynamic Kit Id. |
java.lang.String[] |
getPrices()
Gets the list of prices for each of the configuration components. |
java.lang.String[] |
getQuantities()
Gets the list of quantites of the configuration components. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
reset()
This method is called after a command has been executed to reset its states variables. |
void |
setXMLDefinition(java.lang.String astrXMLDefinition)
Sets the XML Definition of the configuration. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
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.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The internal copyright field.
GetDynamicKitConfigurationDefinitionCmdImpl
public GetDynamicKitConfigurationDefinitionCmdImpl()
getConfigurationComponents
public java.lang.String[] getConfigurationComponents()
- Gets the list of configuration components.
- Specified by:
getConfigurationComponents
in interface GetDynamicKitConfigurationDefinitionCmd
- Returns:
- java.lang.String[]
getConfigurationId
public java.lang.String getConfigurationId()
- Gets the Configuration Id.
- Specified by:
getConfigurationId
in interface GetDynamicKitConfigurationDefinitionCmd
- Returns:
- java.lang.String
getCurrency
public java.lang.String getCurrency()
- Gets the currency of the Prices for the configuration components.
- Specified by:
getCurrency
in interface GetDynamicKitConfigurationDefinitionCmd
- Parameters:
astrCurrency
- java.jang.String
getDynamicKitId
public java.lang.String getDynamicKitId()
- Gets the Dynamic Kit Id.
- Specified by:
getDynamicKitId
in interface GetDynamicKitConfigurationDefinitionCmd
- Returns:
- java.lang.String
getPrices
public java.lang.String[] getPrices()
- Gets the list of prices for each of the configuration components.
- Specified by:
getPrices
in interface GetDynamicKitConfigurationDefinitionCmd
- Returns:
- java.lang.String[]
getQuantities
public java.lang.String[] getQuantities()
- Gets the list of quantites of the configuration components.
- Specified by:
getQuantities
in interface GetDynamicKitConfigurationDefinitionCmd
- Returns:
- java.lang.String[]
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
reset
public void reset()
- Description copied from class:
AbstractECCommand
- This method is called after a command has been executed to reset its states variables.
After the call to reset, we should be able to execute the command again.
- Overrides:
reset
in class AbstractECCommand
setXMLDefinition
public void setXMLDefinition(java.lang.String astrXMLDefinition)
- Sets the XML Definition of the configuration. This definition is parsed to extract the configuration information.
- Specified by:
setXMLDefinition
in interface GetDynamicKitConfigurationDefinitionCmd
- Parameters:
astrXMLDefinition
- java.jang.String