Class ResearcherLink

All Implemented Interfaces:
LimsEntityLink<Researcher>, LimsEntityLinkable<Researcher>, LimsLink<Researcher>, Linkable<Researcher>, Locatable, Serializable

public class ResearcherLink extends LimsEntityLinkBase<Researcher>
Researcher-link is a child element type of researchers and provides a URI linking to 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.
    • uri

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

    • ResearcherLink

      public ResearcherLink()
      Default constructor.
    • ResearcherLink

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

      public ResearcherLink(URI uri, String firstName, String lastName)
      Constructor with URI and names.
      Parameters:
      uri - The URI to the researcher.
      firstName - The researcher's first name.
      lastName - The researcher's last name.
    • ResearcherLink

      public ResearcherLink(Linkable<Researcher> link)
      Constructor from a linkable object.
      Parameters:
      link - The linkable object containing the researcher URI.
    • ResearcherLink

      public ResearcherLink(Researcher researcher)
      Constructor from a researcher object.
      Parameters:
      researcher - The researcher to create the link from.
  • Method Details

    • getEntityClass

      public Class<Researcher> getEntityClass()
      Gets the entity class this link refers to.
      Returns:
      The Researcher class.
    • getFirstName

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

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

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

      public void setLastName(String lastName)
      Sets the researcher's last name.
      Parameters:
      lastName - 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:
    • getUri

      public URI getUri()
      Gets the URI to the researcher.
      Returns:
      The URI.
    • setUri

      public void setUri(URI uri)
      Sets the URI to the researcher.
      Parameters:
      uri - The URI.
    • getLimsid

      public String getLimsid()
      Gets the LIMS id from the URI.
      Returns:
      The LIMS id.
    • setLimsid

      public void setLimsid(String id)
      Sets the LIMS id. This operation does nothing for this link type.
      Parameters:
      id - The LIMS id.
    • toString

      public String toString()
      Returns a string representation of this link.
      Overrides:
      toString in class LimsLinkBase<Researcher>
      Returns:
      The researcher LIMS id and full name of the researcher.
      See Also: