Class Event

java.lang.Object
org.bedework.eventreg.db.Event
All Implemented Interfaces:
Comparable<Event>

public class Event extends Object implements Comparable<Event>
Author:
douglm
  • Constructor Details

    • Event

      public Event(ietf.params.xml.ns.icalendar_2.BaseComponentType comp, String href, org.bedework.util.calendar.XcalUtil.TzGetter tzs)
      Parameters:
      comp - component
      href - of event
      tzs - for timezones
  • Method Details

    • getHref

      public String getHref()
      Returns:
      the href
    • getUid

      public String getUid() throws Throwable
      Returns:
      the uid
      Throws:
      Throwable
    • getRecurrenceId

      public String getRecurrenceId() throws Throwable
      Returns:
      recurrence id or null
      Throws:
      Throwable - on fatal error
    • getWaitListLimit

      public String getWaitListLimit()
      Returns:
      wait list limit as String - either an integer absolute limit or a percentage
    • getMaxTicketsPerUser

      public int getMaxTicketsPerUser()
      Returns:
      max number of tickets per user
    • getMaxTickets

      public int getMaxTickets()
      Returns:
      max tickets for the whole event?
    • getRegistrationEnd

      public String getRegistrationEnd() throws Throwable
      Returns:
      the end of registration
      Throws:
      Throwable - on fatal error
    • getRegistrationEndTzid

      public String getRegistrationEndTzid() throws Throwable
      Returns:
      the tzid for the end of registration
      Throws:
      Throwable - on fatal error
    • getRegistrationStart

      public String getRegistrationStart() throws Throwable
      Returns:
      the start of registration
      Throws:
      Throwable
    • getRegistrationStartTzid

      public String getRegistrationStartTzid() throws Throwable
      Returns:
      the tzid for the start of registration
      Throws:
      Throwable
    • getLocation

      public String getLocation()
      Returns:
      the location
    • getSummary

      public String getSummary()
      Returns:
      summary for event
    • getStatus

      public String getStatus()
      Returns:
      status of event
    • getDtStartProp

      public ietf.params.xml.ns.icalendar_2.DtstartPropType getDtStartProp() throws Throwable
      Returns:
      recurrence id or null
      Throws:
      Throwable
    • getDate

      public String getDate() throws Throwable
      Returns:
      date part
      Throws:
      Throwable
    • getDateTime

      public String getDateTime() throws Throwable
      Returns:
      date or date - time with possible tzid
      Throws:
      Throwable
    • getTime

      public String getTime() throws Throwable
      Returns:
      time part
      Throws:
      Throwable
    • getTzid

      public String getTzid() throws Throwable
      Returns:
      tzid
      Throws:
      Throwable
    • getUtc

      public String getUtc() throws Throwable
      Returns:
      utc form of time
      Throws:
      Throwable
    • getDate

      public Date getDate(String dt, String tz) throws Throwable
      Parameters:
      dt - - YYYY-MM-DD or YYYY-MM-DDThh:mm:ss[Z]
      tz - - null for floating or UTC
      Returns:
      Date
      Throws:
      Throwable
    • getRegistrationEndDate

      public Date getRegistrationEndDate() throws Throwable
      Returns:
      Date
      Throws:
      Throwable
    • getRegistrationStartDate

      public Date getRegistrationStartDate() throws Throwable
      Returns:
      Date
      Throws:
      Throwable
    • compareTo

      public int compareTo(Event that)
      Specified by:
      compareTo in interface Comparable<Event>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object