Class ScheduleConflictEvent

java.lang.Object
org.exoplatform.agenda.model.ScheduleConflictEvent

public class ScheduleConflictEvent extends Object
One event of a ScheduleConflict, with the two things a caller needs in order to say something useful about it and that the Event alone does not carry: what the asking user answered to it, and whether it is theirs to move.

isCreatedByUser() is the closest thing Agenda has to "I am the organiser". There is no organiser field on an event: the only person the model records is Event.getCreatorId(), and the creator is also the one AgendaEventService lets update the event unconditionally. So "yours to move" resolves through the creator, and a caller proposing a reschedule must not promise it for an event where this is false — there, the only honest proposal is to ask the organiser or to decline.

getResponse() is null when the user is not an attendee of the event at all, which happens for an event sitting on a calendar of a space they belong to. Null is "never asked", not "has not answered yet" — the latter is EventAttendeeResponse.NEEDS_ACTION. Neither is a decline: a declined event never reaches this class.

  • Constructor Details

    • ScheduleConflictEvent

      public ScheduleConflictEvent()