Class RecordingDateUtils

java.lang.Object
org.exoplatform.webconferencing.util.RecordingDateUtils

public final class RecordingDateUtils extends Object
Reads and writes the dates a client gives and gets when it lists the recordings of a call.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The message code of a date that cannot be read.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Writes a date as an ISO 8601 instant in UTC.
    static Date
    parseDate(String value, boolean endOfRange)
    Reads a date: an ISO 8601 date-time with an offset (2026-10-23T10:00:00Z, 2026-10-23T10:00:00+02:00), a date-time without one, read in UTC, or a bare date, which stands for the start of that day in UTC, or for its end when it closes a range.

    Methods inherited from class Object

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

    • RECORDINGS_INVALID_DATE

      public static final String RECORDINGS_INVALID_DATE
      The message code of a date that cannot be read.
      See Also:
  • Method Details

    • parseDate

      public static Date parseDate(String value, boolean endOfRange)
      Reads a date: an ISO 8601 date-time with an offset (2026-10-23T10:00:00Z, 2026-10-23T10:00:00+02:00), a date-time without one, read in UTC, or a bare date, which stands for the start of that day in UTC, or for its end when it closes a range.
      Parameters:
      value - the date, or a blank value for none
      endOfRange - true when the date closes a range
      Returns:
      the date, or null when the value is blank
      Throws:
      IllegalArgumentException - with "webconferencing.recordings.invalidDate" when the value is not a date
    • formatDate

      public static String formatDate(Date date)
      Writes a date as an ISO 8601 instant in UTC.
      Parameters:
      date - the date, or null
      Returns:
      the instant, or null