Interface IVirtualMeetingProvider
Follows the same provider pattern as IFileStoreServiceProvider in lutece-core: each implementation declares a unique name and an
optional default flag used for automatic selection.
All provider operations receive their parameters via a Map<String, Object>. Standard parameter keys are defined as constants on this interface.
Providers read only the keys they support and ignore the rest. This allows new provider-specific parameters to be added without changing the interface
signature.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRoom access level (String, optional — absent or empty = provider default).static final StringParticipant display name (String, required for token/URL generation).static final StringSeconds to keep the room alive after the last participant leaves (Integer, optional — 0 or absent = server default).static final StringParticipant unique identity, e.g.static final StringMaximum number of participants (Integer, optional — 0 or absent = unlimited).static final StringEarliest date/time the token becomes valid (Date, optional —nullor absent = immediate validity).static final StringRoom name (String, required for all operations). -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateRoom(Map<String, Object> mapParameters) Create a new meeting room.booleandeleteRoom(Map<String, Object> mapParameters) Delete an existing room.generateParticipantToken(Map<String, Object> mapParameters) Generate a participant token with full publish and subscribe permissions.generateViewerToken(Map<String, Object> mapParameters) Generate a viewer token with subscribe-only permissions (no publish).default StringGet the access level this provider will effectively apply whenPARAM_ACCESS_LEVELis absent from acreateRoom(java.util.Map<java.lang.String, java.lang.Object>)call — i.e.getName()Get the unique name of this provider (e.g.default StringgetParticipantMeetingUrl(Map<String, Object> mapParameters) Get the full meeting join URL for a participant.Get the access levels this provider accepts forPARAM_ACCESS_LEVEL, in display order.default StringgetViewerMeetingUrl(Map<String, Object> mapParameters) Get the full meeting join URL for a viewer.booleanWhether this provider should be used when no explicit name is configured.
-
Field Details
-
PARAM_ROOM_NAME
Room name (String, required for all operations).- See Also:
-
PARAM_EMPTY_TIMEOUT
Seconds to keep the room alive after the last participant leaves (Integer, optional — 0 or absent = server default). Used bycreateRoom(java.util.Map<java.lang.String, java.lang.Object>).- See Also:
-
PARAM_MAX_PARTICIPANTS
Maximum number of participants (Integer, optional — 0 or absent = unlimited). Used bycreateRoom(java.util.Map<java.lang.String, java.lang.Object>).- See Also:
-
PARAM_IDENTITY
Participant unique identity, e.g. email or access code (String, required for token/URL generation).- See Also:
-
PARAM_DISPLAY_NAME
Participant display name (String, required for token/URL generation).- See Also:
-
PARAM_NOT_BEFORE
Earliest date/time the token becomes valid (Date, optional —nullor absent = immediate validity).- See Also:
-
PARAM_ACCESS_LEVEL
Room access level (String, optional — absent or empty = provider default). One of the values returned bygetSupportedAccessLevels(). Used bycreateRoom(java.util.Map<java.lang.String, java.lang.Object>).- See Also:
-
-
Method Details
-
getName
String getName()Get the unique name of this provider (e.g. "livekit", "jitsi").- Returns:
- the provider name
-
isDefault
boolean isDefault()Whether this provider should be used when no explicit name is configured.- Returns:
trueif this is the default provider
-
getSupportedAccessLevels
Get the access levels this provider accepts forPARAM_ACCESS_LEVEL, in display order.Returned values are the raw codes sent to the backend (e.g.
"public","trusted","restricted"). Providers whose backend has no such notion return an empty list — the default implementation — and callers then omit the parameter.- Returns:
- the supported access level codes, never
null
-
getDefaultAccessLevel
Get the access level this provider will effectively apply whenPARAM_ACCESS_LEVELis absent from acreateRoom(java.util.Map<java.lang.String, java.lang.Object>)call — i.e. its configured site-wide default, or the backend default when nothing is configured.Purely informative: the back-office uses it to tell administrators what "provider default" resolves to. Providers that cannot know the effective value return
null— the default implementation.- Returns:
- one of
getSupportedAccessLevels(), ornullif unknown
-
createRoom
Create a new meeting room.Required keys:
PARAM_ROOM_NAME. Optional keys:PARAM_EMPTY_TIMEOUT,PARAM_MAX_PARTICIPANTS,PARAM_ACCESS_LEVEL.- Parameters:
mapParameters- the operation parameters- Returns:
trueif the room was created successfully- Throws:
VirtualMeetingException- if the provider fails to create the room
-
deleteRoom
Delete an existing room.Required keys:
PARAM_ROOM_NAME.- Parameters:
mapParameters- the operation parameters- Returns:
trueif the room was deleted successfully- Throws:
VirtualMeetingException- if the provider fails to delete the room
-
generateParticipantToken
Generate a participant token with full publish and subscribe permissions.Required keys:
PARAM_ROOM_NAME,PARAM_IDENTITY,PARAM_DISPLAY_NAME. Optional keys:PARAM_NOT_BEFORE.- Parameters:
mapParameters- the operation parameters- Returns:
- the authentication token string or URL
- Throws:
VirtualMeetingException- if the provider fails to generate the token
-
generateViewerToken
Generate a viewer token with subscribe-only permissions (no publish).Required keys:
PARAM_ROOM_NAME,PARAM_IDENTITY,PARAM_DISPLAY_NAME. Optional keys:PARAM_NOT_BEFORE.- Parameters:
mapParameters- the operation parameters- Returns:
- the authentication token string or URL
- Throws:
VirtualMeetingException- if the provider fails to generate the token
-
getParticipantMeetingUrl
default String getParticipantMeetingUrl(Map<String, Object> mapParameters) throws VirtualMeetingExceptionGet the full meeting join URL for a participant.Providers that generate opaque tokens (e.g. JWT) should override this to embed the token into a front-end URL. Providers that already return a complete URL from
generateParticipantToken(java.util.Map<java.lang.String, java.lang.Object>)can rely on the default implementation.Required keys:
PARAM_ROOM_NAME,PARAM_IDENTITY,PARAM_DISPLAY_NAME. Optional keys:PARAM_NOT_BEFORE.- Parameters:
mapParameters- the operation parameters- Returns:
- the full meeting URL ready for the participant to join
- Throws:
VirtualMeetingException- if the provider fails to generate the URL or token
-
getViewerMeetingUrl
Get the full meeting join URL for a viewer.Providers that generate opaque tokens (e.g. JWT) should override this to embed the token into a front-end URL. Providers that already return a complete URL from
generateViewerToken(java.util.Map<java.lang.String, java.lang.Object>)can rely on the default implementation.Required keys:
PARAM_ROOM_NAME,PARAM_IDENTITY,PARAM_DISPLAY_NAME. Optional keys:PARAM_NOT_BEFORE.- Parameters:
mapParameters- the operation parameters- Returns:
- the full meeting URL ready for the viewer to join
- Throws:
VirtualMeetingException- if the provider fails to generate the URL or token
-