Class DeclinedCallNotificationUtils

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

public final class DeclinedCallNotificationUtils extends Object
What the web notification, the email and the push of a declined call need from its notification.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getAbsoluteDeclineLink(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
    Gets the absolute URL of the page a declined call leads to, for an email.
    static String
    getDeclineKey(String callId, Date startedAt)
    Gets the key grouping the declines of a call start: the call id, whose calls are started again under the same id, and the start date.
    static String
    getDeclineLink(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
    Gets the page a declined call leads to, relative to the server: the profile of the participant who declined it, when only one did.
    static List<String>
    getDeclinerIds(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
    Gets the participants who declined the call, in the web notification the latest first.
    static boolean
    isClosed(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
    Tells if the notification reports the declines of a call start once its incoming call alert closed.
    static List<String>
    split(String userIds)
    Splits a comma separated list of user ids.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getDeclineKey

      public static String getDeclineKey(String callId, Date startedAt)
      Gets the key grouping the declines of a call start: the call id, whose calls are started again under the same id, and the start date.
      Parameters:
      callId - the call id
      startedAt - the start date of the call
      Returns:
      the key
    • split

      public static List<String> split(String userIds)
      Splits a comma separated list of user ids.
      Parameters:
      userIds - the user ids, comma separated
      Returns:
      the user ids, empty for a blank value
    • getDeclinerIds

      public static List<String> getDeclinerIds(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
      Gets the participants who declined the call, in the web notification the latest first.
      Parameters:
      notification - the declined call notification
      Returns:
      the user ids
    • isClosed

      public static boolean isClosed(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
      Tells if the notification reports the declines of a call start once its incoming call alert closed.
      Parameters:
      notification - the declined call notification
      Returns:
      true once the alert closed
    • getDeclineLink

      public static String getDeclineLink(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
      Gets the page a declined call leads to, relative to the server: the profile of the participant who declined it, when only one did.
      Parameters:
      notification - the declined call notification
      Returns:
      the path of the page, or null for the home page
    • getAbsoluteDeclineLink

      public static String getAbsoluteDeclineLink(org.exoplatform.commons.api.notification.model.NotificationInfo notification)
      Gets the absolute URL of the page a declined call leads to, for an email.
      Parameters:
      notification - the declined call notification
      Returns:
      the URL of the page, the portal home page by default