com.ibm.commerce.orderitems.commands
Class DynamicKitConfigurationAddCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.orderitems.commands.DynamicKitConfigurationAddCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, DynamicKitConfigurationAddCmd, ECCommand, ECTargetableCommand, Protectable
- public class DynamicKitConfigurationAddCmdImpl
- extends ControllerCommandImpl
- implements DynamicKitConfigurationAddCmd
This command can be used by an external Product Configurator to define the components of a dynamic kit. This command assumes that each configuration of a kit has a unique configuration id. The kit definition can be passed in via the individual class set methods, or by setting the entire XML definition of the dynamic kit. If both the class setters and the XML definiton are used, the values defined in the XML document take precedence. This command calls the following TaskCommands:
This command uses the following AccessBeans:
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
Method Summary |
void |
performExecute()
The main entry point of the command. |
void |
reset()
Reset the instance variables. |
void |
setCatalogEntryId(java.lang.String astrCatalogEntryId)
Sets the Catalog Entry Id. |
void |
setConfigurationComponents(java.lang.String[] astrarComponents)
Sets the list of configuration components. |
void |
setConfigurationId(java.lang.String astrConfigurationId)
Sets the configurationId. |
void |
setCurrency(java.lang.String astrCurrency)
(Optional) Sets the currency of the Prices for the configuration components. |
void |
setMemberId(java.lang.String[] astrarMemberId)
(Optional) Sets the list of member id for each of the configuration components. |
void |
setPartNumber(java.lang.String[] astrarPartNumber)
(Optional) Sets the list of part number for each of the configuration components. |
void |
setPrices(java.lang.String[] astrarPrices)
(Optional) Sets the list of prices for each of the configuration components. |
void |
setQuantities(java.lang.String[] astrarQuantities)
Sets the list of quantites of the configuration components. |
void |
setRequestProperties(TypedProperty reqParms)
Set the request properties. |
void |
setXMLDefinition(java.lang.String astrXMLDefinition)
Sets the XML Definition of the configuration. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
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, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, 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.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- The internal copyright field.
- See Also:
- Constant Field Values
DynamicKitConfigurationAddCmdImpl
public DynamicKitConfigurationAddCmdImpl()
performExecute
public void performExecute()
throws ECException
- The main entry point of the command.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException.
- ECException
reset
public void reset()
- Reset the instance variables.
-
- Overrides:
- reset in class AbstractECTargetableCommand
setCatalogEntryId
public void setCatalogEntryId(java.lang.String astrCatalogEntryId)
- Sets the Catalog Entry Id. This is the Id of the DynamicKit.
-
- Specified by:
- setCatalogEntryId in interface DynamicKitConfigurationAddCmd
-
- Parameters:
- astrCatalogEntryId - java.lang.String
setConfigurationComponents
public void setConfigurationComponents(java.lang.String[] astrarComponents)
- Sets the list of configuration components.
-
- Specified by:
- setConfigurationComponents in interface DynamicKitConfigurationAddCmd
-
- Parameters:
- astrarComponents - java.lang.String[]
setConfigurationId
public void setConfigurationId(java.lang.String astrConfigurationId)
- Sets the configurationId. This id is assumed to be unique for each new configuration.
-
- Specified by:
- setConfigurationId in interface DynamicKitConfigurationAddCmd
-
- Parameters:
- astrConfigurationId - java.lang.String
setCurrency
public void setCurrency(java.lang.String astrCurrency)
- (Optional) Sets the currency of the Prices for the configuration components.
-
- Specified by:
- setCurrency in interface DynamicKitConfigurationAddCmd
-
- Parameters:
- astrCurrency - java.jang.String
setMemberId
public void setMemberId(java.lang.String[] astrarMemberId)
- (Optional) Sets the list of member id for each of the configuration components.
-
- Specified by:
- setMemberId in interface DynamicKitConfigurationAddCmd
-
- Parameters:
- astrarMemberId - java.lang.String[]
setPartNumber
public void setPartNumber(java.lang.String[] astrarPartNumber)
- (Optional) Sets the list of part number for each of the configuration components.
-
- Specified by:
- setPartNumber in interface DynamicKitConfigurationAddCmd
-
- Parameters:
- astrarPartNumber - java.lang.String[]
setPrices
public void setPrices(java.lang.String[] astrarPrices)
- (Optional) Sets the list of prices for each of the configuration components.
-
- Specified by:
- setPrices in interface DynamicKitConfigurationAddCmd
-
- Parameters:
- astrarPrices - java.lang.String[]
setQuantities
public void setQuantities(java.lang.String[] astrarQuantities)
- Sets the list of quantites of the configuration components.
-
- Specified by:
- setQuantities in interface DynamicKitConfigurationAddCmd
-
- Parameters:
- astrarQuantities - java.lang.String[]
setRequestProperties
public void setRequestProperties(TypedProperty reqParms)
throws ECException
- Set the request properties.
-
- Specified by:
- setRequestProperties in interface ControllerCommand
- Overrides:
- setRequestProperties in class ControllerCommandImpl
-
- Parameters:
- reqParms - request properties.
- Throws:
- ECException.
- ECException
setXMLDefinition
public void setXMLDefinition(java.lang.String astrXMLDefinition)
- Sets the XML Definition of the configuration. If this parameter is set, the values in the XML definition override any other parameters that have been set and that overlap with this definition.
-
- Specified by:
- setXMLDefinition in interface DynamicKitConfigurationAddCmd
-
- Parameters:
- astrXMLDefinition - java.jang.String
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.