- All Implemented Interfaces:
LimsLink<Permission>,Linkable<Permission>,Locatable,Serializable
Permission-link provides a URI linking to the detailed representation of a permission.
- Since:
- 2.19
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PermissionLink(Permission permission) Constructor from a permission.PermissionLink(URI uri) Constructor with URI.PermissionLink(URI uri, String name, String action) Constructor with URI, name and action. -
Method Summary
Modifier and TypeMethodDescriptionGet the permission action.Get the class of the true, full LIMS entity this object links to.getName()Get the permission name.getUri()Get the URI of the object we are linking to.voidSet the permission action.voidSet the permission name.voidSet the URI of this object.toString()Returns a string representation of this permission link.Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCode
-
Field Details
-
action
The permission action. -
name
The permission name. -
uri
The URI of the permission.
-
-
Constructor Details
-
PermissionLink
public PermissionLink()Default constructor. -
PermissionLink
Constructor with URI.- Parameters:
uri- The permission URI.
-
PermissionLink
Constructor with URI, name and action.- Parameters:
uri- The permission URI.name- The permission name.action- The permission action.
-
PermissionLink
Constructor from a permission.- Parameters:
permission- The permission.
-
-
Method Details
-
getAction
Get the permission action.- Returns:
- The permission action.
-
setAction
Set the permission action.- Parameters:
action- The permission action.
-
getName
Get the permission name.- Returns:
- The permission name.
-
setName
Set the permission name.- Parameters:
name- The permission name.
-
getUri
Get the URI of the object we are linking to.- Returns:
- The URI.
-
setUri
Set the URI of this object.- Parameters:
uri- The new URI.
-
getEntityClass
Get the class of the true, full LIMS entity this object links to.- Returns:
- The real object class.
-
toString
Returns a string representation of this permission link.- Overrides:
toStringin classLimsLinkBase<Permission>- Returns:
- The permission URI, name and action.
- See Also:
-