public abstract class BaseNotificationType extends java.lang.Object implements NotificationType
| Modifier and Type | Field and Description |
|---|---|
protected NotificationQueueEntryLocalService |
notificationQueueEntryLocalService |
protected NotificationRecipientLocalService |
notificationRecipientLocalService |
protected NotificationRecipientSettingLocalService |
notificationRecipientSettingLocalService |
protected NotificationTermEvaluatorTracker |
notificationTermEvaluatorTracker |
protected com.liferay.portal.kernel.util.Portal |
portal |
protected com.liferay.portal.kernel.service.RoleLocalService |
roleLocalService |
protected java.util.Locale |
siteDefaultLocale |
protected java.util.Locale |
userLocale |
protected com.liferay.portal.kernel.service.UserLocalService |
userLocalService |
| Constructor and Description |
|---|
BaseNotificationType() |
| Modifier and Type | Method and Description |
|---|---|
NotificationQueueEntry |
createNotificationQueueEntry(com.liferay.portal.kernel.model.User user,
java.lang.String body,
NotificationContext notificationContext,
java.lang.String subject) |
protected NotificationRecipient |
createNotificationRecipient(com.liferay.portal.kernel.model.User user,
long notificationQueueEntryId) |
java.util.List<NotificationRecipientSetting> |
createNotificationRecipientSettings(long notificationRecipientId,
java.lang.Object[] recipients,
com.liferay.portal.kernel.model.User user) |
protected java.util.List<NotificationRecipientSetting> |
createNotificationRecipientSettings(com.liferay.portal.kernel.model.User user,
long notificationRecipientId,
java.util.Map<java.lang.String,java.lang.String> notificationRecipientSettingsMap) |
protected java.lang.String |
formatLocalizedContent(java.util.Map<java.util.Locale,java.lang.String> contentMap,
NotificationContext notificationContext) |
java.lang.String |
getType() |
java.lang.String |
getTypeLanguageKey() |
protected void |
prepareNotificationContext(com.liferay.portal.kernel.model.User user,
java.lang.String body,
NotificationContext notificationContext,
java.lang.Object evaluatedNotificationRecipientSettings,
java.lang.String subject) |
void |
sendNotification(NotificationContext notificationContext) |
void |
sendNotification(NotificationQueueEntry notificationQueueEntry) |
java.lang.Object[] |
toRecipients(java.util.List<NotificationRecipientSetting> notificationRecipientSettings) |
void |
validateNotificationQueueEntry(NotificationContext notificationContext) |
void |
validateNotificationTemplate(NotificationContext notificationContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluateNotificationRecipientSettings, getAllowedNotificationRecipientSettingsNames, getFromName, getRecipientSummary, resendNotification, resendNotificationsprotected NotificationQueueEntryLocalService notificationQueueEntryLocalService
protected NotificationRecipientLocalService notificationRecipientLocalService
protected NotificationRecipientSettingLocalService notificationRecipientSettingLocalService
protected NotificationTermEvaluatorTracker notificationTermEvaluatorTracker
protected com.liferay.portal.kernel.util.Portal portal
protected com.liferay.portal.kernel.service.RoleLocalService roleLocalService
protected java.util.Locale siteDefaultLocale
protected java.util.Locale userLocale
protected com.liferay.portal.kernel.service.UserLocalService userLocalService
public NotificationQueueEntry createNotificationQueueEntry(com.liferay.portal.kernel.model.User user, java.lang.String body, NotificationContext notificationContext, java.lang.String subject)
createNotificationQueueEntry in interface NotificationTypepublic java.util.List<NotificationRecipientSetting> createNotificationRecipientSettings(long notificationRecipientId, java.lang.Object[] recipients, com.liferay.portal.kernel.model.User user)
createNotificationRecipientSettings in interface NotificationTypepublic java.lang.String getType()
getType in interface NotificationTypepublic java.lang.String getTypeLanguageKey()
getTypeLanguageKey in interface NotificationTypepublic void sendNotification(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException
sendNotification in interface NotificationTypecom.liferay.portal.kernel.exception.PortalExceptionpublic void sendNotification(NotificationQueueEntry notificationQueueEntry) throws com.liferay.portal.kernel.exception.PortalException
sendNotification in interface NotificationTypecom.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.Object[] toRecipients(java.util.List<NotificationRecipientSetting> notificationRecipientSettings)
toRecipients in interface NotificationTypepublic void validateNotificationQueueEntry(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException
validateNotificationQueueEntry in interface NotificationTypecom.liferay.portal.kernel.exception.PortalExceptionpublic void validateNotificationTemplate(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException
validateNotificationTemplate in interface NotificationTypecom.liferay.portal.kernel.exception.PortalExceptionprotected NotificationRecipient createNotificationRecipient(com.liferay.portal.kernel.model.User user, long notificationQueueEntryId)
protected java.util.List<NotificationRecipientSetting> createNotificationRecipientSettings(com.liferay.portal.kernel.model.User user, long notificationRecipientId, java.util.Map<java.lang.String,java.lang.String> notificationRecipientSettingsMap)
protected java.lang.String formatLocalizedContent(java.util.Map<java.util.Locale,java.lang.String> contentMap,
NotificationContext notificationContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected void prepareNotificationContext(com.liferay.portal.kernel.model.User user,
java.lang.String body,
NotificationContext notificationContext,
java.lang.Object evaluatedNotificationRecipientSettings,
java.lang.String subject)