com.ibm.commerce.emarketing.commands
Class ListEmailRecipientsInMemberGroupTaskCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.emarketing.commands.ListEmailRecipientsInMemberGroupTaskCmdImpl
- All Implemented Interfaces:
-
ECCommand,
ECTargetableCommand,
ListEmailRecipientsInMemberGroupTaskCmd,
TaskCommand
- public class ListEmailRecipientsInMemberGroupTaskCmdImpl
- extends
TaskCommandImpl
- implements
ListEmailRecipientsInMemberGroupTaskCmd
The default implementation of
ListEmailRecipientsInMemberGroupTaskCmd
.
- See Also:
-
Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
Copyright. |
Method Summary |
java.util.List |
getEmailRecipients()
Returns a list of EmailRecipient objects created from
the customer profile. |
boolean |
isReadyToCallExecute()
Checks if this command is ready to execute. |
void |
performExecute()
Runs this command. |
void |
setMemberGroupId(java.lang.Long memberGroupId)
Sets the member group ID of the customer profile from which to create
EmailRecipient objects. |
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
- Copyright.
- See Also:
-
Constant Field Values
ListEmailRecipientsInMemberGroupTaskCmdImpl
public ListEmailRecipientsInMemberGroupTaskCmdImpl()
public void performExecute()
throws ECException
- Runs this command.
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
- Throws:
-
ECSystemException
- Thrown when MemberGroupAccessBean
cannot retreive data, or when ListUsersInMemberGroupCmd
,
EmailUserReceiveAccessBean
or AddressAccessBean
cannot execute successfully.
-
ECException
setMemberGroupId
public void setMemberGroupId(java.lang.Long memberGroupId)
- Sets the member group ID of the customer profile from which to create
EmailRecipient
objects.
-
- Specified by:
-
setMemberGroupId
in interface
ListEmailRecipientsInMemberGroupTaskCmd
-
- Parameters:
memberGroupId
- the member group ID
getEmailRecipients
public java.util.List getEmailRecipients()
- Returns a list of
EmailRecipient
objects created from the
customer profile.
-
- Specified by:
-
getEmailRecipients
in interface
ListEmailRecipientsInMemberGroupTaskCmd
-
- Returns:
- the list of
EmailRecipient
objects created from the customer
profile.
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Checks if this command is ready to execute.
-
- Overrides:
-
isReadyToCallExecute
in class
AbstractECTargetableCommand
-
- Returns:
- true if the member group ID passed is not null; false
otherwise.