com.ibm.commerce.marketingcenter.events.runtime

Class PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.TaskCommandImpl
            • com.ibm.commerce.marketingcenter.events.runtime.PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, PersistOrdersWithMemberGroupIdsForCurrentUserCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl
    extends com.ibm.commerce.command.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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • 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, 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
    • Constructor Detail

      • PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl

        public PersistOrdersWithMemberGroupIdsForCurrentUserCmdImpl()
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Rely on the parent class to check if it is ready to be executed.
        Overrides:
        isReadyToCallExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Returns:
        true if it is ready; false otherwise.
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.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 com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException
        See Also:
        ECCommand#performExecute()