Class AgendaApplicationBadgeListener

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

@Component @ConditionalOnClass(io.meeds.appcenter.plugin.ApplicationBadgePlugin.class) public class AgendaApplicationBadgeListener extends org.exoplatform.services.listener.Listener<Object,Object>
Refreshes the Agenda badge of every attendee concerned by an event change.

Pure glue: it holds no counting logic, it only tells App Center that a user's count is stale. This is what makes the badge real-time — a user who answers an invitation sees the counter drop without reloading the page.

  • Field Summary

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

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    onEvent(org.exoplatform.services.listener.Event<Object,Object> event)
     

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

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

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

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

    getName
  • Constructor Details

    • AgendaApplicationBadgeListener

      public AgendaApplicationBadgeListener()
  • Method Details

    • init

      @PostConstruct public void init()
    • onEvent

      public void onEvent(org.exoplatform.services.listener.Event<Object,Object> event) throws Exception
      Throws:
      Exception