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, wait
evaluateNotificationRecipientSettings, getAllowedNotificationRecipientSettingsNames, getFromName, getRecipientSummary, resendNotification, resendNotifications
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
public NotificationQueueEntry createNotificationQueueEntry(com.liferay.portal.kernel.model.User user, java.lang.String body, NotificationContext notificationContext, java.lang.String subject)
createNotificationQueueEntry
in interface NotificationType
public java.util.List<NotificationRecipientSetting> createNotificationRecipientSettings(long notificationRecipientId, java.lang.Object[] recipients, com.liferay.portal.kernel.model.User user)
createNotificationRecipientSettings
in interface NotificationType
public java.lang.String getType()
getType
in interface NotificationType
public java.lang.String getTypeLanguageKey()
getTypeLanguageKey
in interface NotificationType
public void sendNotification(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException
sendNotification
in interface NotificationType
com.liferay.portal.kernel.exception.PortalException
public void sendNotification(NotificationQueueEntry notificationQueueEntry) throws com.liferay.portal.kernel.exception.PortalException
sendNotification
in interface NotificationType
com.liferay.portal.kernel.exception.PortalException
public java.lang.Object[] toRecipients(java.util.List<NotificationRecipientSetting> notificationRecipientSettings)
toRecipients
in interface NotificationType
public void validateNotificationQueueEntry(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException
validateNotificationQueueEntry
in interface NotificationType
com.liferay.portal.kernel.exception.PortalException
public void validateNotificationTemplate(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException
validateNotificationTemplate
in interface NotificationType
com.liferay.portal.kernel.exception.PortalException
protected 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.PortalException
protected void prepareNotificationContext(com.liferay.portal.kernel.model.User user, java.lang.String body, NotificationContext notificationContext, java.lang.Object evaluatedNotificationRecipientSettings, java.lang.String subject)