com.ibm.commerce.order.commands
Class CheckChildOrderCmdImpl
- 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.order.commands.CheckChildOrderCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CheckChildOrderCmd, 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 CheckChildOrderCmdImpl extends TaskCommandImpl implements CheckChildOrderCmd
This command checks parameter needPayment, needRecalculate for an order.Behavior
The command does the following:
- Check parameter needPayment. If no value transferred in, return true for recurring order
- and return false for subscription order
- Check parameter needRecalculate. If no value transferred in, return true for recurring
- order and return false for subscription order
- 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.CheckChildOrderCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description CheckChildOrderCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
getPaymentFlag()
get String value 'Y' or 'N' for parameter 'needPayment' and return boolean value whether need payment or notboolean
getRecalculateFlag()
get String value 'Y' or 'N' for parameter 'needRecalculate' and return boolean value whether need recalculate order.boolean
needCalculateOrder()
Check whether the order need to be calculated.-
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, performExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
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, performExecute, 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, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPaymentFlag
public boolean getPaymentFlag()
get String value 'Y' or 'N' for parameter 'needPayment' and return boolean value whether need payment or not- Specified by:
getPaymentFlag
in interfaceCheckChildOrderCmd
- Returns:
- boolean needPayment
-
getRecalculateFlag
public boolean getRecalculateFlag()
get String value 'Y' or 'N' for parameter 'needRecalculate' and return boolean value whether need recalculate order. Hook of Fixpack- Specified by:
getRecalculateFlag
in interfaceCheckChildOrderCmd
- Returns:
- boolean needRecalculate
-
needCalculateOrder
public boolean needCalculateOrder()
Check whether the order need to be calculated. Hook of Fixpack. Return default value: true.- Specified by:
needCalculateOrder
in interfaceCheckChildOrderCmd
- Returns:
- boolean value
-
-