Class MissedCallNotificationUtils
java.lang.Object
org.exoplatform.webconferencing.notification.utils.MissedCallNotificationUtils
What the email and the push of a missed call need from its notification.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAbsoluteCallLink(org.exoplatform.commons.api.notification.model.NotificationInfo notification) Gets the absolute URL of the page a missed call leads to, for an email.static StringgetCallLink(org.exoplatform.commons.api.notification.model.NotificationInfo notification) Gets the page a missed call leads to, relative to the server: the caller's profile for a 1:1 call, the space of a space call.static booleanisEndedCall(org.exoplatform.commons.api.notification.model.NotificationInfo notification) Tells if a missed group call had already ended when it was notified: it stopped before the participant answered its incoming call alert.static booleanisGroupCall(org.exoplatform.commons.api.notification.model.NotificationInfo notification) Tells if the missed call was a group call: any call but a 1:1 one.
-
Method Details
-
isGroupCall
public static boolean isGroupCall(org.exoplatform.commons.api.notification.model.NotificationInfo notification) Tells if the missed call was a group call: any call but a 1:1 one.- Parameters:
notification- the missed call notification- Returns:
truefor a group call
-
isEndedCall
public static boolean isEndedCall(org.exoplatform.commons.api.notification.model.NotificationInfo notification) Tells if a missed group call had already ended when it was notified: it stopped before the participant answered its incoming call alert.- Parameters:
notification- the missed call notification- Returns:
truefor a group call that had ended
-
getCallLink
public static String getCallLink(org.exoplatform.commons.api.notification.model.NotificationInfo notification) Gets the page a missed call leads to, relative to the server: the caller's profile for a 1:1 call, the space of a space call.- Parameters:
notification- the missed call notification- Returns:
- the path of the page, or
nullfor the home page
-
getAbsoluteCallLink
public static String getAbsoluteCallLink(org.exoplatform.commons.api.notification.model.NotificationInfo notification) Gets the absolute URL of the page a missed call leads to, for an email.- Parameters:
notification- the missed call notification- Returns:
- the URL of the page, the portal home page by default
-