Class MeetServerService

java.lang.Object
fr.paris.lutece.plugins.meet.service.MeetServerService
All Implemented Interfaces:
fr.paris.lutece.plugins.appointment.modules.virtualmeeting.provider.IVirtualMeetingProvider

public class MeetServerService extends Object implements fr.paris.lutece.plugins.appointment.modules.virtualmeeting.provider.IVirtualMeetingProvider
Meet provider implementation of IVirtualMeetingProvider.

Integrates with the Meet external API for room management. Since Meet uses room URLs for access (not per-participant tokens), the token generation methods return the room URL.

  • Constructor Details

    • MeetServerService

      public MeetServerService(String providerName, String isDefault)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface fr.paris.lutece.plugins.appointment.modules.virtualmeeting.provider.IVirtualMeetingProvider
    • setName

      public void setName(String strName)
    • isDefault

      public boolean isDefault()
      Specified by:
      isDefault in interface fr.paris.lutece.plugins.appointment.modules.virtualmeeting.provider.IVirtualMeetingProvider
    • setDefault

      public void setDefault(boolean bDefault)
    • setBaseUrl

      public void setBaseUrl(String strBaseUrl)
    • setClientId

      public void setClientId(String strClientId)
    • setClientSecret

      public void setClientSecret(String strClientSecret)
    • setScope

      public void setScope(String strScope)
    • setMeetingUrlPattern

      public void setMeetingUrlPattern(String strMeetingUrlPattern)
    • setAccessLevel

      public void setAccessLevel(String strAccessLevel)
    • getSupportedAccessLevels

      public List<String> getSupportedAccessLevels()
      Specified by:
      getSupportedAccessLevels in interface fr.paris.lutece.plugins.appointment.modules.virtualmeeting.provider.IVirtualMeetingProvider
    • getDefaultAccessLevel

      public String getDefaultAccessLevel()

      Resolves exactly like createRoom(java.util.Map<java.lang.String, java.lang.Object>): the valid site-wide default if one is configured, otherwise the documented Meet server default. An invalid configured value therefore reports the server default, which is what the server will actually apply.

      Specified by:
      getDefaultAccessLevel in interface fr.paris.lutece.plugins.appointment.modules.virtualmeeting.provider.IVirtualMeetingProvider
    • createRoom

      public boolean createRoom(Map<String,Object> mapParameters)

      The Meet API auto-generates room slugs; the roomName parameter is used as a local cache key only. Parameters emptyTimeout and maxParticipants are not supported by the Meet API and are ignored if present.

      accessLevel is resolved in three steps: the value passed in mapParameters, else the site-wide default (meet.server.accessLevel or the injected field), else nothing — in which case the field is omitted from the request body and the Meet server applies its own secure default.

      Specified by:
      createRoom in interface fr.paris.lutece.plugins.appointment.modules.virtualmeeting.provider.IVirtualMeetingProvider
    • deleteRoom

      public boolean deleteRoom(Map<String,Object> mapParameters)

      Room deletion is not yet supported by the Meet API. This method removes the room from the local cache and returns false.

      Specified by:
      deleteRoom in interface fr.paris.lutece.plugins.appointment.modules.virtualmeeting.provider.IVirtualMeetingProvider
    • generateParticipantToken

      public String generateParticipantToken(Map<String,Object> mapParameters)

      The Meet API does not issue per-participant tokens. This method returns the room URL, which serves as the access point for all participants. Parameters identity, displayName, and notBefore are ignored if present.

      Specified by:
      generateParticipantToken in interface fr.paris.lutece.plugins.appointment.modules.virtualmeeting.provider.IVirtualMeetingProvider
    • generateViewerToken

      public String generateViewerToken(Map<String,Object> mapParameters)

      The Meet API does not distinguish between participant and viewer access levels. This method delegates to generateParticipantToken(Map).

      Specified by:
      generateViewerToken in interface fr.paris.lutece.plugins.appointment.modules.virtualmeeting.provider.IVirtualMeetingProvider