public class PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements PersistOrdersWithMemberGroupIdsForCurrentUserCmd
PersistOrdersWithMemberGroupIdsForCurrentUserCmd
interface to
provide the task command that creates an event to persist the orders_id with the member group id.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, Name
Constructor and Description |
---|
PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
isReadyToCallExecute()
Rely on the parent class to check if it is ready to be executed.
|
void |
performExecute()
First, we get a list of the different member group ids to which the user belongs
by using the task command
ListMemberGroupsForCurrentUserCmd . |
void |
setOrdersId(java.lang.Long anOrdersId)
Setter for _ordersId.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl()
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void performExecute() throws com.ibm.commerce.exception.ECException
ListMemberGroupsForCurrentUserCmd
.
Second, we generate an event OrdersMgp
consisting of the order id and a member group
id for each member group id in the list.performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
ECCommand#performExecute()
public void setOrdersId(java.lang.Long anOrdersId)
setOrdersId
in interface PersistOrdersWithMemberGroupIdsForCurrentUserCmd
anOrdersId
- The order id to use.