Class AgendaEventCapacityReachedListener

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<Long, ZonedDateTime>
org.exoplatform.agenda.listener.AgendaEventCapacityReachedListener
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.services.listener.ListenerBase<Long, ZonedDateTime>

public class AgendaEventCapacityReachedListener extends org.exoplatform.services.listener.Listener<Long, ZonedDateTime>
Tells the creator of an event and the managers of its space that an answer filled its last seat, with the "Event capacity reached" notification (EXO-90320). Glue only: the source is the identifier of the event row whose mark reports the pool of seats that filled up, a series for a date it carries, the data the date that filled up on a recurring event. Asynchronous, as no decision on a seat waits for a notification.
  • Field Summary

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    AgendaEventCapacityReachedListener(org.exoplatform.container.ExoContainer container)
    Builds the listener.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(org.exoplatform.services.listener.Event<Long, ZonedDateTime> event)
    Hands a pool of seats that filled up to the notification.

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.exoplatform.services.listener.ListenerBase

    getName
  • Constructor Details

    • AgendaEventCapacityReachedListener

      public AgendaEventCapacityReachedListener(org.exoplatform.container.ExoContainer container)
      Builds the listener.
      Parameters:
      container - the portal container the notification runs in
  • Method Details

    • onEvent

      public void onEvent(org.exoplatform.services.listener.Event<Long, ZonedDateTime> event) throws Exception
      Hands a pool of seats that filled up to the notification.
      Parameters:
      event - the pool filled, whose source is the identifier of the event row whose mark reports it and whose data is the date filled on a recurring event
      Throws:
      Exception - when the dispatch fails