Package org.exoplatform.agenda.listener
Class 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 -
Method Summary
Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.services.listener.ListenerBase
getName
-
Constructor Details
-
AgendaApplicationBadgeListener
public AgendaApplicationBadgeListener()
-
-
Method Details
-
init
@PostConstruct public void init() -
onEvent
- Throws:
Exception
-