Class FormDef

All Implemented Interfaces:
Serializable, Comparable<FormDef>

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

    • FormDef

      public FormDef()
  • Method Details

    • setFormName

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

      public String getFormName()
      Returns:
      name
    • setOwner

      public void setOwner(String val)
      Parameters:
      val - the owner
    • getOwner

      public String getOwner()
      Returns:
      owner
    • setCommitted

      public void setCommitted(boolean val)
    • getCommitted

      public boolean getCommitted()
    • setDisabled

      public void setDisabled(boolean val)
    • getDisabled

      public boolean getDisabled()
    • 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
    • setComment

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

      public String getComment()
      Returns:
      comment
    • setFields

      public void setFields(Set<FieldDef> val)
      Parameters:
      val - set of FieldDefs
    • getFields

      public Set<FieldDef> getFields()
      Returns:
      FieldDefs
    • setWaitListLimit

      public void setWaitListLimit(String val) throws EventregException
      Parameters:
      val - a wait list limit - as an integer or an integer followed by "%"
      Throws:
      EventregException
    • getWaitListLimit

      public String getWaitListLimit() throws EventregException
      Returns:
      a wait list limit - as an integer or an integer followed by "%"
      Throws:
      EventregException
    • addField

      public void addField(FieldDef val)
      Parameters:
      val - a FieldDef
    • removeField

      public void removeField(FieldDef val)
      Parameters:
      val -
    • setTimestamps

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

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object