Class SchedulingUtils.SchedulingInfo

java.lang.Object
org.opencastproject.external.util.SchedulingUtils.SchedulingInfo
Enclosing class:
SchedulingUtils

public static class SchedulingUtils.SchedulingInfo extends Object
  • Constructor Details

    • SchedulingInfo

      public SchedulingInfo()
    • SchedulingInfo

      public SchedulingInfo(SchedulingUtils.SchedulingInfo other)
      Copy the given SchedulingInfo object.
      Parameters:
      other - The SchedulingInfo object to copy.
  • Method Details

    • getStartDate

      public com.entwinemedia.fn.data.Opt<Date> getStartDate()
    • setStartDate

      public void setStartDate(com.entwinemedia.fn.data.Opt<Date> startDate)
    • getEndDate

      public com.entwinemedia.fn.data.Opt<Date> getEndDate()
    • setEndDate

      public void setEndDate(com.entwinemedia.fn.data.Opt<Date> endDate)
    • getDuration

      public com.entwinemedia.fn.data.Opt<Long> getDuration()
    • setDuration

      public void setDuration(com.entwinemedia.fn.data.Opt<Long> duration)
    • getAgentId

      public com.entwinemedia.fn.data.Opt<String> getAgentId()
    • setAgentId

      public void setAgentId(com.entwinemedia.fn.data.Opt<String> agentId)
    • getInputs

      public com.entwinemedia.fn.data.Opt<String> getInputs()
    • setInputs

      public void setInputs(com.entwinemedia.fn.data.Opt<String> inputs)
    • getRrule

      public com.entwinemedia.fn.data.Opt<net.fortuna.ical4j.model.property.RRule> getRrule()
    • setRrule

      public void setRrule(com.entwinemedia.fn.data.Opt<net.fortuna.ical4j.model.property.RRule> rrule)
    • toJson

      public com.entwinemedia.fn.data.json.JObject toJson()
      Returns:
      A JSON representation of this ScheudlingInfo object.
    • toSource

      public org.json.simple.JSONObject toSource()
      Returns:
      A JSON source representation of this SchedulingInfo as needed by the IndexService to create an event.
    • merge

      Creates a new SchedulingInfo of this instance which uses start date, end date, and agent id form the given TechnicalMetadata if they are not present in this instance.
      Parameters:
      metadata - The TechnicalMetadata of which to use start date, end date, and agent id in case they are missing.
      Returns:
      The new SchedulingInfo with start date, end date, and agent id set.
    • of

      public static SchedulingUtils.SchedulingInfo of(org.json.simple.JSONObject json)
      Parse the given json and create a new SchedulingInfo.
      Parameters:
      json - The JSONObject to parse.
      Returns:
      The SchedulingInfo instance represented by the given JSON.
    • of

      Get the SchedulingInfo for the given event id.
      Parameters:
      eventId - The id of the event to get the SchedulingInfo for.
      schedulerService - The SchedulerService to query for the event id.
      Returns:
      The SchedulingInfo for the given event id.
      Throws:
      UnauthorizedException - If the SchedulerService cannot be queried due to missing authorization.
      SchedulerException - In case internal errors occur within the SchedulerService.