public class Messaging
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
Messaging(java.lang.Integer msgty, java.lang.Integer store)
Deprecated.
This method is replaced by Messaging(String, Integer). It should be used so the message type identifier does not need to be hardcoded by the application.
|
Messaging(java.lang.Integer msgTypeId, java.lang.Integer store, java.lang.Integer priority)
Deprecated.
This method is replaced by Messaging(String, Integer, Integer). It should be used so the message type identifier does not need to be hardcoded by the application.
|
Messaging(java.lang.String msgTypeName, java.lang.Integer store)
Messaging constructor.
|
Messaging(java.lang.String msgTypeName, java.lang.Integer store, java.lang.Integer priority)
Messaging constructor.
|
Modifier and Type | Method and Description |
---|---|
int | addAllUsersInMemberGroup(java.lang.Long mbrgrp, CommandContext commandContext)
This method sets the internal member vector with the member group parameter.
|
void | addContentPart(byte[] part)
This method adds a content part to the message.
|
void | addContentPart(byte[] part, java.lang.String name, java.lang.String type)
This method adds a content part to the message specified by name and type.
|
void | addMember(java.lang.Long memb)
This method sets the internal member vector with the single parameter.
|
int | addMemberGroup(java.lang.Long mbrgrp)
Deprecated.
This method is replaced by #addAlUsersInMemberGroup(Long, CommandContext).
|
void | addSecureMember(java.lang.Long memb)
This method adds a non-public recipient to the internal vector.
|
void | addStore(java.lang.Integer astore_id)
Adds a store to send the message on behalf of.
|
void | clearMember()
This method removes all members from the internal recipient list.
|
void | compose(java.lang.String view, CommandContext comContext, TypedProperty inparms)
This method will interface with the JSP's for each transport and return the message content to the content field.
|
void | compose(java.lang.String view, CommandContext comContext, TypedProperty inparms, java.lang.String content_type)
Deprecated.
This method is replaced by compose(String, CommandContext, TypedProperty) and setConfigData(String, String).
|
javax.mail.internet.MimeMessage | composeMimeMessage(WCMSRecord input)
This method will compose the MIME message
|
java.lang.Integer | getArchiveFlag()
This method returns the archive flag from the transport info.
|
java.lang.String | getConfigData(java.lang.String name)
This method will return the first value found for a given key.
|
java.lang.String | getConfigData(java.lang.String name, java.lang.String language)
This method will return the first NL value found for given key.
|
byte[] | getContent(java.lang.Integer transport, java.lang.String language)
This method is used by external users to get the content of a message from a particular transport.
|
java.lang.Object | getContentObject(java.lang.Integer transport, java.lang.String language)
This method is used by external users to get the content object of a message from a particular transport.
|
java.lang.String | getContentType(java.lang.Integer transport, java.lang.String language)
This method is used by external users to get the content type of a message from a particular transport.
|
java.util.Vector | getTransports()
This method gets the transport property (java.util.Vector) value.
|
java.lang.String | getUserData(java.lang.Integer transport, java.lang.String name)
This method returns the User Data attribute of the specified transport and attribute name.
|
static Messaging | load(byte[] ser)
This public method can be used to deserialize a serialized Messaging Object
|
int | remTransport(java.lang.Integer transport)
This method removes a target transport from the messaging system.
|
int | sendImmediate()
This method will send the message immediately.
|
byte[] | sendReceiveImmediate()
This method will send the message immediately and wait for a response.
|
javax.resource.cci.Record | sendReceiveRecordImmediate()
This method will send the message immediately and wait for a response.
|
long | sendTransacted()
This method saves the message to the MSGSTORE table.
|
int | setConfigData(java.lang.String name, java.lang.String value)
This method will insert a name-value pair into the configuration data of ALL transports that have the name as a key in their hashtable.
|
int | setConfigData(java.lang.String name, java.lang.String language, java.lang.String value)
This method inserts a name-value pair into the NL configuration data of ALL transports that have the name as a key in their hashtable.
|
int | setContent(java.lang.Integer transport, java.lang.String language, byte[] content)
This method will insert the content of a message directly for a particular transport.
|
int | setContent(java.lang.Integer transport, java.lang.String language, byte[] content, java.lang.String content_type)
Deprecated.
This method is replaced by setContent(Integer, String, byte[]) and setConfigData(String, String).
|
int | setContent(java.lang.Integer transport, java.lang.String language, java.lang.Object object)
This method will insert the content object directly for a particular transport.
|
int | setContent(java.lang.Integer transport, java.lang.String language, javax.resource.cci.Record record)
This method will insert the message record directly for a particular transport.
|
int | setLowPriorityConfigData(java.lang.String name, java.lang.String value)
This method will insert a name-value pair into the configuration data of ALL transports that have the name as a key in their hashtable.
|
int | setLowPriorityConfigData(java.lang.String name, java.lang.String language, java.lang.String value)
This method inserts a name-value pair into the NL configuration data of ALL transports that have the name as a key in their hashtable.
|
void | setNotificationID(java.lang.Long notifyID)
This method sets the notification ID and replaces any default value using the data in the notification object (from the database).
|
void | setPartialSend(java.lang.Boolean newPartialSend)
This method sets the partial send flag.
|
int | setUserData(java.lang.Integer transport, java.lang.String name, java.lang.String value)
This method sets the user data for the specified transport.
|
public static final java.lang.String COPYRIGHT
public Messaging(java.lang.String msgTypeName, java.lang.Integer store) throws ECException, java.lang.NullPointerException
public Messaging(java.lang.String msgTypeName, java.lang.Integer store, java.lang.Integer priority) throws ECException, java.lang.NullPointerException
public Messaging(java.lang.Integer msgty, java.lang.Integer store) throws ECSystemException, java.lang.NullPointerException
public Messaging(java.lang.Integer msgTypeId, java.lang.Integer store, java.lang.Integer priority) throws ECSystemException, java.lang.NullPointerException
public void addContentPart(byte[] part)
public void addContentPart(byte[] part, java.lang.String name, java.lang.String type)
public void addMember(java.lang.Long memb) throws ECSystemException
public int addMemberGroup(java.lang.Long mbrgrp) throws ECSystemException
public int addAllUsersInMemberGroup(java.lang.Long mbrgrp, CommandContext commandContext) throws ECSystemException
public void addSecureMember(java.lang.Long memb) throws ECSystemException
public void addStore(java.lang.Integer astore_id) throws ECSystemException
public void clearMember()
public void compose(java.lang.String view, CommandContext comContext, TypedProperty inparms) throws ECSystemException
public void compose(java.lang.String view, CommandContext comContext, TypedProperty inparms, java.lang.String content_type) throws ECSystemException
public javax.mail.internet.MimeMessage composeMimeMessage(WCMSRecord input) throws ECSystemException
public java.lang.String getConfigData(java.lang.String name) throws ECSystemException
public java.lang.String getConfigData(java.lang.String name, java.lang.String language) throws ECSystemException
public java.lang.String getContentType(java.lang.Integer transport, java.lang.String language) throws ECSystemException
public byte[] getContent(java.lang.Integer transport, java.lang.String language) throws ECSystemException
public java.lang.Object getContentObject(java.lang.Integer transport, java.lang.String language) throws ECSystemException
public java.util.Vector getTransports()
public java.lang.String getUserData(java.lang.Integer transport, java.lang.String name) throws ECSystemException
public static Messaging load(byte[] ser) throws java.io.IOException, java.lang.ClassNotFoundException
public int remTransport(java.lang.Integer transport)
public int sendImmediate() throws ECSystemException
public byte[] sendReceiveImmediate() throws ECSystemException
public javax.resource.cci.Record sendReceiveRecordImmediate() throws ECSystemException
public long sendTransacted() throws ECSystemException
public int setConfigData(java.lang.String name, java.lang.String value) throws ECSystemException
public int setConfigData(java.lang.String name, java.lang.String language, java.lang.String value) throws ECSystemException
public int setLowPriorityConfigData(java.lang.String name, java.lang.String value) throws ECSystemException
public int setLowPriorityConfigData(java.lang.String name, java.lang.String language, java.lang.String value) throws ECSystemException
public int setContent(java.lang.Integer transport, java.lang.String language, byte[] content)
public int setUserData(java.lang.Integer transport, java.lang.String name, java.lang.String value) throws ECSystemException
public int setContent(java.lang.Integer transport, java.lang.String language, java.lang.Object object)
public int setContent(java.lang.Integer transport, java.lang.String language, byte[] content, java.lang.String content_type)
public int setContent(java.lang.Integer transport, java.lang.String language, javax.resource.cci.Record record)
public java.lang.Integer getArchiveFlag()
public void setNotificationID(java.lang.Long notifyID) throws ECSystemException
public void setPartialSend(java.lang.Boolean newPartialSend)