com.ibm.commerce.rfq.commands
Class CreatePAttributeValueCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.rfq.commands.CreatePAttributeValueCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CreatePAttributeValueCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class CreatePAttributeValueCmdImpl extends TaskCommandImpl implements CreatePAttributeValueCmd
Creates personalization attributes for RFQ products or RFQ response products.This is the default implementation of the CreatePAttributeValueCmd. This command uses the following AccessBeans:
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM copyright notice field.-
Fields inherited from interface com.ibm.commerce.rfq.commands.CreatePAttributeValueCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description CreatePAttributeValueCmdImpl()
Constructor for CreatePAttributeValueCmdImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Long[]
getPAttributeValueIds()
Gets the new personalization attribute value IDs.void
performExecute()
Execute the command.void
reset()
Resets the command.void
setAllowMultipleValues(boolean allowMultipleValues)
(Optional) Sets the allow multiple values flag.void
setAttrName(java.lang.String attrName)
Sets the personalization attribute name.void
setAttrValue(java.lang.String attrValue)
Sets the personalization attribute value.void
setChangeable(java.lang.Integer changeable)
Sets the changeable flag.void
setCorrelationGroup(java.lang.Long correlationGroup)
(Optional) Sets the correlation groups.void
setMandatory(java.lang.Integer mandatory)
Sets the mandatory flag.void
setOperatorId(java.lang.Integer operatorId)
(Optional) Sets the operator ID.void
setOrderItemId(java.lang.Long orderItemId)
(Optional) Sets the order item ID.void
setPAttributeId(java.lang.Long pAttributeId)
Sets the personalization attribute ID.void
setQuantityUnit(java.lang.String quantityUnit)
Sets the quantity unit.void
setRFQProductId(java.lang.Long rFQProductId)
(Optional) Sets the RFQ product ID.void
setRFQResponseProductId(java.lang.Long rfqResponseProductId)
(Optional) Sets the RFQ response product ID.void
setValueDelimiter(java.lang.String valueDelimiter)
(Optional) Sets the value delimiter.void
validateParameters()
Check mandatory parameters.-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CreatePAttributeValueCmdImpl
public CreatePAttributeValueCmdImpl()
Constructor for CreatePAttributeValueCmdImpl
-
-
Method Detail
-
performExecute
public void performExecute() throws ECException
Execute the command.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
- These exceptions are allowed to percolate.- See Also:
ECCommand#performExecute()
-
reset
public void reset()
Resets the command.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
validateParameters
public void validateParameters() throws ECException
Check mandatory parameters.- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECApplicationException
- Raised with message _ERR_BAD_MISSING_CMD_PARAMETER if quotationRequests is not specified.ECException
- See Also:
ECCommand#validateParameters()
-
setAttrName
public void setAttrName(java.lang.String attrName)
Sets the personalization attribute name.- Specified by:
setAttrName
in interfaceCreatePAttributeValueCmd
- Parameters:
attrName
- The personalization attribute name.
-
setAttrValue
public void setAttrValue(java.lang.String attrValue)
Sets the personalization attribute value.- Specified by:
setAttrValue
in interfaceCreatePAttributeValueCmd
- Parameters:
attrValue
- The personalization attribute value.
-
setQuantityUnit
public void setQuantityUnit(java.lang.String quantityUnit)
Sets the quantity unit.- Specified by:
setQuantityUnit
in interfaceCreatePAttributeValueCmd
- Parameters:
quantityUnit
- The quantity unit.
-
setOperatorId
public void setOperatorId(java.lang.Integer operatorId)
(Optional) Sets the operator ID. If it is not specified, the operator ID for the "=" operator is used.- Specified by:
setOperatorId
in interfaceCreatePAttributeValueCmd
- Parameters:
operator
- The operator ID.
-
setRFQProductId
public void setRFQProductId(java.lang.Long rFQProductId)
(Optional) Sets the RFQ product ID. If this is not specified then the RFQ response product ID will be checked.- Specified by:
setRFQProductId
in interfaceCreatePAttributeValueCmd
- Parameters:
rFQProductId
- The RFQ product ID.
-
setMandatory
public void setMandatory(java.lang.Integer mandatory)
Sets the mandatory flag.- Specified by:
setMandatory
in interfaceCreatePAttributeValueCmd
- Parameters:
mandatory
- The mandatory flag.
-
setChangeable
public void setChangeable(java.lang.Integer changeable)
Sets the changeable flag.- Specified by:
setChangeable
in interfaceCreatePAttributeValueCmd
- Parameters:
changeable
- The changeable flag.
-
setPAttributeId
public void setPAttributeId(java.lang.Long pAttributeId)
Sets the personalization attribute ID. If this is specified it takes precedence over the personalization attribute name.- Specified by:
setPAttributeId
in interfaceCreatePAttributeValueCmd
- Parameters:
pAttributeId
- The personalization attribute ID.
-
getPAttributeValueIds
public java.lang.Long[] getPAttributeValueIds()
Gets the new personalization attribute value IDs.- Specified by:
getPAttributeValueIds
in interfaceCreatePAttributeValueCmd
- Returns:
- The array of new personalization attribute value IDs.
-
setRFQResponseProductId
public void setRFQResponseProductId(java.lang.Long rfqResponseProductId)
(Optional) Sets the RFQ response product ID. If this is not specified and the RFQ product is not specified then the order item ID will be checked.- Specified by:
setRFQResponseProductId
in interfaceCreatePAttributeValueCmd
- Parameters:
rFQResponseProductId
- The RFQ response product ID.
-
setAllowMultipleValues
public void setAllowMultipleValues(boolean allowMultipleValues)
(Optional) Sets the allow multiple values flag. If not specified, the default value is true.- Specified by:
setAllowMultipleValues
in interfaceCreatePAttributeValueCmd
- Parameters:
allowMultipleValues
- The allow multiple values flag.
-
setValueDelimiter
public void setValueDelimiter(java.lang.String valueDelimiter)
(Optional) Sets the value delimiter. If not specified, the default value is ";".- Specified by:
setValueDelimiter
in interfaceCreatePAttributeValueCmd
- Parameters:
valueDelimiter
- The value delimiter.
-
setCorrelationGroup
public void setCorrelationGroup(java.lang.Long correlationGroup)
(Optional) Sets the correlation groups. If this is set, it is used as the correlation group value for the new personalization attribute value. Otherwise the personalization attribute value ID will be used.- Specified by:
setCorrelationGroup
in interfaceCreatePAttributeValueCmd
- Parameters:
correlationGroup
- The correlation group.
-
setOrderItemId
public void setOrderItemId(java.lang.Long orderItemId)
(Optional) Sets the order item ID. The RFQ product ID and RFQ response product ID are checked before the order item ID is checked.- Specified by:
setOrderItemId
in interfaceCreatePAttributeValueCmd
- Parameters:
orderItemId
- The order item ID.
-
-