Class UserLink

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

public class UserLink extends LimsLinkBase<Researcher>
Describes a user as required in the context of step escalations.
Since:
2.18
See Also:
  • Field Details

    • firstName

      protected String firstName
      The first name of the user.
    • lastName

      protected String lastName
      The last name of the user.
    • uri

      protected URI uri
      The URI of the researcher resource representing the user.
  • Constructor Details

    • UserLink

      public UserLink()
      Default constructor.
    • UserLink

      public UserLink(URI uri)
      Constructor taking a URI.
      Parameters:
      uri - The URI of the user.
    • UserLink

      public UserLink(Linkable<Researcher> link)
      Constructor taking a linkable researcher.
      Parameters:
      link - The linkable researcher representing the user.
      Throws:
      NullPointerException - if link is null.
    • UserLink

      public UserLink(Researcher researcher)
      Constructor taking a researcher.
      Parameters:
      researcher - The researcher representing the user.
      Throws:
      NullPointerException - if researcher is null.
  • Method Details

    • getFirstName

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

      public void setFirstName(String firstName)
      Sets the first name of the user.
      Parameters:
      firstName - The first name.
    • getLastName

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

      public void setLastName(String lastName)
      Sets the last name of the user.
      Parameters:
      lastName - The last name.
    • getUri

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

      public void setUri(URI uri)
      Sets the URI of the researcher resource.
      Parameters:
      uri - The URI.
    • 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 user link.
      Overrides:
      toString in class LimsLinkBase<Researcher>
      Returns:
      The researcher URI and name.
      See Also: