com.ibm.commerce.marketingcenter.events.runtime
Class PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.marketingcenter.events.runtime.PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl
- All Implemented Interfaces:
- ECCommand, PersistOrdersWithMemberGroupIdsForCurrentUserCmd, TaskCommand
- public class PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl
- extends TaskCommandImpl
- implements PersistOrdersWithMemberGroupIdsForCurrentUserCmd
The PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl class implements the PersistOrdersWithMemberGroupIdsForCurrentUserCmd interface to
provide the task command that creates an event to persist the orders_id with the member group id.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
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. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, 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.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl
public PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl()
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Rely on the parent class to check if it is ready to be executed.
- Overrides:
isReadyToCallExecute
in class AbstractECCommand
- Returns:
- True if it is ready ; false otherwise.
performExecute
public void performExecute()
throws ECException
- First, we get a list of the different member group ids to which the user belongs
by using the task command 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.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setOrdersId
public void setOrdersId(java.lang.Long anOrdersId)
- Setter for _ordersId.
- Specified by:
setOrdersId
in interface PersistOrdersWithMemberGroupIdsForCurrentUserCmd
- Parameters:
anOrdersId
- The order id to use.