com.ibm.commerce.order.commands
Class ServiceProviderChildOrderCreateCmdImpl
- 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.ControllerCommandImpl
-
- com.ibm.commerce.order.commands.ServiceProviderChildOrderCreateCmdImpl
-
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ChildOrderCreateCmd, Protectable, 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 ServiceProviderChildOrderCreateCmdImpl extends ControllerCommandImpl implements ChildOrderCreateCmd
This is the implementation of theChildOrderCreateCmd
controller command.Input parameters:
Name Description orderId
the parent order ID orderItemId
the parent order item ID Output parameters:
Name Description outOrderName
the order name Behaviour:
- creates a child order of specified order or order item and process the child order.
Access beans utilized:
- 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.order.commands.ChildOrderCreateCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description ServiceProviderChildOrderCreateCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Long
getCatEntryId()
Gets the catalog entry id.CommandContext
getChildCommandContext()
get the command context for child orderOrderAccessBean
getChildOrderAccessBean()
Gets the order access bean.java.lang.Long
getChildOrderId()
Gets the child order item id.java.lang.Long
getOrderId()
Gets the order id.java.lang.Long
getOrderItemId()
Gets the order item id.java.lang.String
getOrderType()
Gets the order type.AccessVector
getResources()
This method returns anAccessVector
containing the parentOrderAccessBean
.java.math.BigDecimal
getSubscriptionAmount()
Gets the subscription amount.java.lang.Double
getSubscriptionQuantity()
Gets the subscription quantity.java.lang.String
getSubscriptionQuantityUOM()
Gets the subscription quantity unit of measure.void
performExecute()
Command to create child order.void
reset()
This method should be called after a command has been executed to reset its state variables.void
setCatEntryId(java.lang.Long newCatEntryId)
Sets the catalog entry id.void
setChildCommandContext(CommandContext childCommandContext)
Sets the command context for child ordervoid
setChildOrderABandType(java.lang.String orderId)
Sets child order access bean and child order type using order idvoid
setChildOrderAccessBean(OrderAccessBean orderAB)
Sets the order access bean.void
setChildOrderId(java.lang.Long childOrderId)
Sets the new created child order id.void
setOrderId(java.lang.Long newOrderId)
Sets the order id.void
setOrderItemId(java.lang.Long newOrderItemId)
Sets the order item id.void
setOrderType(java.lang.String iOrderType)
Sets the order type.void
setRequestProperties(TypedProperty aReqParms)
The WebController calls this method before invoking the execute method in this command to set the request properties for this command.void
setSubscriptionAmount(java.math.BigDecimal iSubscriptionAmount)
Sets the subscription amount.void
setSubscriptionQuantity(java.lang.Double iSubscriptionQuantity)
Sets the subscription quantity.void
setSubscriptionQuantityUOM(java.lang.String iSubscriptionQuantityUOM)
Sets the subscription quantity unit of measure.void
validateParameters()
This method performs server side parameter checking.-
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, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, 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.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
-
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.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ServiceProviderChildOrderCreateCmdImpl
public ServiceProviderChildOrderCreateCmdImpl()
-
-
Method Detail
-
getChildCommandContext
public CommandContext getChildCommandContext()
get the command context for child order- Returns:
- command context for child order
-
getChildOrderAccessBean
public OrderAccessBean getChildOrderAccessBean()
Gets the order access bean.- Returns:
- order id.
-
getOrderId
public java.lang.Long getOrderId()
Gets the order id.- Returns:
- order id.
-
getSubscriptionAmount
public java.math.BigDecimal getSubscriptionAmount()
Gets the subscription amount.- Returns:
- subscription amount
-
getSubscriptionQuantityUOM
public java.lang.String getSubscriptionQuantityUOM()
Gets the subscription quantity unit of measure.- Returns:
- subscription quantity UOM
-
getSubscriptionQuantity
public java.lang.Double getSubscriptionQuantity()
Gets the subscription quantity.- Returns:
- subscription quantity
-
getCatEntryId
public java.lang.Long getCatEntryId()
Gets the catalog entry id.- Returns:
- catalog entry id.
-
getOrderType
public java.lang.String getOrderType()
Gets the order type.- Returns:
- String order type.
-
getOrderItemId
public java.lang.Long getOrderItemId()
Gets the order item id.- Returns:
- order item id.
-
getChildOrderId
public java.lang.Long getChildOrderId()
Gets the child order item id.- Returns:
- order child order id.
-
performExecute
public void performExecute() throws ECException
Command to create child order. Makes a copy of a given parent order or order item, prepares and then processes it.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
-
validateParameters
public void validateParameters() throws ECException
This method performs server side parameter checking.- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECException
-
setOrderId
public void setOrderId(java.lang.Long newOrderId)
Sets the order id.- Parameters:
newOrderId
- order id.
-
setSubscriptionAmount
public void setSubscriptionAmount(java.math.BigDecimal iSubscriptionAmount)
Sets the subscription amount.- Parameters:
iSubscriptionAmount
- subscription amount.
-
setSubscriptionQuantity
public void setSubscriptionQuantity(java.lang.Double iSubscriptionQuantity)
Sets the subscription quantity.- Parameters:
iSubscriptionQuantity
- subscription quantity.
-
setSubscriptionQuantityUOM
public void setSubscriptionQuantityUOM(java.lang.String iSubscriptionQuantityUOM)
Sets the subscription quantity unit of measure.- Parameters:
iSubscriptionQuantityUOM
- subscription quantity UOM.
-
setCatEntryId
public void setCatEntryId(java.lang.Long newCatEntryId)
Sets the catalog entry id.- Parameters:
newCatEntryId
- catalog entry id.
-
setOrderType
public void setOrderType(java.lang.String iOrderType)
Sets the order type.- Parameters:
iOrderType
- order type.
-
setChildOrderId
public void setChildOrderId(java.lang.Long childOrderId)
Sets the new created child order id.- Parameters:
childOrderId
- the child order id.
-
setOrderItemId
public void setOrderItemId(java.lang.Long newOrderItemId)
Sets the order item id.- Parameters:
newOrderItemId
- order item id.
-
setChildCommandContext
public void setChildCommandContext(CommandContext childCommandContext)
Sets the command context for child order- Parameters:
childCommandContext
-
-
setChildOrderAccessBean
public void setChildOrderAccessBean(OrderAccessBean orderAB)
Sets the order access bean.- Parameters:
orderAB
-
-
setChildOrderABandType
public void setChildOrderABandType(java.lang.String orderId) throws ECException
Sets child order access bean and child order type using order id- Parameters:
orderId
-- Throws:
ECException
-
getResources
public AccessVector getResources() throws ECException
This method returns anAccessVector
containing the parentOrderAccessBean
.- Specified by:
getResources
in interfaceECCommand
- Overrides:
getResources
in classAbstractECTargetableCommand
- Returns:
- An
AccessVector
containing theOrderAccessBean
to be canceled.. - Throws:
ECException
- See Also:
ECCommand#getResources()
-
setRequestProperties
public void setRequestProperties(TypedProperty aReqParms) throws ECException
The WebController calls this method before invoking the execute method in this command to set the request properties for this command.- Specified by:
setRequestProperties
in interfaceControllerCommand
- Overrides:
setRequestProperties
in classControllerCommandImpl
- Parameters:
aReqParms
- request properties.- Throws:
ECException
-
reset
public void reset()
This method should be called after a command has been executed to reset its state variables.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
-