public class GetRecipientsCmdImpl extends TaskCommandImpl implements GetRecipientsCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
ALL_CUSTOMERS, ALL_USERS, CUSTOMERS, defaultCommandClassName, NAME
Constructor and Description |
---|
GetRecipientsCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long[] |
getMemberIds()
Gets the message recipients.
|
void |
performExecute()
Constructs a hashtable of memberIds for the broadcast message to be sent to
based on the broadcast mode.
|
void |
setCatalogEntryId(java.lang.Long anCatalogEntryId)
Sets The catalog entry (for targeted broadcast).
|
void |
setContractId(java.lang.Long anContractId)
Sets The contract (for targeted broadcast).
|
void |
setMode(java.lang.Integer anMode)
Sets The broadcast mode.
|
void |
setOfferId(java.lang.Long anOfferId)
Sets The offer (for targeted broadcast).
|
void |
setPartNumber(java.lang.String astrPartNumber)
Sets The part number (for targeted broadcast).
|
void |
setRequestProperties(TypedProperty aRequestProperties)
Sets The requestProperties object of BroadcastMessage.
|
void |
validateParameters()
Validates the broadcast mode parameter
|
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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public java.lang.Long[] getMemberIds()
getMemberIds
in interface GetRecipientsCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If the message is not sent.public void setCatalogEntryId(java.lang.Long anCatalogEntryId)
setCatalogEntryId
in interface GetRecipientsCmd
anCatalogEntryId
- The catalog entry Id to setpublic void setContractId(java.lang.Long anContractId)
setContractId
in interface GetRecipientsCmd
anContractId
- The contract Id to set.public void setMode(java.lang.Integer anMode)
setMode
in interface GetRecipientsCmd
anMode
- The broadcast mode to set.
0 - broadcast to all customers.public void setOfferId(java.lang.Long anOfferId)
setOfferId
in interface GetRecipientsCmd
anOfferId
- The offer Id to set.public void setPartNumber(java.lang.String astrPartNumber)
setPartNumber
in interface GetRecipientsCmd
astrPartNumber
- The part number to set.public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties
in interface GetRecipientsCmd
requestProperties
- The request property to set.ECException
- If the setting of the requestProperties fails.ECApplicationException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If the parameter does not have any of the values
0 - broadcast to all customers.