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, Session session)
MailingStatus
send(MessageTemplate message, AuthorizableMailingList recipients, ResourceResolver resourceResolver)
Send aMailing
to.
-
-
-
Method Detail
-
getStatus
@Deprecated MailingStatus getStatus(java.lang.String mailingId) throws 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:
RepositoryException
- in case of an exception accessing the Repository- See Also:
;
-
getStatus
MailingStatus getStatus(java.lang.String mailingId, Session session) throws 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:
RepositoryException
- in case of an exception accessing the Repository- See Also:
;
-
send
MailingStatus send(MessageTemplate message, AuthorizableMailingList recipients, ResourceResolver resourceResolver) throws MailingException, 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 startedAccessDeniedException
- in case the session lacks privileges to send the MailingRepositoryException
- in case of error accessing the RepositoryMailingException
- If an error occurs
-
-