public interface MailMan
Modifier and Type | Method and Description |
---|---|
void |
sendEmail(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
String subject,
GraphNode graphNode,
List<javax.ws.rs.core.MediaType> acceptableMediaTypes,
String mode)
Sends the rendered
GraphNode with the specified subject to the specified
Adress to and carbon copies to the Adress |
void |
sendEmail(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
String subject,
String message)
Deprecated.
use javax.mail with the session returned by MailSessionFactory
|
void |
sendEmail(javax.mail.internet.InternetAddress from,
javax.mail.internet.InternetAddress to,
javax.mail.internet.InternetAddress[] cc,
javax.mail.internet.InternetAddress[] bcc,
String subject,
String message,
String mediaType)
Deprecated.
use javax.mail with the session returned by MailSessionFactory
|
void |
sendEmailToUser(String fromUser,
String toUser,
String subject,
GraphNode graphNode,
List<javax.ws.rs.core.MediaType> acceptableMediaTypes,
String mode)
Sends the rendered
GraphNode to the email address of the specified platform
user toUser. |
void |
sendEmailToUser(String fromUser,
String toUser,
String subject,
String message)
Sends the specified message to the email address of the specified platform
user toUser.
|
void |
sendEmailToUsers(String fromUser,
String[] toUsers,
String subject,
GraphNode graphNode,
List<javax.ws.rs.core.MediaType> acceptableMediaTypes,
String mode)
Sends the rendered
GraphNode to the email addresses of the specified platform
users toUsers. |
void |
sendEmailToUsers(String fromUser,
String[] toUsers,
String subject,
String message)
Sends the specified message to the email addresses of the specified platform
users toUsers.
|
void sendEmailToUser(String fromUser, String toUser, String subject, String message) throws javax.mail.MessagingException
fromUser
- the user, which email address will be used as sender address ("from")toUser
- the user to whose email address the message will be sent ("to")subject
- the subject of the emailmessage
- the message of the emailjavax.mail.MessagingException
void sendEmailToUser(String fromUser, String toUser, String subject, GraphNode graphNode, List<javax.ws.rs.core.MediaType> acceptableMediaTypes, String mode) throws javax.mail.MessagingException
GraphNode
to the email address of the specified platform
user toUser. As sender address the email address of the fromUser is used.
The subject of the email will be the specified subject.
An appropriate renderer for the GraphNode
is selected on the
basis of the specified mode
, acceptableMediaTypes
and the rdf-type of the graph node itself.
The acceptableMediaTypes
list represent the media
types that are acceptable for the rendered GraphNode
. The list has a
order where the most desirable media type is at the beginning of the list.
The media type of the rendered GraphNode
will be compatible to at least one
media types in the list. acceptableMediaTypes
and mode
can
be null. acceptableMediaTypes = null
is equivalent to a list containing
the media type "*\/*".fromUser
- the user, which email address will be used as sender address ("from")toUser
- the user to whose email address the message will be sent ("to")subject
- the subject of the emailmessage
- the message of the emailjavax.mail.MessagingException
void sendEmailToUsers(String fromUser, String[] toUsers, String subject, String message) throws javax.mail.MessagingException
fromUser
- the user, which email address will be used as sender address ("from")toUsers
- the users to whose email addresses the message will be sent ("to")subject
- the subject of the emailgraphNode
- will be rendered and sent as message bodyacceptableMediaTypes
- acceptable media types for the rendered outputmode
- the rendering modejavax.mail.MessagingException
void sendEmailToUsers(String fromUser, String[] toUsers, String subject, GraphNode graphNode, List<javax.ws.rs.core.MediaType> acceptableMediaTypes, String mode) throws javax.mail.MessagingException
GraphNode
to the email addresses of the specified platform
users toUsers. As sender address the email address of the fromUser is used.
The subject of the email will be the specified subject. A recipient wont
see the addresses or names of other recipients.
An appropriate renderer for the GraphNode
is selected on the
basis of the specified mode
, acceptableMediaTypes
and the rdf-type of the graph node itself.
The acceptableMediaTypes
list represent the media
types that are acceptable for the rendered GraphNode
. The list has a
order where the most desirable media type is at the beginning of the list.
The media type of the rendered GraphNode
will be compatible to at least one
media types in the list. acceptableMediaTypes
and mode
can
be null. acceptableMediaTypes = null
is equivalent to a list containing
the media type "*\/*".fromUser
- the user, which email address will be used as sender address ("from")toUser
- the user to whose email address the message will be sent ("to")subject
- the subject of the emailgraphNode
- will be rendered and sent as message bodyacceptableMediaTypes
- acceptable media types for the rendered outputmode
- the rendering modejavax.mail.MessagingException
@Deprecated void sendEmail(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress to, javax.mail.internet.InternetAddress[] cc, javax.mail.internet.InternetAddress[] bcc, String subject, String message) throws javax.mail.MessagingException
Adress
to and carbon copies to the Adresses
cc and bcc (Not visible to other recipients). Cc and bcc can be null, all
other parameter has to be specified.
from
- sender addressto
- recipient addresscc
- addresess to which copies of the message will be sent tobcc
- addreses to which copies of the message will be sent to,
but not visible to other recipients.subject
- the subject of the messagemessage
- the message to be sentjavax.mail.MessagingException
@Deprecated void sendEmail(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress to, javax.mail.internet.InternetAddress[] cc, javax.mail.internet.InternetAddress[] bcc, String subject, String message, String mediaType) throws javax.mail.MessagingException
Adress
to and carbon copies to the Adresses
cc and bcc (Not visible to other recipients). Cc and bcc can be null, all
other parameter has to be specified.
from
- sender addressto
- recipient addresscc
- addresess to which copies of the message will be sent tobcc
- addreses to which copies of the message will be sent to,
but not visible to other recipients.subject
- the subject of the messagemessage
- the message to be sentjavax.mail.MessagingException
void sendEmail(javax.mail.internet.InternetAddress from, javax.mail.internet.InternetAddress to, javax.mail.internet.InternetAddress[] cc, javax.mail.internet.InternetAddress[] bcc, String subject, GraphNode graphNode, List<javax.ws.rs.core.MediaType> acceptableMediaTypes, String mode) throws javax.mail.MessagingException
GraphNode
with the specified subject to the specified
Adress
to and carbon copies to the Adresses
cc and bcc (Not visible to other recipients). Cc and bcc can be null.
The acceptableMediaTypes
list represent the media
types that are acceptable for the rendered GraphNode
. The list has a
order where the most desirable media type is at the beginning of the list.
The media type of the rendered GraphNode
will be compatible to at least one
media types in the list. acceptableMediaTypes
and mode
can
be null. acceptableMediaTypes = null
is equivalent to a list containing
the media type "*\/*".
from
- sender addressto
- recipient addresscc
- addresess to which copies of the message will be sent tobcc
- addreses to which copies of the message will be sent to,
but not visible to other recipients.subject
- the subject of the messagegraphNode
- will be rendered and sent as message bodyacceptableMediaTypes
- acceptable media types for the rendered outputmode
- the rendering modejavax.mail.MessagingException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.