|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IChannel
A channel is the abstraction of an transport mechanism for sending messages
to recipients.
A message can be a simple String or an internet
MimeMessage . A recipient can be something like an user or a
distribution list.
ChannelFactory,
IRecipient,
MimeMessage| Method Summary | |
|---|---|
String |
getDescription()
Get the channel's displayable name. |
String |
getDescription(Locale locale)
Get the channel's displayable name for a specific locale. |
MimeMessage |
getEmptyMessage()
Get an empty internet mime message. |
String |
getID()
Get the channel's unique system id. |
String |
getRecipientAddress(IRecipient recipient)
Get the given recipient's channel address in the channel's specific format. |
String |
getType()
Get the channel's type. |
void |
sendTo(String[] to,
String from,
MimeMessage mimemessage)
Send a mime message via this channel to the given addresses. |
void |
sendTo(String[] to,
String from,
String title,
String messagetext,
String type)
Send a message text via this channel to the given addresses. |
void |
sendTo(String[] to,
String from,
String title,
String messagetext,
String type,
String encoding)
Send a message text via this channel to the given addresses. |
void |
sendTo(String to,
String from,
MimeMessage mimemessage)
Send a mime message via this channel to the given address. |
void |
sendTo(String to,
String from,
String title,
String messagetext,
String type)
Send a message text via this channel to the given address. |
void |
sendTo(String to,
String from,
String title,
String messagetext,
String type,
String encoding)
Send a message text via this channel to the given address. |
| Method Detail |
|---|
String getType()
String with the channel's type, for example
EMAIL .ChannelFactoryString getID()
String with the channel's system id.String getDescription()
String with the channel's displayable name.String getDescription(Locale locale)
locale - a Locale defining the language to get the name
for.
String with the channel's displayable name in the
given locale.
String getRecipientAddress(IRecipient recipient)
throws WcmException
recipient - an IRecipient to get the channel's address
for.
String with the address of the given recipient in
the channel's specific format; null if the given
recipient has no address for this channel.
- WcmException if there was an error while resolving
the recipient's address for this channel.
WcmException
MimeMessage getEmptyMessage()
throws WcmException
MimeMessage (see
javax.mail.internet.MimeMessage ).
- WcmException if there was an error while creating the
mime message.
WcmException
void sendTo(String to,
String from,
String title,
String messagetext,
String type)
throws WcmException
to - a String with the address of the receiver in the
channel's specific format.from - a String with the address of the sender in the
channel's specific format.title - a String with the title for the message.messagetext - a String with the content of the message to
send.type - a String with the mimetype of message, for example
text/plain .
- WcmException if there was an error while sending the
message.
PartialSendException - if the message was sent only
parially (to some recipients).
WcmException
void sendTo(String to,
String from,
String title,
String messagetext,
String type,
String encoding)
throws WcmException
to - a String with the address of the receiver in the
channel's specific format.from - a String with the address of the sender in the
channel's specific format.title - a String with the title for the message.messagetext - a String with the content of the message to
send.type - a String with the mimetype of message, for example
text/plain .encoding - a String with the encoding for the message
- WcmException if there was an error while sending the
message.
PartialSendException - if the message was sent only
parially (to some recipients).
WcmException
void sendTo(String[] to,
String from,
String title,
String messagetext,
String type)
throws WcmException
to - an array of Strings with the addresses of the
receivers in the channel's specific format.from - a String with the address of the sender in the
channel's specific format.title - a String with the title for the message.messagetext - a String with the content of the message to
send.type - a String with the mimetype of message, for example
text/plain .
- Throws:
- WcmException if there was an error while sending the
message.
PartialSendException - if the message was sent only
parially (to some recipients).
WcmException
void sendTo(String[] to,
String from,
String title,
String messagetext,
String type,
String encoding)
throws WcmException
to - an array of Strings with the addresses of the
receivers in the channel's specific format.from - a String with the address of the sender in the
channel's specific format.title - a String with the title for the message.messagetext - a String with the content of the message to
send.type - a String with the mimetype of message, for example
text/plain .encoding - a String with the encoding for this message
- Throws:
- WcmException if there was an error while sending the
message.
PartialSendException - if the message was sent only
parially (to some recipients).
WcmException
void sendTo(String to,
String from,
MimeMessage mimemessage)
throws WcmException
to - a String with the address of the receiver in the
channel's specific format.from - a String with the address of the sender in the
channel's specific format.mimemessage - an internet MimeMessage with the content of
the message to send (see javax.mail.internet.MimeMessage ).
- WcmException if there was an error while sending the
message.
PartialSendException - if the message was sent only
parially (to some recipients).
WcmException
void sendTo(String[] to,
String from,
MimeMessage mimemessage)
throws WcmException
to - an array of String s with the addresses of the
receivers in the channel's specific format.from - a String with the address of the sender in the
channel's specific format.mimemessage - an internet MimeMessage with the content of
the message to send (see javax.mail.internet.MimeMessage ).
- WcmException if there was an error while sending the
message.
PartialSendException - if the message was sent only
parially (to some recipients).
WcmException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||