Class EventCapacityReachedNotificationPlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
org.exoplatform.agenda.notification.plugin.EventCapacityReachedNotificationPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class EventCapacityReachedNotificationPlugin extends org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
"Event capacity reached": tells the creator of an event and the managers of its space that an answer filled its last seat (EXO-90320). It is sent once per mark of a reached limit: a series for the dates it carries, the stored dates holding its limit and not over included (D21); the row of a date whose limit is its own, or of a date over, for that date; an event that is not recurring, for itself. A cancelled date reports on its own and is not told: the row reported must be confirmed. On a recurring event, its links open the date that filled up, which the report names: a stored date's own date, or the first date the series carries to fill.
  • Field Summary

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

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    EventCapacityReachedNotificationPlugin(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.agenda.service.AgendaEventService eventService, org.exoplatform.agenda.service.AgendaCalendarService calendarService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    isValid(org.exoplatform.commons.api.notification.NotificationContext ctx)
     
    org.exoplatform.commons.api.notification.model.NotificationInfo
    makeNotification(org.exoplatform.commons.api.notification.NotificationContext ctx)
     

    Methods inherited from class org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin

    buildNotification, end, getKey, getOrganizationService, getPluginConfigs, isOldPlugin, setOldPlugin, start

    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
  • Constructor Details

    • EventCapacityReachedNotificationPlugin

      public EventCapacityReachedNotificationPlugin(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.agenda.service.AgendaEventService eventService, org.exoplatform.agenda.service.AgendaCalendarService calendarService)
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in class org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
    • isValid

      public boolean isValid(org.exoplatform.commons.api.notification.NotificationContext ctx)
      Specified by:
      isValid in class org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
    • makeNotification

      public org.exoplatform.commons.api.notification.model.NotificationInfo makeNotification(org.exoplatform.commons.api.notification.NotificationContext ctx)
      Specified by:
      makeNotification in class org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin