Class MissedCallNotificationUtils

java.lang.Object
org.exoplatform.webconferencing.notification.utils.MissedCallNotificationUtils

public final class MissedCallNotificationUtils extends Object
What the email and the push of a missed call need from its notification.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    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.
    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.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      true for 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:
      true for 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 null for 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