Class PermissionLink

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

public class PermissionLink extends LimsLinkBase<Permission>
Permission-link provides a URI linking to the detailed representation of a permission.
Since:
2.19
See Also:
  • Field Details

    • action

      protected String action
      The permission action.
    • name

      protected String name
      The permission name.
    • 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 permission URI.
    • PermissionLink

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

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

    • getAction

      public String getAction()
      Get the permission action.
      Returns:
      The permission action.
    • setAction

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

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

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

      public URI getUri()
      Get the URI of the object we are linking to.
      Returns:
      The URI.
    • setUri

      public void setUri(URI uri)
      Set the URI of this object.
      Parameters:
      uri - The new URI.
    • getEntityClass

      public Class<Permission> getEntityClass()
      Get the class of the true, full LIMS entity this object links to.
      Returns:
      The real object 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: