Interface NotificationType

All Known Implementing Classes:
BaseNotificationType

public interface NotificationType
  • Method Details

    • createNotificationQueueEntry

      NotificationQueueEntry createNotificationQueueEntry(com.liferay.portal.kernel.model.User user, String body, NotificationContext notificationContext, String subject)
    • createNotificationRecipientSettings

      List<NotificationRecipientSetting> createNotificationRecipientSettings(long notificationRecipientId, Object[] recipients, com.liferay.portal.kernel.model.User user)
    • evaluateNotificationRecipientSettings

      default Map<String,String> evaluateNotificationRecipientSettings(long companyId, NotificationContext notificationContext, Map<String,Object> notificationRecipientSettings) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAllowedNotificationRecipientSettingsNames

      default Set<String> getAllowedNotificationRecipientSettingsNames()
    • getFromName

      default String getFromName(NotificationQueueEntry notificationQueueEntry)
    • getRecipientSummary

      default String getRecipientSummary(NotificationQueueEntry notificationQueueEntry)
    • getType

      String getType()
    • getTypeLanguageKey

      String getTypeLanguageKey()
    • resendNotification

      default void resendNotification(NotificationQueueEntry notificationQueueEntry) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • resendNotifications

      default void resendNotifications(int status, String type) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • sendNotification

      void sendNotification(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • sendNotification

      void sendNotification(NotificationQueueEntry notificationQueueEntry) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • toRecipients

      Object[] toRecipients(List<NotificationRecipientSetting> notificationRecipientSettings)
    • validateNotificationQueueEntry

      void validateNotificationQueueEntry(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • validateNotificationTemplate

      void validateNotificationTemplate(NotificationContext notificationContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException