The role element defines a researcher's level of access in the system. You
can repeat the element to provide a researcher with access to more than one
area of the system. When submitting a PUT request to update a researcher's
credentials (any child elements within the credentials element), your XML
must include the current roles for the researcher. If you do not include all
of the current roles, the system will remove the current data and the
researcher will no longer have access to the system.
When adding a new role you must provide at least one of: URI, name, or roleName.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name for the facility administrator role.static final StringThe name for the researcher role.static final StringThe name for the collaborator role.protected StringThe user-facing name of the security role.protected StringDeprecated.Deprecated from version 2.19.static final StringThe name for the system administrator role.protected URIThe URI to the role. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the entity class this link refers to.getName()The user-facing name of the security role assigned to the researcher.Deprecated.Deprecated from version 2.19.getUri()Get the URI to the role.voidSet the role name.voidsetRoleName(String value) Deprecated.Deprecated from version 2.19.voidSet the URI to the role.toString()Returns a string representation of this role link.Methods inherited from class com.genologics.ri.LimsLinkBase
equals, hashCode
-
Field Details
-
SYSTEM_ADMIN_ROLE
The name for the system administrator role.- See Also:
-
CLARITY_ROLE
The name for the researcher role.- See Also:
-
ADMIN_ROLE
The name for the facility administrator role.- See Also:
-
LABLINK_ROLE
The name for the collaborator role.- See Also:
-
roleName
Deprecated.Deprecated from version 2.19.The role name. Deprecated from version 2.19. -
name
The user-facing name of the security role.- Since:
- 2.19
-
uri
The URI to the role.- Since:
- 2.19
-
-
Constructor Details
-
Role
public Role()Default constructor. -
Role
Constructor with URI.- Parameters:
uri- The URI to the role.
-
Role
Constructor with URI and name.- Parameters:
uri- The URI to the role.name- The name of the role.
-
Role
Constructor from a linkable object.- Parameters:
link- The linkable object containing the role URI.
-
Role
Constructor from another role object.- Parameters:
otherRole- The role to create this role from.
-
-
Method Details
-
getRoleName
Deprecated.Deprecated from version 2.19.The name of the security role assigned to the researcher. Only used by built-in roles. Acceptable values are: "systemadministrator", "administrator", "labtech", and "webclient".- Returns:
- The role name.
-
setRoleName
Deprecated.Deprecated from version 2.19.Set the role name.- Parameters:
value- The role name.
-
getName
The user-facing name of the security role assigned to the researcher. Must be unique.- Returns:
- The role name.
- Since:
- 2.19
-
setName
Set the role name.- Parameters:
name- The role name.- Since:
- 2.19
-
getUri
Get the URI to the role.- Returns:
- The URI.
- Since:
- 2.19
-
setUri
Set the URI to the role.- Parameters:
uri- The URI.- Since:
- 2.19
-
getEntityClass
Gets the entity class this link refers to.- Returns:
- The Role class.
-
toString
Returns a string representation of this role link.- Overrides:
toStringin classLimsLinkBase<Role>- Returns:
- The role URI and name.
- See Also:
-