Class Registration

All Implemented Interfaces:
Serializable, Comparable<Registration>

public class Registration extends DbItem<Registration>
A registration to an event for a single person (or entity)
Author:
douglm
See Also:
  • Field Details

  • Constructor Details

    • Registration

      public Registration()
  • Method Details

    • setRegistrationId

      public void setRegistrationId(Long val)
      Parameters:
      val - the id
    • getRegistrationId

      public Long getRegistrationId()
      Returns:
      registrationId
    • setAuthid

      public void setAuthid(String val)
      Parameters:
      val - the authid
    • getAuthid

      public String getAuthid()
      Returns:
      authid
    • setEmail

      public void setEmail(String val)
      Parameters:
      val - email of user (do we need this if notify engine has it)
    • getEmail

      public String getEmail()
      Returns:
      email
    • setHref

      public void setHref(String val)
      Parameters:
      val - href of event
    • getHref

      public String getHref()
      Returns:
      eventHref
    • setTicketsRequested

      public void setTicketsRequested(int val)
      Parameters:
      val - - ticketsRequested
    • getTicketsRequested

      public int getTicketsRequested()
      Returns:
      ticketsRequested
    • setType

      public void setType(String val)
      Parameters:
      val - hold/reg etc
    • getType

      public String getType()
      Returns:
      type
    • setCreated

      public void setCreated(String val)
      Parameters:
      val - date
    • getCreated

      public String getCreated()
      Returns:
      created
    • setLastmod

      public void setLastmod(String val)
      Parameters:
      val - date
    • getLastmod

      public String getLastmod()
      Returns:
      lastmod
    • setWaitqDate

      public void setWaitqDate(String val)
      The waitqDate is almost the lastmod and orders the waitq. We need a separate date to avoid somebody going to the back of the queue because of a trivial modification. For example changing the number of tickets required should preserve your place if you're already on the q.

      On the other hand we need to ensure that somebody goes to the back of the queue if they are already fulfilled but decide they want more.

      Parameters:
      val - date
    • getWaitqDate

      public String getWaitqDate()
      Returns:
      waitqDate
    • setComment

      public void setComment(String val)
      Parameters:
      val - a comment
    • getComment

      public String getComment()
      Returns:
      comment
    • setMessage

      public void setMessage(String val)
      Parameters:
      val - a message
    • getMessage

      public String getMessage()
      Returns:
      message
    • setFormName

      public void setFormName(String val)
      Parameters:
      val - name
    • getFormName

      public String getFormName()
      Returns:
      name
    • setFormOwner

      public void setFormOwner(String val)
      Parameters:
      val - name
    • getFormOwner

      public String getFormOwner()
      Returns:
      name
    • setTickets

      public void setTickets(Set<Ticket> val)
      Parameters:
      val - set of tickets
    • getTickets

      public Set<Ticket> getTickets()
      Returns:
      tickets
    • getEvSummary

      public String getEvSummary()
    • setEvSummary

      public void setEvSummary(String evSummary)
    • getEvDate

      public String getEvDate()
    • setEvDate

      public void setEvDate(String evDate)
    • getEvTime

      public String getEvTime()
    • setEvTime

      public void setEvTime(String evTime)
    • getEvLocation

      public String getEvLocation()
    • setEvLocation

      public void setEvLocation(String evLocation)
    • getNotificationTimestamp

      public String getNotificationTimestamp()
    • setNotificationTimestamp

      public void setNotificationTimestamp(String notificationTimestamp)
    • setCancelSent

      public void setCancelSent(boolean val)
      Parameters:
      val - flag to say we sent a cancel message
    • getCancelSent

      public boolean getCancelSent() throws EventregException
      Returns:
      flag to say we sent a cancel message
      Throws:
      EventregException
    • setFormValues

      public void setFormValues(String val)
      Parameters:
      val - Saved form fields as a serialized json string
    • getFormValues

      public String getFormValues() throws EventregException
      Returns:
      Saved form fields as a serialized json string
      Throws:
      EventregException
    • setEvent

      public void setEvent(Event val)
      Parameters:
      val - the event
    • getEvent

      public Event getEvent()
      Returns:
      event
    • saveFormValues

      public void saveFormValues(Map vals) throws EventregException
      Throws:
      EventregException
    • restoreFormValues

      public Map restoreFormValues() throws EventregException
      Throws:
      EventregException
    • setTimestamps

      public void setTimestamps()
      Set the various timestamps to now for a new registration.
    • setLastmod

      public void setLastmod()
      Set the lastmod to now.
    • setWaitqDate

      public void setWaitqDate()
      Set the waitq date to now.
    • toStringSegment

      protected void toStringSegment(org.bedework.util.misc.ToString ts)
      Add our stuff to the StringBuilder
      Overrides:
      toStringSegment in class DbItem<Registration>
      Parameters:
      ts - for result
    • addTicket

      public void addTicket(Ticket val)
      Parameters:
      val - a ticket
    • addTicket

      public void addTicket()
      Add a new ticket
    • addTickets

      public void addTickets(int numTickets)
      Parameters:
      numTickets -
    • removeTicket

      public void removeTicket(Ticket val)
      Parameters:
      val -
    • removeTickets

      public void removeTickets(int numTickets)
      Parameters:
      numTickets -
    • getNumTickets

      public int getNumTickets()
      Returns:
      numTickets
    • compareTo

      public int compareTo(Registration that)
      Specified by:
      compareTo in interface Comparable<Registration>
      Overrides:
      compareTo in class DbItem<Registration>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DbItem<Registration>
    • toString

      public String toString()
      Overrides:
      toString in class Object