Package com.liferay.notification.type
Interface NotificationType
- All Known Implementing Classes:
BaseNotificationType
public interface NotificationType
-
Method Summary
Modifier and TypeMethodDescriptioncreateNotificationQueueEntry(com.liferay.portal.kernel.model.User user, String body, NotificationContext notificationContext, String subject) createNotificationRecipientSettings(long notificationRecipientId, Object[] recipients, com.liferay.portal.kernel.model.User user) evaluateNotificationRecipientSettings(long companyId, NotificationContext notificationContext, Map<String, Object> notificationRecipientSettings) default StringgetFromName(NotificationQueueEntry notificationQueueEntry) default StringgetRecipientSummary(NotificationQueueEntry notificationQueueEntry) getType()default voidresendNotification(NotificationQueueEntry notificationQueueEntry) default voidresendNotifications(int status, String type) voidsendNotification(NotificationContext notificationContext) voidsendNotification(NotificationQueueEntry notificationQueueEntry) Object[]toRecipients(List<NotificationRecipientSetting> notificationRecipientSettings) voidvalidateNotificationQueueEntry(NotificationContext notificationContext) voidvalidateNotificationTemplate(NotificationContext notificationContext)
-
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
-
getFromName
-
getRecipientSummary
-
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
-
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
-