Package com.day.cq.mailer
Interface MailingService
-
public interface MailingService
Service Interface to send a Mailing
A Mailing is aMessageTemplate
that is intended to be send to a List of recipients.- Since:
- 5.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description MailingStatus
getStatus(java.lang.String mailingId)
Deprecated.It's recommended to usegetStatus(String, javax.jcr.Session)
instead.MailingStatus
getStatus(java.lang.String mailingId, javax.jcr.Session session)
MailingStatus
send(MessageTemplate message, AuthorizableMailingList recipients, ResourceResolver resourceResolver)
Send aMailing
to.
-
-
-
Method Detail
-
getStatus
@Deprecated MailingStatus getStatus(java.lang.String mailingId) throws javax.jcr.RepositoryException
Deprecated.It's recommended to usegetStatus(String, javax.jcr.Session)
instead.- Parameters:
mailingId
- to access the MailingStatus- Returns:
- or
null
if the mailing has not be sent does not exist - Throws:
javax.jcr.RepositoryException
- in case of an exception accessing the Repository- See Also:
;
-
getStatus
MailingStatus getStatus(java.lang.String mailingId, javax.jcr.Session session) throws javax.jcr.RepositoryException
- Parameters:
mailingId
- to access the MailingStatussession
- to read the Node having MailingStatus- Returns:
- or
null
if the mailing has not be sent does not exist - Throws:
javax.jcr.RepositoryException
- in case of an exception accessing the Repository- See Also:
;
-
send
MailingStatus send(MessageTemplate message, AuthorizableMailingList recipients, ResourceResolver resourceResolver) throws MailingException, javax.jcr.RepositoryException
Send aMailing
to.- Parameters:
message
- to be sendrecipients
- of the messageresourceResolver
- Resource resolver- Returns:
- the mailing created for send
- Throws:
MailingException
- in case the sending could not be startedjavax.jcr.AccessDeniedException
- in case the session lacks privileges to send the Mailingjavax.jcr.RepositoryException
- in case of error accessing the RepositoryMailingException
- If an error occurs
-
-