Package org.exoplatform.agenda.plugin
Class AgendaApplicationBadgePlugin
java.lang.Object
org.exoplatform.agenda.plugin.AgendaApplicationBadgePlugin
- All Implemented Interfaces:
io.meeds.appcenter.plugin.ApplicationBadgePlugin
@Component
@ConditionalOnClass(io.meeds.appcenter.plugin.ApplicationBadgePlugin.class)
public class AgendaApplicationBadgePlugin
extends Object
implements io.meeds.appcenter.plugin.ApplicationBadgePlugin
Reports how many invitations the user still has to answer, on the Agenda
application tile.
Carries no counting logic of its own: it sums
AgendaEventService.countPendingEvents(java.util.List, long) and
AgendaEventService.countEventDatePolls(java.util.List, long), exactly
as AgendaPendingInvitationBadge.vue does for the reminder already
shown inside the Agenda application — so the badge and that reminder can
never disagree. Counting only pending events would silently drop date polls,
which the functional specification requires ("event or datepoll").
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.meeds.appcenter.plugin.ApplicationBadgePlugin
getDeclaredUrls, getDeclaredUrls, getDrawerNames, isSelfCached
-
Field Details
-
BADGE_NAME
- See Also:
-
-
Constructor Details
-
AgendaApplicationBadgePlugin
public AgendaApplicationBadgePlugin()
-
-
Method Details
-
init
@PostConstruct public void init() -
getName
- Specified by:
getNamein interfaceio.meeds.appcenter.plugin.ApplicationBadgePlugin
-
getPortletNames
- Specified by:
getPortletNamesin interfaceio.meeds.appcenter.plugin.ApplicationBadgePlugin
-
countBadge
- Specified by:
countBadgein interfaceio.meeds.appcenter.plugin.ApplicationBadgePlugin
-
isEnabled
- Specified by:
isEnabledin interfaceio.meeds.appcenter.plugin.ApplicationBadgePlugin
-