Class PermissionLink

java.lang.Object
com.genologics.ri.LimsLinkBase<Permission>
com.genologics.ri.role.PermissionLink
All Implemented Interfaces:
LimsLink<Permission>, Linkable<Permission>, Locatable, Serializable

public class PermissionLink extends LimsLinkBase<Permission>
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 Details

    • action

      protected String action
      The action associated with the permission.
    • name

      protected String name
      The name of the permission.
    • uri

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

    • PermissionLink

      public PermissionLink()
      Default constructor.
    • PermissionLink

      public PermissionLink(URI uri)
      Constructor with URI.
      Parameters:
      uri - The URI of the permission.
    • PermissionLink

      public PermissionLink(URI uri, String name)
      Constructor with URI and name.
      Parameters:
      uri - The URI of the permission.
      name - The name of the permission.
    • PermissionLink

      public PermissionLink(URI uri, String name, String action)
      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

      public PermissionLink(Permission permission)
      Constructor from a Permission entity.
      Parameters:
      permission - The permission entity.
  • Method Details

    • getAction

      public String getAction()
      Gets the action associated with the permission.
      Returns:
      The permission action.
    • setAction

      public void setAction(String action)
      Sets the action associated with the permission.
      Parameters:
      action - The permission action.
    • getName

      public String getName()
      Gets the name of the permission.
      Returns:
      The permission name.
    • setName

      public void setName(String name)
      Sets the name of the permission.
      Parameters:
      name - The permission name.
    • getUri

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

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

      public Class<Permission> getEntityClass()
      Gets the entity class for this link.
      Returns:
      The Permission class.
    • toString

      public String toString()
      Returns a string representation of this permission link.
      Overrides:
      toString in class LimsLinkBase<Permission>
      Returns:
      The permission URI, name and action.
      See Also: