public class NotificationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.exoplatform.commons.api.notification.model.MessageInfo |
buildMessageSubjectAndBody(org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext,
org.exoplatform.commons.api.notification.model.NotificationInfo notification,
String pushNotificationURL) |
static org.exoplatform.commons.api.notification.service.template.TemplateContext |
buildTemplateParameters(String username,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.agenda.service.AgendaEventAttendeeService agendaEventAttendeeService,
org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider,
org.exoplatform.commons.api.notification.model.NotificationInfo notification,
ZoneId timeZone) |
static org.exoplatform.commons.api.notification.service.template.TemplateContext |
buildTemplateReminderParameters(org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider,
org.exoplatform.commons.api.notification.model.NotificationInfo notification,
ZoneId timeZone) |
static String |
getDefaultSite() |
static long |
getEventId(org.exoplatform.commons.api.notification.NotificationContext ctx) |
static long |
getEventReminderId(org.exoplatform.commons.api.notification.NotificationContext ctx) |
static String |
getEventURL(org.exoplatform.agenda.model.Event event) |
static String |
getRecurrenceDetails(org.exoplatform.agenda.model.Event event) |
static String |
getResponseURL(org.exoplatform.agenda.service.AgendaEventAttendeeService agendaEventAttendeeService,
long eventId,
String username,
org.exoplatform.agenda.constant.EventAttendeeResponse response) |
static void |
setEventReminderNotificationRecipients(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.commons.api.notification.model.NotificationInfo notification,
Long receiverId) |
static void |
setNotificationRecipients(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.commons.api.notification.model.NotificationInfo notification,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
List<org.exoplatform.agenda.model.EventAttendee> eventAttendee,
org.exoplatform.agenda.model.Event event,
String typeModification) |
static void |
storeEventParameters(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.commons.api.notification.model.NotificationInfo notification,
org.exoplatform.agenda.model.Event event,
org.exoplatform.agenda.model.Calendar calendar,
String typeModification) |
static void |
storeEventParameters(org.exoplatform.commons.api.notification.model.NotificationInfo notification,
org.exoplatform.agenda.model.Event event,
org.exoplatform.agenda.model.Calendar calendar) |
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.agenda.model.Event> EVENT_AGENDA
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<List> EVENT_ATTENDEE
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> EVENT_MODIFICATION_TYPE
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.agenda.model.EventReminder> EVENT_AGENDA_REMINDER
public static final String AGENDA_EVENT_ADDED_NOTIFICATION_PLUGIN
public static final String AGENDA_EVENT_MODIFIED_NOTIFICATION_PLUGIN
public static final String AGENDA_EVENT_CANCELLED_NOTIFICATION_PLUGIN
public static final String AGENDA_REMINDER_NOTIFICATION_PLUGIN
public static final org.exoplatform.commons.api.notification.model.PluginKey EVENT_ADDED_KEY
public static final org.exoplatform.commons.api.notification.model.PluginKey EVENT_MODIFIED_KEY
public static final org.exoplatform.commons.api.notification.model.PluginKey EVENT_CANCELLED_KEY
public static final org.exoplatform.commons.api.notification.model.PluginKey EVENT_REMINDER_KEY
public static final String STORED_PARAMETER_EVENT_TITLE
public static final String STORED_PARAMETER_EVENT_DESCRIPTION
public static final String STORED_PARAMETER_EVENT_LOCATION
public static final String STORED_PARAMETER_EVENT_OWNER_ID
public static final String STORED_PARAMETER_EVENT_MODIFIER
public static final String STORED_PARAMETER_EVENT_CREATOR
public static final String STORED_PARAMETER_EVENT_URL
public static final String STORED_EVENT_MODIFICATION_TYPE
public static final String STORED_PARAMETER_MODIFIER_IDENTITY_ID
public static final String STORED_PARAMETER_EVENT_START_DATE
public static final String STORED_PARAMETER_EVENT_END_DATE
public static final String STORED_PARAMETER_EVENT_TIMEZONE_NAME
public static final String STORED_PARAMETER_EVENT_ATTENDEES
public static final String STORED_PARAMETER_EVENT_RECURRENT_DETAILS
public static final String TEMPLATE_VARIABLE_EVENT_ID
public static final String TEMPLATE_VARIABLE_EVENT_TITLE
public static final String TEMPLATE_VARIABLE_EVENT_LOCATION
public static final String TEMPLATE_VARIABLE_EVENT_DESCRIPTION
public static final String TEMPLATE_VARIABLE_EVENT_RECURRENT_DETAILS
public static final long getEventId(org.exoplatform.commons.api.notification.NotificationContext ctx)
public static final long getEventReminderId(org.exoplatform.commons.api.notification.NotificationContext ctx)
public static final void setNotificationRecipients(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.commons.api.notification.model.NotificationInfo notification,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
List<org.exoplatform.agenda.model.EventAttendee> eventAttendee,
org.exoplatform.agenda.model.Event event,
String typeModification)
public static final void setEventReminderNotificationRecipients(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.commons.api.notification.model.NotificationInfo notification,
Long receiverId)
public static final void storeEventParameters(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.commons.api.notification.model.NotificationInfo notification,
org.exoplatform.agenda.model.Event event,
org.exoplatform.agenda.model.Calendar calendar,
String typeModification)
public static final void storeEventParameters(org.exoplatform.commons.api.notification.model.NotificationInfo notification,
org.exoplatform.agenda.model.Event event,
org.exoplatform.agenda.model.Calendar calendar)
public static String getDefaultSite()
public static final org.exoplatform.commons.api.notification.service.template.TemplateContext buildTemplateParameters(String username, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.agenda.service.AgendaEventAttendeeService agendaEventAttendeeService, org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.commons.api.notification.model.NotificationInfo notification, ZoneId timeZone)
public static final org.exoplatform.commons.api.notification.service.template.TemplateContext buildTemplateReminderParameters(org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider,
org.exoplatform.commons.api.notification.model.NotificationInfo notification,
ZoneId timeZone)
public static final org.exoplatform.commons.api.notification.model.MessageInfo buildMessageSubjectAndBody(org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext,
org.exoplatform.commons.api.notification.model.NotificationInfo notification,
String pushNotificationURL)
public static String getEventURL(org.exoplatform.agenda.model.Event event)
public static String getResponseURL(org.exoplatform.agenda.service.AgendaEventAttendeeService agendaEventAttendeeService, long eventId, String username, org.exoplatform.agenda.constant.EventAttendeeResponse response)
public static String getRecurrenceDetails(org.exoplatform.agenda.model.Event event)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.