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
ConstructorsConstructorDescriptionBlueMindCalendarSessionService(BlueMindCalendarSessions blueMindCalendarSessions, org.exoplatform.social.core.manager.IdentityManager identityManager) The service over the calendar's sessions and the identity registry. -
Method Summary
-
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' sessionsidentityManager- the identity registry
-
-
Method Details
-
forget
Drops and closes the sessions kept for one account.- Parameters:
userIdentityId- the social identity of the connected userserverId- 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.
-