com.ibm.commerce.marketingcenter.events.runtime
Class PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.marketingcenter.events.runtime.PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl
- All Implemented Interfaces:
-
ECCommand,
ECTargetableCommand,
PersistOrdersWithMemberGroupIdsForCurrentUserCmd,
TaskCommand
- public class
PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl
- extends
TaskCommandImpl
- implements
PersistOrdersWithMemberGroupIdsForCurrentUserCmd
This class implements the
PersistOrdersWithMemberGroupIdsForCurrentUserCmd
interface to
provide the task command that creates an event to persist the orders_id with
the member group id.
- See Also:
-
Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
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.
AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
-
Constant Field Values
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
AbstractECTargetableCommand
-
- Returns:
- true if it is ready; false otherwise.
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
AbstractECTargetableCommand
-
- Throws:
-
ECException
- See Also:
ECCommand#performExecute()
setOrdersId
public void setOrdersId(java.lang.Long anOrdersId)
- Setter for _ordersId.
-
- Specified by:
-
setOrdersId
in interface
PersistOrdersWithMemberGroupIdsForCurrentUserCmd
-
- Parameters:
anOrdersId
- The order id to use.