Class AgendaEventAttendeeStorage

java.lang.Object
org.exoplatform.agenda.storage.AgendaEventAttendeeStorage

public class AgendaEventAttendeeStorage extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    AgendaEventAttendeeStorage(EventDAO eventDAO, EventAttendeeDAO eventAttendeeDAO, org.exoplatform.services.listener.ListenerService listenerService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.exoplatform.agenda.model.EventAttendeeList
    getEventAttendees(long eventId)
     
    org.exoplatform.agenda.model.EventAttendeeList
    getEventAttendees(long eventId, long identityId)
     
    org.exoplatform.agenda.model.EventAttendeeList
    getEventAttendees(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.
    void
    removeEventAttendee(long eventAttendeeId)
     
    void
    saveEventAttendee(org.exoplatform.agenda.model.EventAttendee eventAttendee, long eventId)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 identifier
      responses - the answers to read
      Returns:
      the rows, in no particular order
    • getWaitingAttendees

      public 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.
      Parameters:
      eventId - event identifier
      Returns:
      the waiting rows, in that order
    • removeEventAttendee

      public void removeEventAttendee(long eventAttendeeId)