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
      The researcher's first name.
    • lastName

      protected String lastName
      The researcher's last name.
    • phone

      protected String phone
      The researcher's phone number.
    • fax

      protected String fax
      The researcher's fax number.
    • email

      protected String email
      The researcher's email address.
    • lab

      protected LabLink lab
      Link to the researcher's lab.
    • type

      protected UDT type
      The user-defined type for the researcher.
    • fields

      protected List<UDF> fields
      The user-defined fields for the researcher.
    • externalIds

      protected List<ExternalId> externalIds
      The external identifiers for the researcher.
    • credentials

      protected Credentials credentials
      The researcher's credentials.
    • initials

      protected String initials
      The researcher's initials.
    • uri

      protected URI uri
      The URI to the researcher.
  • Constructor Details

    • Researcher

      public Researcher()
      Default constructor.
    • Researcher

      public Researcher(URI uri)
      Constructor with URI.
      Parameters:
      uri - The URI to the researcher.
  • Method Details

    • getFirstName

      public String getFirstName()
      Gets the researcher's first name.
      Returns:
      The first name.
    • setFirstName

      public void setFirstName(String value)
      Sets the researcher's first name.
      Parameters:
      value - The first name.
    • getLastName

      public String getLastName()
      Gets the researcher's last name.
      Returns:
      The last name.
    • setLastName

      public void setLastName(String value)
      Sets the researcher's last name.
      Parameters:
      value - The last name.
    • 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()
      Gets the researcher's phone number.
      Returns:
      The phone number.
    • setPhone

      public void setPhone(String value)
      Sets the researcher's phone number.
      Parameters:
      value - The phone number.
    • getFax

      public String getFax()
      Gets the researcher's fax number.
      Returns:
      The fax number.
    • setFax

      public void setFax(String value)
      Sets the researcher's fax number.
      Parameters:
      value - The fax number.
    • getEmail

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

      public void setEmail(String value)
      Sets the researcher's email address.
      Parameters:
      value - The email address.
    • getLab

      public LabLink getLab()
      Gets the link to the researcher's lab.
      Returns:
      The lab link.
    • setLab

      public void setLab(Linkable<Lab> link)
      Sets the link to the researcher's lab.
      Parameters:
      link - The linkable object containing the lab.
    • getUserDefinedType

      public UDT getUserDefinedType()
      Gets the user-defined type for the researcher.
      Returns:
      The user-defined type.
    • setUserDefinedType

      public UDT setUserDefinedType(UDT value)
      Sets the user-defined type for the researcher.
      Parameters:
      value - The user-defined type.
      Returns:
      The user-defined type that was set.
    • setUserDefinedType

      public UDT setUserDefinedType(String type)
      Sets the user-defined type for the researcher.
      Parameters:
      type - The name of the user-defined type.
      Returns:
      The newly created user-defined type.
    • getUserDefinedFields

      public List<UDF> getUserDefinedFields()
      Gets the list of user-defined fields for the researcher.
      Specified by:
      getUserDefinedFields in interface UDFHolder
      Returns:
      The list of user-defined fields.
    • getExternalIds

      public List<ExternalId> getExternalIds()
      Gets the list of external identifiers for the researcher.
      Returns:
      The list of external identifiers.
    • getCredentials

      public Credentials getCredentials()
      Gets the researcher's credentials.
      Returns:
      The credentials.
    • setCredentials

      public void setCredentials(Credentials value)
      Sets the researcher's credentials.
      Parameters:
      value - The credentials.
    • getInitials

      public String getInitials()
      Gets the researcher's initials.
      Returns:
      The initials.
    • setInitials

      public void setInitials(String value)
      Sets the researcher's initials.
      Parameters:
      value - The initials.
    • getUri

      public URI getUri()
      Gets the URI to the researcher.
      Specified by:
      getUri in interface Locatable
      Returns:
      The URI.
    • setUri

      public void setUri(URI value)
      Sets the URI to the researcher.
      Specified by:
      setUri in interface Locatable
      Parameters:
      value - The URI.
    • getLimsid

      public String getLimsid()
      Gets the LIMS id from the URI.
      Specified by:
      getLimsid in interface LimsEntityLinkable<Researcher>
      Returns:
      The LIMS id.
    • setLimsid

      public void setLimsid(String id)
      Sets the LIMS id. This operation does nothing for this entity.
      Specified by:
      setLimsid in interface LimsEntityLinkable<Researcher>
      Parameters:
      id - The LIMS id.
    • toString

      public String toString()
      Gets a string representation of the researcher.
      Overrides:
      toString in class Object
      Returns:
      A string containing the LIMS id, first name, and last name.
    • 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.