public class AgendaEventServiceImpl extends Object implements org.exoplatform.agenda.service.AgendaEventService
| Constructor and Description |
|---|
AgendaEventServiceImpl(org.exoplatform.agenda.service.AgendaCalendarService agendaCalendarService,
org.exoplatform.agenda.service.AgendaEventAttendeeService attendeeService,
org.exoplatform.agenda.service.AgendaEventAttachmentService attachmentService,
org.exoplatform.agenda.service.AgendaEventConferenceService conferenceService,
org.exoplatform.agenda.service.AgendaEventReminderService reminderService,
org.exoplatform.agenda.service.AgendaRemoteEventService remoteEventService,
AgendaSearchConnector agendaSearchConnector,
AgendaEventStorage agendaEventStorage,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.services.listener.ListenerService listenerService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccessEvent(org.exoplatform.agenda.model.Event event,
long identityId) |
boolean |
canCreateEvent(org.exoplatform.agenda.model.Calendar calendar,
long userIdentityId) |
boolean |
canUpdateEvent(org.exoplatform.agenda.model.Event event,
long userIdentityId) |
org.exoplatform.agenda.model.Event |
createEvent(org.exoplatform.agenda.model.Event event,
List<org.exoplatform.agenda.model.EventAttendee> attendees,
List<org.exoplatform.agenda.model.EventConference> conferences,
List<org.exoplatform.agenda.model.EventAttachment> attachments,
List<org.exoplatform.agenda.model.EventReminder> reminders,
org.exoplatform.agenda.model.RemoteEvent remoteEvent,
boolean sendInvitation,
long userIdentityId) |
org.exoplatform.agenda.model.Event |
createEventExceptionalOccurrence(long eventId,
List<org.exoplatform.agenda.model.EventAttendee> attendees,
List<org.exoplatform.agenda.model.EventConference> conferences,
List<org.exoplatform.agenda.model.EventAttachment> attachments,
List<org.exoplatform.agenda.model.EventReminder> reminders,
ZonedDateTime occurrenceId) |
org.exoplatform.agenda.model.Event |
deleteEventById(long eventId,
long userIdentityId) |
org.exoplatform.agenda.model.Event |
getEventById(long eventId) |
org.exoplatform.agenda.model.Event |
getEventById(long eventId,
ZoneId timeZone,
long userIdentityId) |
org.exoplatform.agenda.model.Event |
getEventOccurrence(long parentEventId,
ZonedDateTime occurrenceId,
ZoneId timeZone,
long userIdentityId) |
List<org.exoplatform.agenda.model.Event> |
getEventOccurrencesInPeriod(org.exoplatform.agenda.model.Event recurrentEvent,
ZonedDateTime start,
ZonedDateTime end,
ZoneId timezone,
int limit) |
List<org.exoplatform.agenda.model.Event> |
getEvents(org.exoplatform.agenda.model.EventFilter eventFilter,
ZoneId userTimeZone,
long userIdentityId) |
org.exoplatform.agenda.model.Event |
getExceptionalOccurrenceEvent(long eventId,
ZonedDateTime occurrenceId) |
List<org.exoplatform.agenda.model.Event> |
getExceptionalOccurrenceEvents(long parentEventId,
ZoneId timeZone,
long userIdentityId) |
List<org.exoplatform.agenda.model.Event> |
getParentRecurrentEvents(ZonedDateTime start,
ZonedDateTime end,
ZoneId timeZone) |
org.exoplatform.agenda.model.Event |
saveEventExceptionalOccurrence(long eventId,
ZonedDateTime occurrenceId) |
List<org.exoplatform.agenda.model.EventSearchResult> |
search(long userIdentityId,
ZoneId userTimeZone,
String query,
int offset,
int limit) |
org.exoplatform.agenda.model.Event |
updateEvent(org.exoplatform.agenda.model.Event event,
List<org.exoplatform.agenda.model.EventAttendee> attendees,
List<org.exoplatform.agenda.model.EventConference> conferences,
List<org.exoplatform.agenda.model.EventAttachment> attachments,
List<org.exoplatform.agenda.model.EventReminder> reminders,
org.exoplatform.agenda.model.RemoteEvent remoteEvent,
boolean sendInvitation,
long userIdentityId) |
void |
updateEventFields(long eventId,
Map<String,List<String>> fields,
boolean updateAllOccurrences,
boolean sendInvitations,
long userIdentityId) |
public AgendaEventServiceImpl(org.exoplatform.agenda.service.AgendaCalendarService agendaCalendarService,
org.exoplatform.agenda.service.AgendaEventAttendeeService attendeeService,
org.exoplatform.agenda.service.AgendaEventAttachmentService attachmentService,
org.exoplatform.agenda.service.AgendaEventConferenceService conferenceService,
org.exoplatform.agenda.service.AgendaEventReminderService reminderService,
org.exoplatform.agenda.service.AgendaRemoteEventService remoteEventService,
AgendaSearchConnector agendaSearchConnector,
AgendaEventStorage agendaEventStorage,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.services.listener.ListenerService listenerService)
public org.exoplatform.agenda.model.Event getEventById(long eventId,
ZoneId timeZone,
long userIdentityId)
throws IllegalAccessException
getEventById in interface org.exoplatform.agenda.service.AgendaEventServiceIllegalAccessExceptionpublic org.exoplatform.agenda.model.Event getEventById(long eventId)
getEventById in interface org.exoplatform.agenda.service.AgendaEventServicepublic org.exoplatform.agenda.model.Event getEventOccurrence(long parentEventId,
ZonedDateTime occurrenceId,
ZoneId timeZone,
long userIdentityId)
throws IllegalAccessException
getEventOccurrence in interface org.exoplatform.agenda.service.AgendaEventServiceIllegalAccessExceptionpublic List<org.exoplatform.agenda.model.Event> getExceptionalOccurrenceEvents(long parentEventId, ZoneId timeZone, long userIdentityId) throws IllegalAccessException
getExceptionalOccurrenceEvents in interface org.exoplatform.agenda.service.AgendaEventServiceIllegalAccessExceptionpublic org.exoplatform.agenda.model.Event getExceptionalOccurrenceEvent(long eventId,
ZonedDateTime occurrenceId)
getExceptionalOccurrenceEvent in interface org.exoplatform.agenda.service.AgendaEventServicepublic org.exoplatform.agenda.model.Event createEvent(org.exoplatform.agenda.model.Event event,
List<org.exoplatform.agenda.model.EventAttendee> attendees,
List<org.exoplatform.agenda.model.EventConference> conferences,
List<org.exoplatform.agenda.model.EventAttachment> attachments,
List<org.exoplatform.agenda.model.EventReminder> reminders,
org.exoplatform.agenda.model.RemoteEvent remoteEvent,
boolean sendInvitation,
long userIdentityId)
throws IllegalAccessException,
org.exoplatform.agenda.exception.AgendaException
createEvent in interface org.exoplatform.agenda.service.AgendaEventServiceIllegalAccessExceptionorg.exoplatform.agenda.exception.AgendaExceptionpublic org.exoplatform.agenda.model.Event saveEventExceptionalOccurrence(long eventId,
ZonedDateTime occurrenceId)
throws org.exoplatform.agenda.exception.AgendaException
saveEventExceptionalOccurrence in interface org.exoplatform.agenda.service.AgendaEventServiceorg.exoplatform.agenda.exception.AgendaExceptionpublic org.exoplatform.agenda.model.Event createEventExceptionalOccurrence(long eventId,
List<org.exoplatform.agenda.model.EventAttendee> attendees,
List<org.exoplatform.agenda.model.EventConference> conferences,
List<org.exoplatform.agenda.model.EventAttachment> attachments,
List<org.exoplatform.agenda.model.EventReminder> reminders,
ZonedDateTime occurrenceId)
throws org.exoplatform.agenda.exception.AgendaException
createEventExceptionalOccurrence in interface org.exoplatform.agenda.service.AgendaEventServiceorg.exoplatform.agenda.exception.AgendaExceptionpublic org.exoplatform.agenda.model.Event updateEvent(org.exoplatform.agenda.model.Event event,
List<org.exoplatform.agenda.model.EventAttendee> attendees,
List<org.exoplatform.agenda.model.EventConference> conferences,
List<org.exoplatform.agenda.model.EventAttachment> attachments,
List<org.exoplatform.agenda.model.EventReminder> reminders,
org.exoplatform.agenda.model.RemoteEvent remoteEvent,
boolean sendInvitation,
long userIdentityId)
throws org.exoplatform.agenda.exception.AgendaException,
IllegalAccessException
updateEvent in interface org.exoplatform.agenda.service.AgendaEventServiceorg.exoplatform.agenda.exception.AgendaExceptionIllegalAccessExceptionpublic void updateEventFields(long eventId,
Map<String,List<String>> fields,
boolean updateAllOccurrences,
boolean sendInvitations,
long userIdentityId)
throws IllegalAccessException,
org.exoplatform.commons.exception.ObjectNotFoundException,
org.exoplatform.agenda.exception.AgendaException
updateEventFields in interface org.exoplatform.agenda.service.AgendaEventServiceIllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundExceptionorg.exoplatform.agenda.exception.AgendaExceptionpublic org.exoplatform.agenda.model.Event deleteEventById(long eventId,
long userIdentityId)
throws IllegalAccessException,
org.exoplatform.commons.exception.ObjectNotFoundException
deleteEventById in interface org.exoplatform.agenda.service.AgendaEventServiceIllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundExceptionpublic List<org.exoplatform.agenda.model.Event> getEvents(org.exoplatform.agenda.model.EventFilter eventFilter, ZoneId userTimeZone, long userIdentityId) throws IllegalAccessException
getEvents in interface org.exoplatform.agenda.service.AgendaEventServiceIllegalAccessExceptionpublic List<org.exoplatform.agenda.model.Event> getParentRecurrentEvents(ZonedDateTime start, ZonedDateTime end, ZoneId timeZone)
getParentRecurrentEvents in interface org.exoplatform.agenda.service.AgendaEventServicepublic boolean canAccessEvent(org.exoplatform.agenda.model.Event event,
long identityId)
canAccessEvent in interface org.exoplatform.agenda.service.AgendaEventServicepublic boolean canUpdateEvent(org.exoplatform.agenda.model.Event event,
long userIdentityId)
canUpdateEvent in interface org.exoplatform.agenda.service.AgendaEventServicepublic boolean canCreateEvent(org.exoplatform.agenda.model.Calendar calendar,
long userIdentityId)
canCreateEvent in interface org.exoplatform.agenda.service.AgendaEventServicepublic List<org.exoplatform.agenda.model.EventSearchResult> search(long userIdentityId, ZoneId userTimeZone, String query, int offset, int limit)
search in interface org.exoplatform.agenda.service.AgendaEventServicepublic List<org.exoplatform.agenda.model.Event> getEventOccurrencesInPeriod(org.exoplatform.agenda.model.Event recurrentEvent, ZonedDateTime start, ZonedDateTime end, ZoneId timezone, int limit)
getEventOccurrencesInPeriod in interface org.exoplatform.agenda.service.AgendaEventServiceCopyright © 2003–2021 eXo Platform SAS. All rights reserved.