Package com.liferay.notification.type
Class BaseNotificationType
java.lang.Object
com.liferay.notification.type.BaseNotificationType
- All Implemented Interfaces:
NotificationType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NotificationQueueEntryLocalServiceprotected NotificationRecipientLocalServiceprotected NotificationRecipientSettingLocalServiceprotected NotificationTermEvaluatorTrackerprotected com.liferay.portal.kernel.util.Portalprotected com.liferay.portal.kernel.service.RoleLocalServiceprotected Localeprotected Localeprotected com.liferay.portal.kernel.service.UserLocalService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNotificationQueueEntry(com.liferay.portal.kernel.model.User user, String body, NotificationContext notificationContext, String subject) protected NotificationRecipientcreateNotificationRecipient(com.liferay.portal.kernel.model.User user, long notificationQueueEntryId) createNotificationRecipientSettings(long notificationRecipientId, Object[] recipients, com.liferay.portal.kernel.model.User user) protected List<NotificationRecipientSetting> createNotificationRecipientSettings(com.liferay.portal.kernel.model.User user, long notificationRecipientId, Map<String, String> notificationRecipientSettingsMap) protected StringformatLocalizedContent(Map<Locale, String> contentMap, NotificationContext notificationContext) getType()protected voidprepareNotificationContext(com.liferay.portal.kernel.model.User user, String body, NotificationContext notificationContext, Object evaluatedNotificationRecipientSettings, String subject) voidsendNotification(NotificationContext notificationContext) voidsendNotification(NotificationQueueEntry notificationQueueEntry) Object[]toRecipients(List<NotificationRecipientSetting> notificationRecipientSettings) voidvalidateNotificationQueueEntry(NotificationContext notificationContext) voidvalidateNotificationTemplate(NotificationContext notificationContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.notification.type.NotificationType
evaluateNotificationRecipientSettings, getAllowedNotificationRecipientSettingsNames, getFromName, getRecipientSummary, resendNotification, resendNotifications
-
Field Details
-
notificationQueueEntryLocalService
-
notificationRecipientLocalService
-
notificationRecipientSettingLocalService
-
notificationTermEvaluatorTracker
-
portal
protected com.liferay.portal.kernel.util.Portal portal -
roleLocalService
protected com.liferay.portal.kernel.service.RoleLocalService roleLocalService -
siteDefaultLocale
-
userLocale
-
userLocalService
protected com.liferay.portal.kernel.service.UserLocalService userLocalService
-
-
Constructor Details
-
BaseNotificationType
public BaseNotificationType()
-
-
Method Details
-
createNotificationQueueEntry
public NotificationQueueEntry createNotificationQueueEntry(com.liferay.portal.kernel.model.User user, String body, NotificationContext notificationContext, String subject) - Specified by:
createNotificationQueueEntryin interfaceNotificationType
-
createNotificationRecipientSettings
public List<NotificationRecipientSetting> createNotificationRecipientSettings(long notificationRecipientId, Object[] recipients, com.liferay.portal.kernel.model.User user) - Specified by:
createNotificationRecipientSettingsin interfaceNotificationType
-
getType
- Specified by:
getTypein interfaceNotificationType
-
getTypeLanguageKey
- Specified by:
getTypeLanguageKeyin interfaceNotificationType
-
sendNotification
public void sendNotification(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
sendNotificationin interfaceNotificationType- Throws:
com.liferay.portal.kernel.exception.PortalException
-
sendNotification
public void sendNotification(NotificationQueueEntry notificationQueueEntry) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
sendNotificationin interfaceNotificationType- Throws:
com.liferay.portal.kernel.exception.PortalException
-
toRecipients
- Specified by:
toRecipientsin interfaceNotificationType
-
validateNotificationQueueEntry
public void validateNotificationQueueEntry(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
validateNotificationQueueEntryin interfaceNotificationType- Throws:
com.liferay.portal.kernel.exception.PortalException
-
validateNotificationTemplate
public void validateNotificationTemplate(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
validateNotificationTemplatein interfaceNotificationType- Throws:
com.liferay.portal.kernel.exception.PortalException
-
createNotificationRecipient
protected NotificationRecipient createNotificationRecipient(com.liferay.portal.kernel.model.User user, long notificationQueueEntryId) -
createNotificationRecipientSettings
protected List<NotificationRecipientSetting> createNotificationRecipientSettings(com.liferay.portal.kernel.model.User user, long notificationRecipientId, Map<String, String> notificationRecipientSettingsMap) -
formatLocalizedContent
protected String formatLocalizedContent(Map<Locale, String> contentMap, NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException- Throws:
com.liferay.portal.kernel.exception.PortalException
-
prepareNotificationContext
protected void prepareNotificationContext(com.liferay.portal.kernel.model.User user, String body, NotificationContext notificationContext, Object evaluatedNotificationRecipientSettings, String subject)
-