com.ibm.commerce.emarketing.commands
Class OptEmailTaskCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.emarketing.commands.OptEmailTaskCmdImpl
- All Implemented Interfaces:
- ECCommand, ECTargetableCommand, OptEmailTaskCmd, TaskCommand
- public class OptEmailTaskCmdImpl
- extends TaskCommandImpl
- implements OptEmailTaskCmd
The default implementation of OptEmailTaskCmd.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright. |
Method Summary |
void |
performExecute()
Performs the command's operations. |
void |
setStoreEntityId(java.lang.Integer storeEntityId)
Sets the store ID of the store from which the user wants to opt out of receiving e-mail. |
void |
setUserReceiveEmail(boolean userReceiveEmail)
Sets if the user wishes to receive e-mail or not. |
void |
setUsersId(java.lang.Long usersId)
Sets the user ID of the user opting opting out of receive e-mail activities. |
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, isReadyToCallExecute, 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
- Copyright.
- See Also:
- Constant Field Values
OptEmailTaskCmdImpl
public OptEmailTaskCmdImpl()
setUsersId
public void setUsersId(java.lang.Long usersId)
- Sets the user ID of the user opting opting out of receive e-mail activities.
-
- Specified by:
- setUsersId in interface OptEmailTaskCmd
-
- Parameters:
- usersId - the user ID.
- See Also:
- OptEmailTaskCmd#setUserId(String)
setStoreEntityId
public void setStoreEntityId(java.lang.Integer storeEntityId)
- 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:
- storeEntityId - the store ID.
- See Also:
- OptEmailTaskCmd#setStoreId(String)
setUserReceiveEmail
public void setUserReceiveEmail(boolean userReceiveEmail)
- Sets if the user wishes to receive e-mail or not.
-
- Specified by:
- setUserReceiveEmail in interface OptEmailTaskCmd
-
- Parameters:
- userReceiveEmail - true if the user wants to receive e-mail; false otherwise.
- See Also:
- OptEmailTaskCmd.setUserReceiveEmail(boolean)
performExecute
public void performExecute()
throws ECException
- Performs the command's operations.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException - Thrown when EmailUserReceiveAccessBean cannot record the opt-out successfully.
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.