Class BlueMindCalendarSessionService

java.lang.Object
org.exoplatform.bluemind.calendar.service.BlueMindCalendarSessionService

@Component @ConditionalOnClass({org.exoplatform.caldav.client.CalDavClient.class,org.exoplatform.caldav.plugin.CalendarShareChannel.class}) public class BlueMindCalendarSessionService extends Object
Drops the BlueMind REST sessions the calendar keeps for an account when eXo itself changes what that account is (EXO-90397): the translation from the social identity the calendar host knows a user by to the eXo login the sessions are kept under.

The host raises those events — a connection, a reconnection with new credentials, a disconnection, a registration written or removed — through its server flavours (CalendarServerFlavour#forgetSession, #forgetAllSessions); the BlueMind flavour of this add-on hands them here. A @Component: nothing outside this add-on calls it, so the bridge has nothing to export.

  • Constructor Summary

    Constructors
    Constructor
    Description
    BlueMindCalendarSessionService(BlueMindCalendarSessions blueMindCalendarSessions, org.exoplatform.social.core.manager.IdentityManager identityManager)
    The service over the calendar's sessions and the identity registry.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    forget(long userIdentityId, Long serverId)
    Drops and closes the sessions kept for one account.
    void
    Drops every session the calendar keeps, because the declared servers changed under them — a registration edited or deleted.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlueMindCalendarSessionService

      public BlueMindCalendarSessionService(BlueMindCalendarSessions blueMindCalendarSessions, org.exoplatform.social.core.manager.IdentityManager identityManager)
      The service over the calendar's sessions and the identity registry.
      Parameters:
      blueMindCalendarSessions - the calendar contributions' sessions
      identityManager - the identity registry
  • Method Details

    • forget

      public void forget(long userIdentityId, Long serverId)
      Drops and closes the sessions kept for one account.
      Parameters:
      userIdentityId - the social identity of the connected user
      serverId - the declared server the account was on; null for the legacy deployment property
    • forgetAll

      public void forgetAll()
      Drops every session the calendar keeps, because the declared servers changed under them — a registration edited or deleted. Only the calendar's: another consumer of the add-on's one session cache keeps its own. The dropped sessions expire on BlueMind's own clock; what matters is that none of them is sent again under a registration that no longer says what it said.