Class AgendaEventAttendeeStorage
java.lang.Object
org.exoplatform.agenda.storage.AgendaEventAttendeeStorage
-
Constructor Summary
ConstructorsConstructorDescriptionAgendaEventAttendeeStorage(EventDAO eventDAO, EventAttendeeDAO eventAttendeeDAO, org.exoplatform.services.listener.ListenerService listenerService) -
Method Summary
Modifier and TypeMethodDescriptionorg.exoplatform.agenda.model.EventAttendeeListgetEventAttendees(long eventId) org.exoplatform.agenda.model.EventAttendeeListgetEventAttendees(long eventId, long identityId) org.exoplatform.agenda.model.EventAttendeeListgetEventAttendees(long eventId, org.exoplatform.agenda.constant.EventAttendeeResponse... responses) List<org.exoplatform.agenda.model.EventAttendee> getSeatRows(long eventId, org.exoplatform.agenda.constant.EventAttendeeResponse... responses) Reads the rows of an event that have one of the given answers, for a seat decision: fresh models built from scalar values, never entities of the persistence context.List<org.exoplatform.agenda.model.EventAttendee> getWaitingAttendees(long eventId) Reads the waiting rows of an event in promotion order: earliest answer date first, then lowest id.voidremoveEventAttendee(long eventAttendeeId) voidsaveEventAttendee(org.exoplatform.agenda.model.EventAttendee eventAttendee, long eventId)
-
Constructor Details
-
AgendaEventAttendeeStorage
public AgendaEventAttendeeStorage(EventDAO eventDAO, EventAttendeeDAO eventAttendeeDAO, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Details
-
saveEventAttendee
public void saveEventAttendee(org.exoplatform.agenda.model.EventAttendee eventAttendee, long eventId) -
getEventAttendees
public org.exoplatform.agenda.model.EventAttendeeList getEventAttendees(long eventId) -
getEventAttendees
public org.exoplatform.agenda.model.EventAttendeeList getEventAttendees(long eventId, org.exoplatform.agenda.constant.EventAttendeeResponse... responses) -
getEventAttendees
public org.exoplatform.agenda.model.EventAttendeeList getEventAttendees(long eventId, long identityId) -
getSeatRows
public List<org.exoplatform.agenda.model.EventAttendee> getSeatRows(long eventId, org.exoplatform.agenda.constant.EventAttendeeResponse... responses) Reads the rows of an event that have one of the given answers, for a seat decision: fresh models built from scalar values, never entities of the persistence context.- Parameters:
eventId- event identifierresponses- the answers to read- Returns:
- the rows, in no particular order
-
getWaitingAttendees
Reads the waiting rows of an event in promotion order: earliest answer date first, then lowest id.- Parameters:
eventId- event identifier- Returns:
- the waiting rows, in that order
-
removeEventAttendee
public void removeEventAttendee(long eventAttendeeId)
-