com.ibm.commerce.emarketing.commands

Class OptEmailTaskCmdImpl

  • 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.emarketing.commands.OptEmailTaskCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, OptEmailTaskCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class OptEmailTaskCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements OptEmailTaskCmd
    The default implementation of OptEmailTaskCmd.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void performExecute()
      Performs the command's operations.
      void setStoreEntityId(java.lang.Integer pStoreEntityId)
      Sets the store ID of the store from which the user wants to opt out of receiving e-mail.
      void setUserReceiveEmail(boolean pUserReceiveEmail)
      Sets if the user wishes to receive e-mail or not.
      void setUsersId(java.lang.Long pUsersId)
      Sets the user ID of the user opting opting out of receive e-mail activities.
      • 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, isReadyToCallExecute, 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

    • Constructor Detail

      • OptEmailTaskCmdImpl

        public OptEmailTaskCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Performs the command's operations.
        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 - Thrown when EmailUserReceiveAccessBean cannot record the opt-out successfully.
      • setStoreEntityId

        public void setStoreEntityId(java.lang.Integer pStoreEntityId)
        Sets the store ID of the store from which the user wants to opt out of receiving e-mail.
        Specified by:
        setStoreEntityId in interface OptEmailTaskCmd
        Parameters:
        pStoreEntityId - The store ID.
        See Also:
        OptEmailTaskCmd#setStoreId(String)
      • setUsersId

        public void setUsersId(java.lang.Long pUsersId)
        Sets the user ID of the user opting opting out of receive e-mail activities.
        Specified by:
        setUsersId in interface OptEmailTaskCmd
        Parameters:
        pUsersId - The user ID.
        See Also:
        OptEmailTaskCmd#setUserId(String)