Class VirtualMeetingService
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.virtualmeeting.service.VirtualMeetingService
Service orchestrating virtual meeting operations: room lifecycle and token-based URL generation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMeeting(String strIdResource, String strResourceType, String strProviderName) Create a virtual meeting room for the given resource.createMeeting(String strIdResource, String strResourceType, String strProviderName, String strAccessLevel) Create a virtual meeting room for the given resource, with an explicit access level.booleandeleteMeeting(String strIdResource, String strResourceType) Delete the virtual meeting room associated with the given resource.findByResourceId(String strIdResource, String strResourceType) Find the virtual meeting associated with the given resource.getGuestMeetingUrl(VirtualMeeting meeting, String strIdentity, String strDisplayName, Date notBefore) Generate a meeting URL for a guest with full participant permissions.getHostMeetingUrl(VirtualMeeting meeting, String strIdentity, String strDisplayName, Date notBefore) Generate a meeting URL for a host (admin) with full participant permissions.getProvider(String strProviderName) Resolve a provider by itsname.
-
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 IDstrResourceType- the resource typestrProviderName- the provider name (seeIVirtualMeetingProvider.getName()); ifnullor 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 IDstrResourceType- the resource typestrProviderName- the provider name (seeIVirtualMeetingProvider.getName()); ifnullor empty, the default provider is usedstrAccessLevel- the room access level (seeIVirtualMeetingProvider.getSupportedAccessLevels()); ifnullor 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 IDstrResourceType- the resource type- Returns:
trueif the room was deleted successfully,falseif no meeting was found for the given resource- Throws:
VirtualMeetingException- if the provider cannot be resolved or the room deletion fails
-
findByResourceId
Find the virtual meeting associated with the given resource.- Parameters:
strIdResource- the resource IDstrResourceType- the resource type- Returns:
- the
VirtualMeeting, ornullif 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 meetingstrIdentity- the host unique identity (e.g. AdminUser access code)strDisplayName- the host display namenotBefore- the earliest date/time the token becomes valid (nullfor 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 meetingstrIdentity- the guest unique identity (e.g. email or GUID)strDisplayName- the guest display namenotBefore- the earliest date/time the token becomes valid (nullfor immediate validity)- Returns:
- the meeting URL with a fresh token
- Throws:
VirtualMeetingException- if the provider cannot be resolved or URL generation fails
-
getProvider
Resolve a provider by itsname. IfstrProviderNameisnullor empty, the default provider (IVirtualMeetingProvider.isDefault()) is returned.Follows the same discovery pattern as
FileServicein lutece-core.- Parameters:
strProviderName- the provider name, ornullfor the default- Returns:
- the matching provider (never
null) - Throws:
VirtualMeetingException- if no matching or default provider is found
-