Class Staff

All Implemented Interfaces:
Serializable, Cloneable, Comparable<Object>, Principal, ComboAlias, EMailAddress, FormattedEMailRecipient, IDBean, PushAddress, ViewEntry, Cacheable

public class Staff extends Pilot
A class for storing Staff Profiles.
Since:
1.0
Version:
8.0
Author:
Luke
See Also:
  • Constructor Details

    • Staff

      public Staff(String fName, String lName)
      Create a new Staff Profile with a given first and last name.
      Parameters:
      fName - the Staff Member's first (given) name
      lName - the Staff Member's last (family) name
      Throws:
      NullPointerException - if either fName or lName are null
  • Method Details

    • getTitle

      public String getTitle()
      Returns the Staff Member's title.
      Returns:
      the title
    • getArea

      public String getArea()
      Returns the Staff Member's functional area.
      Returns:
      the area
    • getBody

      public String getBody()
      Returns the Staff Member's biograpy.
      Returns:
      the biography
    • getSortOrder

      public int getSortOrder()
      Get the sort order for this Staff Member profile.
      Returns:
      the sort order value
    • setTitle

      public void setTitle(String title)
      Updates the Staff Member's title.
      Parameters:
      title - the new title
    • setArea

      public void setArea(String area)
      Updates the Staff Member's functional area.
      Parameters:
      area - the area
    • setBody

      public void setBody(String body)
      Sets the Staff Member's biography.
      Parameters:
      body - the new biography
    • setSortOrder

      public void setSortOrder(int sortOrder)
      Sets the new sort order for this Staff Member profile.
      Parameters:
      sortOrder - the new sort order
    • compareTo

      public int compareTo(Object o2)
      Compare two Staff Memebr profiles. Check the sort order, then the last name.
      Specified by:
      compareTo in interface Comparable<Object>
      Overrides:
      compareTo in class DatabaseBean
      Throws:
      ClassCastException - if o2 is not a Staff profile
      See Also: