com.day.cq.wcm.newsletter
Interface NewsletterService

All Known Implementing Classes:
NewsletterServiceImpl

public interface NewsletterService

The newsletter service can be used to send newsletters or to retrieve information about the subscribers.


Method Summary
 long getSubscriberCount(String path)
          Return the number of subscribers.
 String getSubscriptionPath(org.apache.sling.api.SlingHttpServletRequest request)
          Return the subscription path.
 String sendNewsletter(String path, String subject, String contentUrl)
          Send the newsletter for the given content
 

Method Detail

sendNewsletter

String sendNewsletter(String path,
                      String subject,
                      String contentUrl)
                      throws RepositoryException
Send the newsletter for the given content

Parameters:
path - The content path
subject - The subject for the newsletter
contentUrl - Used by the mailer to retrieve the content
Returns:
an info message like "12 subscribers, sending newsletter"
Throws:
RepositoryException

getSubscriberCount

long getSubscriberCount(String path)
                        throws RepositoryException
Return the number of subscribers.

Parameters:
path - The content path
Returns:
The number of subscribers.
Throws:
RepositoryException

getSubscriptionPath

String getSubscriptionPath(org.apache.sling.api.SlingHttpServletRequest request)
Return the subscription path.

Parameters:
request - The current request.
Returns:
The path or null


Copyright © 2008 Day Management AG. All Rights Reserved.