Class Role

java.lang.Object
com.genologics.ri.role.Role
All Implemented Interfaces:
Linkable<Role>, Locatable, Serializable

public class Role extends Object implements Linkable<Role>, Serializable
The detailed representation of a Role
Since:
2.19
See Also:
  • Field Details

    • name

      protected String name
      The name of the role.
    • researchers

      protected List<ResearcherLink> researchers
      The list of researchers assigned to this role.
    • permissions

      protected List<PermissionLink> permissions
      The list of permissions assigned to this role.
    • builtIn

      protected Boolean builtIn
      Whether this is a built-in system role.
    • uri

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

    • Role

      public Role()
      Default constructor.
    • Role

      public Role(URI uri)
      Constructor with URI.
      Parameters:
      uri - The URI of the role.
    • Role

      public Role(URI uri, String name)
      Constructor with URI and name.
      Parameters:
      uri - The URI of the role.
      name - The name of the role.
  • Method Details

    • getName

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

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

      public List<ResearcherLink> getResearchers()
      Gets the list of researchers assigned to this role.
      Returns:
      A list of researcher links.
    • getPermissions

      public List<PermissionLink> getPermissions()
      Gets the list of permissions assigned to this role.
      Returns:
      A list of permission links.
    • getBuiltIn

      public Boolean getBuiltIn()
      Gets whether this is a built-in system role.
      Returns:
      True if this is a built-in role, false otherwise.
    • setBuiltIn

      public void setBuiltIn(Boolean builtIn)
      Sets whether this is a built-in system role.
      Parameters:
      builtIn - True if this is a built-in role, false otherwise.
    • getUri

      public URI getUri()
      Gets the URI of the role.
      Specified by:
      getUri in interface Locatable
      Returns:
      The role URI.
    • setUri

      public void setUri(URI uri)
      Sets the URI of the role.
      Specified by:
      setUri in interface Locatable
      Parameters:
      uri - The role URI.
    • getLink

      public LimsLink<Role> getLink()
      Get a concrete link object to this Linkable thing.
      Specified by:
      getLink in interface Linkable<Role>
      Returns:
      A LimsLink to this object.