public interface AgendaEventService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccessEvent(Event event,
long identityId)
Check whether user can access event or not.
|
boolean |
canCreateEvent(Calendar calendar,
long userIdentityId)
Check whether user can create an event in selected Calendar or not.
|
boolean |
canUpdateEvent(Event event,
long userIdentityId)
Check whether user can update or delete an event or not.
|
Event |
createEvent(Event event,
List<EventAttendee> attendees,
List<EventConference> conferences,
List<EventAttachment> attachments,
List<EventReminder> reminders,
RemoteEvent remoteEvent,
boolean sendInvitation,
long userIdentityId)
Creates an event in designated calendar or in user personal calendar if
null
|
Event |
createEventExceptionalOccurrence(long eventId,
List<EventAttendee> attendees,
List<EventConference> conferences,
List<EventAttachment> attachments,
List<EventReminder> reminders,
ZonedDateTime occurrenceId)
Create a new exceptional occurrence for a parent recurrent event
|
Event |
deleteEventById(long eventId,
long userIdentityId)
Deletes an existing event
|
Event |
getEventById(long eventId)
Retrieves an event identified by its technical identifier.
|
Event |
getEventById(long eventId,
ZoneId timeZone,
long identityId)
Retrieves an event identified by its technical identifier.
|
Event |
getEventOccurrence(long parentEventId,
ZonedDateTime occurrenceId,
ZoneId userTimeZone,
long identityId)
Retrieves Event Occurrence identified by parent recurrence Event identifier
and occurrence date
|
List<Event> |
getEventOccurrencesInPeriod(Event recurrentEvent,
ZonedDateTime start,
ZonedDateTime end,
ZoneId timezone,
int limit)
Retrieves occurrences, without exceptional, of a recurrent event in a given
period of time.
|
List<Event> |
getEvents(EventFilter eventFilter,
ZoneId userTimeZone,
long userIdentityId)
Retrieves the list of events available for a designated user filtered by
criteria defined in a filter.
|
Event |
getExceptionalOccurrenceEvent(long eventId,
ZonedDateTime occurrenceId)
Retrieves an event identified by its technical identifier.
|
List<Event> |
getExceptionalOccurrenceEvents(long eventId,
ZoneId timeZone,
long userIdentityId)
Retrieves the list of exceptional occurrences of an event identified by its
technical identifier.
|
List<Event> |
getParentRecurrentEvents(ZonedDateTime start,
ZonedDateTime end,
ZoneId timeZone)
Retrieve parent recurrent events switch event filter.
|
Event |
saveEventExceptionalOccurrence(long eventId,
ZonedDateTime occurrenceId)
Creates an exceptional occurrence for a recurrent event and occurrence ID
|
List<EventSearchResult> |
search(long userIdentityId,
ZoneId userTimeZone,
String query,
int offset,
int limit)
Search the list of events available with query for the currentUser
|
Event |
updateEvent(Event event,
List<EventAttendee> attendees,
List<EventConference> conferences,
List<EventAttachment> attachments,
List<EventReminder> reminders,
RemoteEvent remoteEvent,
boolean sendInvitation,
long userIdentityId)
Updates an existing event in-place when the user is owner of parent
Calendar, else this will duplicate the event and add it into his
personal calendar |
void |
updateEventFields(long eventId,
Map<String,List<String>> fields,
boolean updateAllOccurrences,
boolean sendInvitation,
long userIdentityId)
Updates a single field for a given
Event identified by its
technical identifier. |
List<Event> getEvents(EventFilter eventFilter, ZoneId userTimeZone, long userIdentityId) throws IllegalAccessException
eventFilter - a filter used to define criteria to get list of objectsuserIdentityId - user Identity identifieruserTimeZone - User time zoneList of Event accessible to userIllegalAccessException - when user is not allowed to access eventsList<Event> getParentRecurrentEvents(ZonedDateTime start, ZonedDateTime end, ZoneId timeZone)
Event getEventById(long eventId, ZoneId timeZone, long identityId) throws IllegalAccessException
eventId - technical identifier of eventtimeZone - used timezone to convert datesidentityId - Identity technical identifierEvent or null if not foundIllegalAccessException - when user is not allowed to access eventEvent getEventById(long eventId)
eventId - technical identifier of eventEvent or null if not foundEvent getEventOccurrence(long parentEventId, ZonedDateTime occurrenceId, ZoneId userTimeZone, long identityId) throws IllegalAccessException
parentEventId - Event technical identifieroccurrenceId - Date of occurrenceuserTimeZone - used user timezoneidentityId - user Identity identifier requesting eventEvent representing occurrence of parent recurrent eventIllegalAccessException - when user is accessing not allowed eventList<Event> getExceptionalOccurrenceEvents(long eventId, ZoneId timeZone, long userIdentityId) throws IllegalAccessException
eventId - technical identifier of parent recurrent eventtimeZone - used timezone to compute eventsuserIdentityId - Events if found, else nullIllegalAccessException - when user is not allowed to access eventEvent getExceptionalOccurrenceEvent(long eventId, ZonedDateTime occurrenceId)
eventId - technical identifier of parent recurrent eventoccurrenceId - technical occurrence event identifierEvent if found, else nullEvent createEventExceptionalOccurrence(long eventId, List<EventAttendee> attendees, List<EventConference> conferences, List<EventAttachment> attachments, List<EventReminder> reminders, ZonedDateTime occurrenceId) throws AgendaException
eventId - technical identifier of parent recurrent eventattendees - List of attendeesconferences - List of conferencesattachments - List of attachmentsreminders - List of remindersoccurrenceId - event occurent identifierEventAgendaException - when the event attributes aren't validEvent saveEventExceptionalOccurrence(long eventId, ZonedDateTime occurrenceId) throws AgendaException
eventId - parent recurrent event identifieroccurrenceId - Occurrence identifierEventAgendaException - when an error occurs hile creating eventEvent createEvent(Event event, List<EventAttendee> attendees, List<EventConference> conferences, List<EventAttachment> attachments, List<EventReminder> reminders, RemoteEvent remoteEvent, boolean sendInvitation, long userIdentityId) throws IllegalAccessException, AgendaException
event - Event to createattendees - event attendees of type EventAttendeeconferences - event conferences of type EventConferenceattachments - event attachment of type EventAttachmentreminders - List of preferred user reminders of type
EventReminderremoteEvent - RemoteEvent of synchronized event by user to
remote connectorsendInvitation - whether send invitation to attendees or notuserIdentityId - user Identity identifierEvent with technichal identifierIllegalAccessException - when user is not allowed to create event on
calendarAgendaException - when the event attributes aren't validEvent updateEvent(Event event, List<EventAttendee> attendees, List<EventConference> conferences, List<EventAttachment> attachments, List<EventReminder> reminders, RemoteEvent remoteEvent, boolean sendInvitation, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException, AgendaException
Calendar, else this will duplicate the event and add it into his
personal calendarevent - Event to createattendees - event attendees of type EventAttendeeconferences - event conferences of type EventConferenceattachments - event attachment of type EventAttachmentreminders - List of preferred user reminders of type
EventReminderremoteEvent - RemoteEvent of synchronized event by user to
remote connectorsendInvitation - whether re-send invitation to attendees or notuserIdentityId - user Identity identifierEventIllegalAccessException - when user is not allowed to update eventorg.exoplatform.commons.exception.ObjectNotFoundException - when the event identified by its technical
identifier is not foundAgendaException - when the event attributes aren't validvoid updateEventFields(long eventId,
Map<String,List<String>> fields,
boolean updateAllOccurrences,
boolean sendInvitation,
long userIdentityId)
throws IllegalAccessException,
org.exoplatform.commons.exception.ObjectNotFoundException,
AgendaException
Event identified by its
technical identifier. When the event is of type 'recurrent', if parameter
updateAllOccurrences is set to true, it will update the event field for all
exceptional occurrences as well.eventId - Event technical identifier to updatefields - Event fields with field name as map key and field
value as map valueupdateAllOccurrences - whether apply modification on all exceptional
occurrences as well or notsendInvitation - whether re-send invitation to attendees or notuserIdentityId - user Identity identifierIllegalAccessException - when user is not allowed to update eventorg.exoplatform.commons.exception.ObjectNotFoundException - when the event identified by its technical
identifier is not foundAgendaException - when the event attribute isn't validEvent deleteEventById(long eventId, long userIdentityId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
eventId - Event technical identifier to deleteuserIdentityId - user Identity identifierEventIllegalAccessException - when user is not authorized to delete the
eventorg.exoplatform.commons.exception.ObjectNotFoundException - when the event identified by its technical
identifier is not foundboolean canAccessEvent(Event event, long identityId)
event - Event to check its permissionidentityId - Identity technical identifierCalendar owner
Identity or is an EventAttendee, else return false.boolean canUpdateEvent(Event event, long userIdentityId)
event - Event to check its permissionuserIdentityId - user Identity identifierCalendar owner
Identity or is an EventAttendee, else return false.boolean canCreateEvent(Calendar calendar, long userIdentityId)
List<EventSearchResult> search(long userIdentityId, ZoneId userTimeZone, String query, int offset, int limit)
userIdentityId - user Identity identifieruserTimeZone - used user timezonequery - Term to searchoffset - offsetlimit - Limit of events to retrieveList of EventSearchResultList<Event> getEventOccurrencesInPeriod(Event recurrentEvent, ZonedDateTime start, ZonedDateTime end, ZoneId timezone, int limit)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.