public class CommonNotificationModule extends Object
| Constructor and Description |
|---|
CommonNotificationModule() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sendMailSubscription(String user,
String nodePath,
String eventType,
String comment,
Set<String> mails)
Send mail subscription message
|
static void |
sendNotification(String user,
String nodePath,
String from,
List<String> to,
String message,
boolean attachment)
Clean preview cache for this document
|
static void |
sendTwitterSubscription(String user,
String nodePath,
String eventType,
String comment,
Set<String> users)
Send twitter subscription message
|
public static void sendNotification(String user, String nodePath, String from, List<String> to, String message, boolean attachment) throws freemarker.template.TemplateException, javax.mail.MessagingException, PathNotFoundException, AccessDeniedException, RepositoryException, DatabaseException, IOException
freemarker.template.TemplateExceptionjavax.mail.MessagingExceptionPathNotFoundExceptionAccessDeniedExceptionRepositoryExceptionDatabaseExceptionIOExceptionpublic static void sendMailSubscription(String user, String nodePath, String eventType, String comment, Set<String> mails) throws freemarker.template.TemplateException, javax.mail.MessagingException, IOException
freemarker.template.TemplateExceptionjavax.mail.MessagingExceptionIOExceptionpublic static void sendTwitterSubscription(String user, String nodePath, String eventType, String comment, Set<String> users) throws freemarker.template.TemplateException, twitter4j.TwitterException, DatabaseException, org.apache.commons.httpclient.HttpException, IOException
freemarker.template.TemplateExceptiontwitter4j.TwitterExceptionDatabaseExceptionorg.apache.commons.httpclient.HttpExceptionIOExceptionCopyright © 2015. All Rights Reserved.