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.
Since:
2.19
See Also:
  • Field Details

    • lastName

      protected String lastName
      The last name of the researcher.
    • firstName

      protected String firstName
      The first name of the researcher.
    • uri

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

    • ResearcherLink

      public ResearcherLink()
      Default constructor.
    • ResearcherLink

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

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

      public ResearcherLink(Researcher researcher)
      Constructor from a Researcher entity.
      Parameters:
      researcher - The researcher entity.
  • Method Details

    • getLastName

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

      public void setLastName(String lastName)
      Sets the last name of the researcher.
      Parameters:
      lastName - The researcher's last name.
    • getFirstName

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

      public void setFirstName(String firstName)
      Sets the first name of the researcher.
      Parameters:
      firstName - The researcher's first 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 of the researcher.
      Returns:
      The researcher URI.
    • setUri

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

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

      public void setLimsid(String id)
      Sets the LIMS id. This method does nothing as the id is extracted from the URI.
      Parameters:
      id - The LIMS id (ignored).
    • getEntityClass

      public Class<Researcher> getEntityClass()
      Gets the entity class for this link.
      Returns:
      The Researcher class.
    • 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: