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, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public java.lang.Long[] getMemberIds()
getMemberIds in interface GetRecipientsCmdpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - If the message is not sent.public void setCatalogEntryId(java.lang.Long anCatalogEntryId)
setCatalogEntryId in interface GetRecipientsCmdanCatalogEntryId - The catalog entry Id to setpublic void setContractId(java.lang.Long anContractId)
setContractId in interface GetRecipientsCmdanContractId - The contract Id to set.public void setMode(java.lang.Integer anMode)
setMode in interface GetRecipientsCmdanMode - The broadcast mode to set.
0 - broadcast to all customers.public void setOfferId(java.lang.Long anOfferId)
setOfferId in interface GetRecipientsCmdanOfferId - The offer Id to set.public void setPartNumber(java.lang.String astrPartNumber)
setPartNumber in interface GetRecipientsCmdastrPartNumber - The part number to set.public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties in interface GetRecipientsCmdrequestProperties - The request property to set.ECException - If the setting of the requestProperties fails.ECApplicationExceptionpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - If the parameter does not have any of the values
0 - broadcast to all customers.