Package org.exoplatform.agenda.util
Class NotificationUtils
java.lang.Object
org.exoplatform.agenda.util.NotificationUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.exoplatform.commons.api.notification.model.PluginKeystatic final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.agenda.model.Event>static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.agenda.model.EventReminder>static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<List>static final org.exoplatform.commons.api.notification.model.PluginKeystatic final org.exoplatform.commons.api.notification.model.PluginKeystatic final org.exoplatform.commons.api.notification.model.PluginKeystatic final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>static final org.exoplatform.commons.api.notification.model.PluginKeystatic final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Long>static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<ZonedDateTime>static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Long>static final org.exoplatform.commons.api.notification.model.PluginKeystatic final org.exoplatform.commons.api.notification.model.PluginKeystatic final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.agenda.constant.EventAttendeeResponse>static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidaddIcsFile(org.exoplatform.commons.api.notification.model.NotificationInfo notification, org.exoplatform.commons.api.notification.model.MessageInfo messageInfo, ZoneId timeZone) static final org.exoplatform.commons.api.notification.model.MessageInfobuildMessageSubjectAndBody(org.exoplatform.commons.api.notification.service.template.TemplateContext templateContext, org.exoplatform.commons.api.notification.model.NotificationInfo notification, String pushNotificationURL) static final org.exoplatform.commons.api.notification.service.template.TemplateContextbuildTemplateDatePollParameters(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) static final org.exoplatform.commons.api.notification.service.template.TemplateContextbuildTemplateParameters(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 final org.exoplatform.commons.api.notification.service.template.TemplateContextbuildTemplateReminderParameters(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 final org.exoplatform.commons.api.notification.service.template.TemplateContextbuildTemplateReplyParameters(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.commons.api.notification.model.NotificationInfo notification, ZoneId timeZone, boolean isCreator) static Stringstatic final longgetEventId(org.exoplatform.commons.api.notification.NotificationContext ctx) static final longgetEventReminderId(org.exoplatform.commons.api.notification.NotificationContext ctx) static StringgetEventURL(org.exoplatform.agenda.model.Event event) static StringgetEventURL(org.exoplatform.agenda.model.Event event, ZonedDateTime occurrenceId) static StringgetRecurrenceDetails(org.exoplatform.agenda.model.Event event) static StringgetResponseURL(org.exoplatform.agenda.service.AgendaEventAttendeeService agendaEventAttendeeService, long eventId, String username, org.exoplatform.agenda.constant.EventAttendeeResponse response) static StringgetWebConferenceLink(org.exoplatform.agenda.model.Event event) static final voidsetEventReminderNotificationRecipients(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.commons.api.notification.model.NotificationInfo notification, Long... receiverIds) static final voidsetNotificationRecipients(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> eventAttendees, org.exoplatform.agenda.model.Event event, String typeModification, long modifierId) static final voidstoreEventParameters(org.exoplatform.commons.api.notification.model.NotificationInfo notification, org.exoplatform.agenda.model.Event event, org.exoplatform.agenda.model.Calendar calendar) static final voidstoreEventParameters(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.commons.api.notification.model.NotificationInfo notification, org.exoplatform.agenda.model.Event event, ZonedDateTime occurrenceId, long participantId, org.exoplatform.agenda.constant.EventAttendeeResponse response, org.exoplatform.agenda.model.Calendar calendar, org.exoplatform.agenda.service.AgendaEventAttendeeService eventAttendeeService, org.exoplatform.social.core.space.spi.SpaceService spaceService) static final voidstoreEventParameters(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)
-
Field Details
-
EVENT_AGENDA
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.agenda.model.Event> EVENT_AGENDA -
EVENT_ATTENDEE
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<List> EVENT_ATTENDEE -
EVENT_MODIFIER
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Long> EVENT_MODIFIER -
EVENT_MODIFICATION_TYPE
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> EVENT_MODIFICATION_TYPE -
EVENT_AGENDA_REMINDER
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.agenda.model.EventReminder> EVENT_AGENDA_REMINDER -
EVENT_PARTICIPANT_ID
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<Long> EVENT_PARTICIPANT_ID -
EVENT_RESPONSE
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<org.exoplatform.agenda.constant.EventAttendeeResponse> EVENT_RESPONSE -
EVENT_OCCURRENCE_ID
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<ZonedDateTime> EVENT_OCCURRENCE_ID -
AGENDA_EVENT_ADDED_NOTIFICATION_PLUGIN
- See Also:
-
AGENDA_EVENT_MODIFIED_NOTIFICATION_PLUGIN
- See Also:
-
AGENDA_EVENT_CANCELLED_NOTIFICATION_PLUGIN
- See Also:
-
AGENDA_REMINDER_NOTIFICATION_PLUGIN
- See Also:
-
AGENDA_REPLY_NOTIFICATION_PLUGIN
- See Also:
-
AGENDA_DATE_POLL_NOTIFICATION_PLUGIN
- See Also:
-
AGENDA_VOTE_NOTIFICATION_PLUGIN
- See Also:
-
EVENT_ADDED_KEY
public static final org.exoplatform.commons.api.notification.model.PluginKey EVENT_ADDED_KEY -
EVENT_MODIFIED_KEY
public static final org.exoplatform.commons.api.notification.model.PluginKey EVENT_MODIFIED_KEY -
EVENT_CANCELLED_KEY
public static final org.exoplatform.commons.api.notification.model.PluginKey EVENT_CANCELLED_KEY -
EVENT_REMINDER_KEY
public static final org.exoplatform.commons.api.notification.model.PluginKey EVENT_REMINDER_KEY -
EVENT_REPLY_KEY
public static final org.exoplatform.commons.api.notification.model.PluginKey EVENT_REPLY_KEY -
EVENT_DATE_POLL_KEY
public static final org.exoplatform.commons.api.notification.model.PluginKey EVENT_DATE_POLL_KEY -
EVENT_DATE_VOTE_KEY
public static final org.exoplatform.commons.api.notification.model.PluginKey EVENT_DATE_VOTE_KEY -
STORED_PARAMETER_EVENT_TITLE
- See Also:
-
STORED_PARAMETER_EVENT_DESCRIPTION
- See Also:
-
STORED_PARAMETER_EVENT_LOCATION
- See Also:
-
STORED_PARAMETER_EVENT_OWNER_ID
- See Also:
-
STORED_PARAMETER_EVENT_MODIFIER
- See Also:
-
STORED_PARAMETER_EVENT_CREATOR
- See Also:
-
STORED_PARAMETER_EVENT_URL
- See Also:
-
STORED_PARAMETER_EVENT_OCCURRENCE_ID
- See Also:
-
STORED_EVENT_MODIFICATION_TYPE
- See Also:
-
STORED_PARAMETER_MODIFIER_IDENTITY_ID
- See Also:
-
STORED_PARAMETER_EVENT_START_DATE
- See Also:
-
STORED_PARAMETER_EVENT_END_DATE
- See Also:
-
STORED_PARAMETER_EVENT_TIMEZONE_NAME
- See Also:
-
STORED_PARAMETER_EVENT_ATTENDEES
- See Also:
-
STORED_PARAMETER_EVENT_CONFERENCE
- See Also:
-
STORED_PARAMETER_EVENT_RECURRENT_DETAILS
- See Also:
-
STORED_PARAMETER_EVENT_PARTICIPANT_NAME
- See Also:
-
STORED_PARAMETER_EVENT_PARTICIPANT_AVATAR_URL
- See Also:
-
STORED_PARAMETER_EVENT_RESPONSE
- See Also:
-
STORED_PARAMETER_EVENT_STATUS
- See Also:
-
TEMPLATE_VARIABLE_EVENT_ID
- See Also:
-
TEMPLATE_VARIABLE_EVENT_TITLE
- See Also:
-
TEMPLATE_VARIABLE_EVENT_LOCATION
- See Also:
-
TEMPLATE_VARIABLE_EVENT_DESCRIPTION
- See Also:
-
TEMPLATE_VARIABLE_EVENT_RECURRENT_DETAILS
- See Also:
-
-
Method Details
-
getEventId
public static final long getEventId(org.exoplatform.commons.api.notification.NotificationContext ctx) -
getEventReminderId
public static final long getEventReminderId(org.exoplatform.commons.api.notification.NotificationContext ctx) -
setNotificationRecipients
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> eventAttendees, org.exoplatform.agenda.model.Event event, String typeModification, long modifierId) -
setEventReminderNotificationRecipients
public static final void setEventReminderNotificationRecipients(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.commons.api.notification.model.NotificationInfo notification, Long... receiverIds) -
storeEventParameters
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) -
storeEventParameters
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) -
storeEventParameters
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, ZonedDateTime occurrenceId, long participantId, org.exoplatform.agenda.constant.EventAttendeeResponse response, org.exoplatform.agenda.model.Calendar calendar, org.exoplatform.agenda.service.AgendaEventAttendeeService eventAttendeeService, org.exoplatform.social.core.space.spi.SpaceService spaceService) -
getDefaultSite
-
buildTemplateParameters
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) -
buildTemplateReminderParameters
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) -
buildTemplateReplyParameters
public static final org.exoplatform.commons.api.notification.service.template.TemplateContext buildTemplateReplyParameters(org.exoplatform.commons.api.notification.channel.template.TemplateProvider templateProvider, org.exoplatform.commons.api.notification.model.NotificationInfo notification, ZoneId timeZone, boolean isCreator) -
buildTemplateDatePollParameters
public static final org.exoplatform.commons.api.notification.service.template.TemplateContext buildTemplateDatePollParameters(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) -
buildMessageSubjectAndBody
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) -
getEventURL
public static String getEventURL(org.exoplatform.agenda.model.Event event, ZonedDateTime occurrenceId) -
getEventURL
-
getResponseURL
-
getRecurrenceDetails
-
getWebConferenceLink
-
addIcsFile
public static final void addIcsFile(org.exoplatform.commons.api.notification.model.NotificationInfo notification, org.exoplatform.commons.api.notification.model.MessageInfo messageInfo, ZoneId timeZone)
-