- All Implemented Interfaces:
LimsLink<Permission>,Linkable<Permission>,Locatable,Serializable
Permission-link is a child element type of permissions and 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 entity.PermissionLink(URI uri) Constructor with URI.PermissionLink(URI uri, String name) Constructor with URI and name.PermissionLink(URI uri, String name, String action) Constructor with URI, name, and action. -
Method Summary
Modifier and TypeMethodDescriptionGets the action associated with the permission.Gets the entity class for this link.getName()Gets the name of the permission.getUri()Gets the URI of the permission.voidSets the action associated with the permission.voidSets the name of the permission.voidSets the URI of the permission.toString()Returns a string representation of this permission link.Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCode
-
Field Details
-
action
The action associated with the permission. -
name
The name of the permission. -
uri
The URI of the permission.
-
-
Constructor Details
-
PermissionLink
public PermissionLink()Default constructor. -
PermissionLink
Constructor with URI.- Parameters:
uri- The URI of the permission.
-
PermissionLink
Constructor with URI and name.- Parameters:
uri- The URI of the permission.name- The name of the permission.
-
PermissionLink
Constructor with URI, name, and action.- Parameters:
uri- The URI of the permission.name- The name of the permission.action- The action associated with the permission.
-
PermissionLink
Constructor from a Permission entity.- Parameters:
permission- The permission entity.
-
-
Method Details
-
getAction
Gets the action associated with the permission.- Returns:
- The permission action.
-
setAction
Sets the action associated with the permission.- Parameters:
action- The permission action.
-
getName
Gets the name of the permission.- Returns:
- The permission name.
-
setName
Sets the name of the permission.- Parameters:
name- The permission name.
-
getUri
Gets the URI of the permission.- Returns:
- The permission URI.
-
setUri
Sets the URI of the permission.- Parameters:
uri- The permission URI.
-
getEntityClass
Gets the entity class for this link.- Returns:
- The Permission class.
-
toString
Returns a string representation of this permission link.- Overrides:
toStringin classLimsLinkBase<Permission>- Returns:
- The permission URI, name and action.
- See Also:
-