public interface SendMsgCmd extends TaskCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
The default class containing the implementation of the SendMsgCmd command.
|
static java.lang.String |
NAME
The name of the class.
|
static java.lang.String |
SEND_IMMEDIATE
Constant to indicate SendImmediate send mode.
|
static java.lang.String |
SEND_RECEIVE_IMMEDIATE
Constant to indicate SendReceiveImmediate send mode.
|
static java.lang.String |
SEND_TRANSACTED
Constant to indicate SendTransacted send mode.
|
Modifier and Type | Method and Description |
---|---|
void |
addContentPart(byte[] aMsgContentPart)
This method adds attachments to an e-mail message.
|
void |
addContentPart(byte[] aMsgContentPart,
java.lang.String aMsgContentPartName,
java.lang.String aMsgContentPartType)
This method adds attachments to an e-mail message.
|
void |
addMember(java.lang.Long aMember)
This method adds member information to get recipient data.
|
void |
addMemberGroup(java.lang.Long aMemberGroup)
This method adds member group information to get recipient data.
|
void |
addSecureMember(java.lang.Long aMember)
This method adds secure member ID to get recipient data.
|
void |
addStore(java.lang.Integer astore_Id)
This method adds a store.
|
void |
compose(java.lang.String aView,
CommandContext aCommandContext,
TypedProperty aParms)
This method provides message composition services through the use of JSP templates.
|
byte[] |
getContent(java.lang.Integer transport,
java.lang.String language)
This method gets the content of the message.
|
byte[] |
getResult()
This method returns the result of a send-and-receive sending operation.
|
void |
remTransport(java.lang.Integer aRemoveTransportID)
This method allows the user to have transport(s) removed.
|
void |
sendImmediate()
This method sets the sending mode to send the message immediately to the recipients.
|
void |
sendReceiveImmediate()
This method sets the sending mode to send the message and wait for a reply.
|
void |
sendTransacted()
This method sets the sending mode such that it sends the message in transacted mode.
|
void |
setConfigData(java.lang.String aKey,
java.lang.String aValue)
This method allows the user to configure the parameters of transport services used for the message.
|
void |
setConfigNLData(java.lang.String aKey,
java.lang.String aLanguage,
java.lang.String aValue)
This method allows the user to configure the national language specific parameters of transport services used for the message.
|
void |
setContent(java.lang.Integer aTransportID,
java.lang.String aLanguageID,
byte[] aMsgContent)
This method allows a user to set the content of a message directly using byte[] format.
|
void |
setContent(java.lang.Integer aTransportID,
java.lang.String aLanguageID,
java.lang.String aMsgContent)
This method allows a user to set the content of a message directly using String format.
|
void |
setMsgType(java.lang.Integer aMsgType)
Deprecated.
use setMsgType(String) instead.
|
void |
setMsgType(java.lang.String aMsgType)
This method sets the message type required to initialize the messaging system.
|
void |
setPartialSend(java.lang.Boolean aPartialSend)
This method allows partial sending operation when using e-mail as the transport.
|
void |
setPriority(java.lang.Integer aPriority)
This method sets the priority which can be used when initializing the messaging system.
|
void |
setStoreID(java.lang.Integer aStoreID)
This method sets the store ID required to initialize the messaging system.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
static final java.lang.String SEND_IMMEDIATE
static final java.lang.String SEND_RECEIVE_IMMEDIATE
static final java.lang.String SEND_TRANSACTED
void addContentPart(byte[] aMsgContentPart)
aMsgContentPart
- The attachment (in byte array) to be added to the message.void addContentPart(byte[] aMsgContentPart, java.lang.String aMsgContentPartName, java.lang.String aMsgContentPartType)
aMsgContentPart
- The attachment (in byte array) to be added to the message.aMsgContentPartName
- The name to be used for this attachment.aMsgContentPartType
- The content type of the part being sent
For instance, in Mime e-mail, this could be 'text/plain'.void addMember(java.lang.Long aMember)
aMember
- The member ID of a recipient.void addMemberGroup(java.lang.Long aMemberGroup)
aMemberGroup
- The member group ID.void addSecureMember(java.lang.Long aMember)
aMember
- The secure member ID.void addStore(java.lang.Integer astore_Id)
astore_Id
- The store ID.void compose(java.lang.String aView, CommandContext aCommandContext, TypedProperty aParms)
aView
- The view name used for composing the message. It can be found in VIEWREG table.aCommandContext
- The context of this command execution.aParms
- The parameter list used to generate the message.byte[] getContent(java.lang.Integer transport, java.lang.String language) throws ECSystemException
transport
- The transport ID.language
- The encoding scheme of the language preference.ECSystemException
byte[] getResult()
void remTransport(java.lang.Integer aRemoveTransportID)
aRemoveTransportID
- The unwanted transport ID.void sendImmediate()
void sendReceiveImmediate()
void sendTransacted()
void setConfigData(java.lang.String aKey, java.lang.String aValue)
aKey
- The name of the parameter.aValue
- The value of the parameter.void setConfigNLData(java.lang.String aKey, java.lang.String aLanguage, java.lang.String aValue)
aKey
- The name of the parameter.aLanguage
- The language ID.aValue
- The value of the parameter.void setContent(java.lang.Integer aTransportID, java.lang.String aLanguageID, byte[] aMsgContent)
aTransportID
- The transport used in this command.aLauguageID
- The encoding scheme of language perference of the message content.aMsgContent
- The message content in byte array format.void setContent(java.lang.Integer aTransportID, java.lang.String aLanguageID, java.lang.String aMsgContent) throws ECSystemException
aTransportID
- The transport used in this command.aLauguageID
- The encoding scheme of language perference of the message content.aMsgContent
- The message content in String format.ECSystemException
void setMsgType(java.lang.Integer aMsgType)
aMsgType
- The message type identifier used for this command.void setMsgType(java.lang.String aMsgType)
aMsgType
- The message type name used for this command.void setPartialSend(java.lang.Boolean aPartialSend)
aPartialSend
- true if the command should still send the message to the rest
of recipients; false otherwise.void setPriority(java.lang.Integer aPriority)
aPriority
- The priority used to send the message.void setStoreID(java.lang.Integer aStoreID)
aStoreID
- The store ID used by the command.