public interface MailingService
MessageTemplate
that
is intended to be send to a List of recipients.
Modifier and Type | Method and Description |
---|---|
MailingStatus |
getStatus(String mailingId) |
MailingStatus |
send(MessageTemplate message,
AuthorizableMailingList recipients,
ResourceResolver resourceResolver)
Send a
Mailing to. |
MailingStatus |
send(MessageTemplate message,
MailingList recipients,
Session session)
Deprecated.
|
MailingStatus getStatus(String mailingId) throws RepositoryException
mailingId
- to access the MailingStatusnull
if the mailing has not be sent does not existjavax.jcr.RepositoryException
- in case of an exception accessing
the RepositoryRepositoryException
;
@Deprecated MailingStatus send(MessageTemplate message, MailingList recipients, Session session) throws MailingException, RepositoryException
Mailing
to.message
- to be sendrecipients
- of the messagesession
- to use for sending the mailingMailingException
- in case the sending could not be startedjavax.jcr.AccessDeniedException
- in case the session lacks privileges
to send the MailingRepositoryException
- in case of error accessing the Repository
Deprecated because of MailingList
which depends on Authorizable
, use #send(MessageTemplate, AuthorizableMailingList, javax.jcr.Session, org.apache.sling.api.resource.ResourceResolver)
MailingStatus send(MessageTemplate message, AuthorizableMailingList recipients, ResourceResolver resourceResolver) throws MailingException, RepositoryException
Mailing
to.message
- to be sendrecipients
- of the messageMailingException
- in case the sending could not be startedjavax.jcr.AccessDeniedException
- in case the session lacks privileges
to send the MailingRepositoryException
- in case of error accessing the Repository"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"