Class Researcher

java.lang.Object
com.genologics.ri.researcher.Researcher
All Implemented Interfaces:
LimsEntity<Researcher>, LimsEntityLinkable<Researcher>, Linkable<Researcher>, Locatable, UDFHolder, Serializable

public class Researcher extends Object implements LimsEntity<Researcher>, UDFHolder, Serializable
The detailed representation of a researcher.
See Also:
  • Field Details

    • firstName

      protected String firstName
    • lastName

      protected String lastName
    • phone

      protected String phone
    • fax

      protected String fax
    • email

      protected String email
    • lab

      protected LabLink lab
    • type

      protected UDT type
    • fields

      protected List<UDF> fields
    • externalIds

      protected List<ExternalId> externalIds
    • credentials

      protected Credentials credentials
    • initials

      protected String initials
    • uri

      protected URI uri
  • Constructor Details

    • Researcher

      public Researcher()
    • Researcher

      public Researcher(URI uri)
  • Method Details

    • getFirstName

      public String getFirstName()
    • setFirstName

      public void setFirstName(String value)
    • getLastName

      public String getLastName()
    • setLastName

      public void setLastName(String value)
    • getFullName

      public String getFullName()
      Convenience method for returning the full name of the researcher.
      Returns:
      The full name.
      Since:
      2.31.2
      See Also:
    • makeFullName

      public static String makeFullName(String firstName, String lastName)
      Convenience method for making the full name of the researcher. Present as a static to allow reuse by some of the researcher link classes.
      Parameters:
      firstName - The researcher first name.
      lastName - The researcher last name.
      Returns:
      First name <space> last name. If both names are null, returns null.
      Since:
      2.31.2
    • getPhone

      public String getPhone()
    • setPhone

      public void setPhone(String value)
    • getFax

      public String getFax()
    • setFax

      public void setFax(String value)
    • getEmail

      public String getEmail()
      The researcher's e-mail address.
      Returns:
      The researcher's e-mail address.
    • setEmail

      public void setEmail(String value)
    • getLab

      public LabLink getLab()
    • setLab

      public void setLab(Linkable<Lab> link)
    • getUserDefinedType

      public UDT getUserDefinedType()
    • setUserDefinedType

      public UDT setUserDefinedType(UDT value)
    • setUserDefinedType

      public UDT setUserDefinedType(String type)
    • getUserDefinedFields

      public List<UDF> getUserDefinedFields()
      Description copied from interface: UDFHolder
      Get a list of user defined fields held by the entity.
      Specified by:
      getUserDefinedFields in interface UDFHolder
      Returns:
      A list of UDF objects. This should never return null.
    • getExternalIds

      public List<ExternalId> getExternalIds()
    • getCredentials

      public Credentials getCredentials()
    • setCredentials

      public void setCredentials(Credentials value)
    • getInitials

      public String getInitials()
    • setInitials

      public void setInitials(String value)
    • getUri

      public URI getUri()
      Description copied from interface: Locatable
      Get the URI of this object.
      Specified by:
      getUri in interface Locatable
      Returns:
      The URI.
    • setUri

      public void setUri(URI value)
      Description copied from interface: Locatable
      Set the URI of this object.
      Specified by:
      setUri in interface Locatable
      Parameters:
      value - The new URI.
    • getLimsid

      public String getLimsid()
      Description copied from interface: LimsEntityLinkable
      Get the LIMS id for this object.
      Specified by:
      getLimsid in interface LimsEntityLinkable<Researcher>
      Returns:
      The LIMS id.
    • setLimsid

      public void setLimsid(String id)
      Description copied from interface: LimsEntityLinkable
      Set the LIMS id for this object.
      Specified by:
      setLimsid in interface LimsEntityLinkable<Researcher>
      Parameters:
      id - The new LIMS id.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLink

      public LimsEntityLink<Researcher> getLink()
      Get a concrete link object to this LimsEntityLinkable entity. This definition simply narrows the type of links returned by classes that implement this interface, as they should all have corresponding LimsEntityLink link classes available.
      Specified by:
      getLink in interface LimsEntityLinkable<Researcher>
      Specified by:
      getLink in interface Linkable<Researcher>
      Returns:
      A LimsEntityLink to this object.