Package com.day.cq.mailer
Interface MailingService
-
public interface MailingServiceService Interface to send a Mailing
A Mailing is aMessageTemplatethat 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 MailingStatusgetStatus(java.lang.String mailingId)Deprecated.It's recommended to usegetStatus(String, javax.jcr.Session)instead.MailingStatusgetStatus(java.lang.String mailingId, javax.jcr.Session session)MailingStatussend(MessageTemplate message, AuthorizableMailingList recipients, ResourceResolver resourceResolver)Send aMailingto.
-
-
-
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
nullif 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
nullif 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 aMailingto.- 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
-
-