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 NotificationTermContributorRegistry |
notificationTermContributorRegistry |
protected com.liferay.portal.kernel.util.Portal |
portal |
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 |
|---|---|
protected 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) |
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 |
formatContent(java.lang.String settingName,
NotificationContext notificationContext,
long notificationTemplateRecipientId) |
protected java.lang.String |
formatLocalizedContent(java.util.Map<java.util.Locale,java.lang.String> contentMap,
NotificationContext notificationContext) |
protected java.lang.String |
formatLocalizedContent(java.lang.String content,
java.util.Locale locale,
java.lang.String notificationTermContributorKey,
NotificationContext notificationContext) |
java.lang.String |
getType() |
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 |
validateNotificationTemplate(NotificationContext notificationContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateNotificationRecipientSettings, getFromName, getRecipientSummary, getTypeLanguageKey, sendUnsentNotifications, toRecipientsprotected NotificationQueueEntryLocalService notificationQueueEntryLocalService
protected NotificationRecipientLocalService notificationRecipientLocalService
protected NotificationRecipientSettingLocalService notificationRecipientSettingLocalService
protected NotificationTermContributorRegistry notificationTermContributorRegistry
protected com.liferay.portal.kernel.util.Portal portal
protected java.util.Locale siteDefaultLocale
protected java.util.Locale userLocale
protected com.liferay.portal.kernel.service.UserLocalService userLocalService
public java.lang.String getType()
getType in interface NotificationTypepublic void sendNotification(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException
sendNotification 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 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)
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 formatContent(java.lang.String settingName,
NotificationContext notificationContext,
long notificationTemplateRecipientId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected 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 java.lang.String formatLocalizedContent(java.lang.String content,
java.util.Locale locale,
java.lang.String notificationTermContributorKey,
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)