Class BlueMindServerFlavour
java.lang.Object
org.exoplatform.caldav.client.bluemind.BlueMindServerFlavour
- All Implemented Interfaces:
CalendarServerFlavour
BlueMind as a server flavour: recognised by its registration's name, it
may write through
WriteChannel.BLUEMIND_IMPORT, and it keeps a REST
session per account (EXO-90397) that eXo drops when the account or the
registration changes.
Recognised by the name, because nothing else on the row says which
product it is: a preset is a copy, never a link (the drawer's
serverPresets.js states why), so no preset identifier is stored; the
provider name is the agenda bridge's, not the product's; and the sharing
mechanism is a runtime capability read from the server, not a stored fact a
save can be judged by. An administrator who renames a BlueMind registration
to something else therefore also gives up its BlueMind-only choices — and
is told so by the registry's refusal rather than by a silent reset.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe flavour's identifier, the same as the front end's BlueMind preset.static final StringWhat a registration's name carries when it stands for a BlueMind server: the shipped seed row ("Bluemind") and the drawer's preset ("BlueMind") both write it. -
Constructor Summary
ConstructorsConstructorDescriptionThe bean Spring makes, its session service injected.BlueMindServerFlavour(BlueMindSessionService blueMindSessionService) A flavour over a given session service, as a test states it. -
Method Summary
Modifier and TypeMethodDescriptionvoidDrops every kept REST session.voidforgetSession(long userIdentityId, Long serverId) Drops the REST session kept for one account.id()The flavour's stable identifier, the same as the front end's server preset for the product.booleanrecognises(org.exoplatform.caldav.model.CaldavServer server) Whether the registration's name carries "bluemind", ignoring case.Set<org.exoplatform.caldav.model.WriteChannel> BlueMind's own ICS import door.
-
Field Details
-
FLAVOUR_ID
The flavour's identifier, the same as the front end's BlueMind preset.- See Also:
-
NAME_MARKER
What a registration's name carries when it stands for a BlueMind server: the shipped seed row ("Bluemind") and the drawer's preset ("BlueMind") both write it.- See Also:
-
-
Constructor Details
-
BlueMindServerFlavour
public BlueMindServerFlavour()The bean Spring makes, its session service injected. -
BlueMindServerFlavour
A flavour over a given session service, as a test states it.- Parameters:
blueMindSessionService- the session service, may be null
-
-
Method Details
-
id
The flavour's stable identifier, the same as the front end's server preset for the product.- Specified by:
idin interfaceCalendarServerFlavour- Returns:
- the identifier, never blank
-
recognises
public boolean recognises(org.exoplatform.caldav.model.CaldavServer server) Whether the registration's name carries "bluemind", ignoring case.- Specified by:
recognisesin interfaceCalendarServerFlavour- Parameters:
server- the registration, may be null- Returns:
- true when its name says BlueMind
-
writeChannels
BlueMind's own ICS import door.- Specified by:
writeChannelsin interfaceCalendarServerFlavour- Returns:
WriteChannel.BLUEMIND_IMPORT
-
forgetSession
Drops the REST session kept for one account.- Specified by:
forgetSessionin interfaceCalendarServerFlavour- Parameters:
userIdentityId- the social identity of the connected userserverId- the registration the account was on
-
forgetAllSessions
public void forgetAllSessions()Drops every kept REST session.- Specified by:
forgetAllSessionsin interfaceCalendarServerFlavour
-