public class ListEmailRecipientsInMemberGroupTaskCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements ListEmailRecipientsInMemberGroupTaskCmd
ListEmailRecipientsInMemberGroupTaskCmd
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright.
|
defaultCommandClassName
Constructor and Description |
---|
ListEmailRecipientsInMemberGroupTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.List |
getEmailRecipients()
Returns a list of
EmailRecipient objects created from the customer segment. |
java.lang.String |
getQuery()
Returns the SQL query used to generate the list of members in the group.
|
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. |
void |
setMemberGroupIds(java.lang.String[] mbrGrpIds,
java.lang.String anyOrAll)
This method sets the additonal member group IDs of the customer segment to which to
send the the bulk email.
|
void |
setQueryOnly(boolean flag)
Defers executing the query generated for querying members of the group to the caller.
|
void |
setStoreEntityId(java.lang.Integer storeId)
Sets the store entity ID.
|
void |
setUserId(java.lang.Long userId)
Sets the user ID.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public ListEmailRecipientsInMemberGroupTaskCmdImpl()
public java.util.List getEmailRecipients()
EmailRecipient
objects created from the customer segment.getEmailRecipients
in interface ListEmailRecipientsInMemberGroupTaskCmd
getEmailRecipients
in interface EmailRecipientSupplier
EmailRecipient
objects created from the customer segment.public java.lang.String getQuery()
getQuery
in interface EmailRecipientSupplier
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECSystemException
- Thrown when MemberGroupAccessBean
cannot retreive data, or when
or ListUsersInMemberGroupCmd
cannot execute successfully.com.ibm.commerce.exception.ECException
public void setMemberGroupId(java.lang.Long memberGroupId)
EmailRecipient
objects.setMemberGroupId
in interface ListEmailRecipientsInMemberGroupTaskCmd
memberGroupId
- The member group ID.public void setMemberGroupIds(java.lang.String[] mbrGrpIds, java.lang.String anyOrAll)
memberGroupId
to this command.setMemberGroupIds
in interface ListEmailRecipientsInMemberGroupTaskCmd
mbrGrpIds
- The set of IDs of the member groups to which to send the bulk email.anyOrAll
- Should the email be sent to the customers in each of the specified groups (any), or
should the email be sent to those who are in all of the specified groups (all). Valid values are: any, all.public void setQueryOnly(boolean flag)
setQueryOnly
in interface ListEmailRecipientsInMemberGroupTaskCmd
flag
- Set to true if only the SQL query is required, false otherwise.public void setStoreEntityId(java.lang.Integer storeId)
setStoreEntityId
in interface ListEmailRecipientsInMemberGroupTaskCmd
storeId
- The store entity ID.public void setUserId(java.lang.Long userId)
setUserId
in interface ListEmailRecipientsInMemberGroupTaskCmd
userId
- The user ID.