Class DeclinedCallNotificationUtils
java.lang.Object
org.exoplatform.webconferencing.notification.utils.DeclinedCallNotificationUtils
What the web notification, the email and the push of a declined call need from its notification.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetAbsoluteDeclineLink(org.exoplatform.commons.api.notification.model.NotificationInfo notification) Gets the absolute URL of the page a declined call leads to, for an email.static StringgetDeclineKey(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 StringgetDeclineLink(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.getDeclinerIds(org.exoplatform.commons.api.notification.model.NotificationInfo notification) Gets the participants who declined the call, in the web notification the latest first.static booleanisClosed(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.Splits a comma separated list of user ids.
-
Method Details
-
getDeclineKey
-
split
-
getDeclinerIds
-
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:
trueonce 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
nullfor 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
-