java.lang.Object
fr.paris.lutece.plugins.appointment.modules.virtualmeeting.service.VirtualMeetingService

public class VirtualMeetingService extends Object
Service orchestrating virtual meeting operations: room lifecycle and token-based URL generation.
  • Constructor Details

    • VirtualMeetingService

      public VirtualMeetingService()
  • Method Details

    • createMeeting

      public VirtualMeeting createMeeting(String strIdResource, String strResourceType, String strProviderName) throws VirtualMeetingException
      Create a virtual meeting room for the given resource.
      Parameters:
      strIdResource - the resource ID
      strResourceType - the resource type
      strProviderName - the provider name (see IVirtualMeetingProvider.getName()); if null or empty, the default provider is used
      Returns:
      the created VirtualMeeting
      Throws:
      VirtualMeetingException - if the provider cannot be resolved or the room creation fails
    • createMeeting

      public VirtualMeeting createMeeting(String strIdResource, String strResourceType, String strProviderName, String strAccessLevel) throws VirtualMeetingException
      Create a virtual meeting room for the given resource, with an explicit access level.
      Parameters:
      strIdResource - the resource ID
      strResourceType - the resource type
      strProviderName - the provider name (see IVirtualMeetingProvider.getName()); if null or empty, the default provider is used
      strAccessLevel - the room access level (see IVirtualMeetingProvider.getSupportedAccessLevels()); if null or empty, the parameter is not passed to the provider, which then applies its own default
      Returns:
      the created VirtualMeeting
      Throws:
      VirtualMeetingException - if the provider cannot be resolved or the room creation fails
    • deleteMeeting

      public boolean deleteMeeting(String strIdResource, String strResourceType) throws VirtualMeetingException
      Delete the virtual meeting room associated with the given resource.
      Parameters:
      strIdResource - the resource ID
      strResourceType - the resource type
      Returns:
      true if the room was deleted successfully, false if no meeting was found for the given resource
      Throws:
      VirtualMeetingException - if the provider cannot be resolved or the room deletion fails
    • findByResourceId

      public VirtualMeeting findByResourceId(String strIdResource, String strResourceType)
      Find the virtual meeting associated with the given resource.
      Parameters:
      strIdResource - the resource ID
      strResourceType - the resource type
      Returns:
      the VirtualMeeting, or null if none exists
    • getHostMeetingUrl

      public String getHostMeetingUrl(VirtualMeeting meeting, String strIdentity, String strDisplayName, Date notBefore) throws VirtualMeetingException
      Generate a meeting URL for a host (admin) with full participant permissions.
      Parameters:
      meeting - the virtual meeting
      strIdentity - the host unique identity (e.g. AdminUser access code)
      strDisplayName - the host display name
      notBefore - the earliest date/time the token becomes valid (null for immediate validity)
      Returns:
      the meeting URL with a fresh token
      Throws:
      VirtualMeetingException - if the provider cannot be resolved or URL generation fails
    • getGuestMeetingUrl

      public String getGuestMeetingUrl(VirtualMeeting meeting, String strIdentity, String strDisplayName, Date notBefore) throws VirtualMeetingException
      Generate a meeting URL for a guest with full participant permissions.
      Parameters:
      meeting - the virtual meeting
      strIdentity - the guest unique identity (e.g. email or GUID)
      strDisplayName - the guest display name
      notBefore - the earliest date/time the token becomes valid (null for immediate validity)
      Returns:
      the meeting URL with a fresh token
      Throws:
      VirtualMeetingException - if the provider cannot be resolved or URL generation fails
    • getProvider

      public IVirtualMeetingProvider getProvider(String strProviderName) throws VirtualMeetingException
      Resolve a provider by its name. If strProviderName is null or empty, the default provider (IVirtualMeetingProvider.isDefault()) is returned.

      Follows the same discovery pattern as FileService in lutece-core.

      Parameters:
      strProviderName - the provider name, or null for the default
      Returns:
      the matching provider (never null)
      Throws:
      VirtualMeetingException - if no matching or default provider is found