- All Implemented Interfaces:
LimsLink<Researcher>,Linkable<Researcher>,Locatable,Serializable
Describes a user as required in the context of step escalations.
- Since:
- 2.18
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUserLink()Default constructor.UserLink(Linkable<Researcher> link) Constructor taking a linkable researcher.UserLink(Researcher researcher) Constructor taking a researcher.Constructor taking a URI. -
Method Summary
Modifier and TypeMethodDescriptionGets the entity class for this link.Gets the first name of the user.Gets the last name of the user.getUri()Gets the URI of the researcher resource.voidsetFirstName(String firstName) Sets the first name of the user.voidsetLastName(String lastName) Sets the last name of the user.voidSets the URI of the researcher resource.toString()Returns a string representation of this user link.Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCode
-
Field Details
-
firstName
The first name of the user. -
lastName
The last name of the user. -
uri
The URI of the researcher resource representing the user.
-
-
Constructor Details
-
UserLink
public UserLink()Default constructor. -
UserLink
Constructor taking a URI.- Parameters:
uri- The URI of the user.
-
UserLink
Constructor taking a linkable researcher.- Parameters:
link- The linkable researcher representing the user.- Throws:
NullPointerException- iflinkis null.
-
UserLink
Constructor taking a researcher.- Parameters:
researcher- The researcher representing the user.- Throws:
NullPointerException- ifresearcheris null.
-
-
Method Details
-
getFirstName
Gets the first name of the user.- Returns:
- The first name.
-
setFirstName
Sets the first name of the user.- Parameters:
firstName- The first name.
-
getLastName
Gets the last name of the user.- Returns:
- The last name.
-
setLastName
Sets the last name of the user.- Parameters:
lastName- The last name.
-
getUri
Gets the URI of the researcher resource.- Returns:
- The URI.
-
setUri
Sets the URI of the researcher resource.- Parameters:
uri- The URI.
-
getEntityClass
Gets the entity class for this link.- Returns:
- The Researcher class.
-
toString
Returns a string representation of this user link.- Overrides:
toStringin classLimsLinkBase<Researcher>- Returns:
- The researcher URI and name.
- See Also:
-