java.lang.Object
com.genologics.ri.role.Role
- All Implemented Interfaces:
Linkable<Role>,Locatable,Serializable
The detailed representation of a Role
- Since:
- 2.19
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BooleanWhether this is a built-in system role.protected StringThe name of the role.protected List<PermissionLink>The list of permissions assigned to this role.protected List<ResearcherLink>The list of researchers assigned to this role.protected URIThe URI of the role. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets whether this is a built-in system role.getLink()Get a concrete link object to thisLinkablething.getName()Gets the name of the role.Gets the list of permissions assigned to this role.Gets the list of researchers assigned to this role.getUri()Gets the URI of the role.voidsetBuiltIn(Boolean builtIn) Sets whether this is a built-in system role.voidSets the name of the role.voidSets the URI of the role.
-
Field Details
-
name
The name of the role. -
researchers
The list of researchers assigned to this role. -
permissions
The list of permissions assigned to this role. -
builtIn
Whether this is a built-in system role. -
uri
The URI of the role.
-
-
Constructor Details
-
Role
public Role()Default constructor. -
Role
Constructor with URI.- Parameters:
uri- The URI of the role.
-
Role
Constructor with URI and name.- Parameters:
uri- The URI of the role.name- The name of the role.
-
-
Method Details
-
getName
Gets the name of the role.- Returns:
- The role name.
-
setName
Sets the name of the role.- Parameters:
name- The role name.
-
getResearchers
Gets the list of researchers assigned to this role.- Returns:
- A list of researcher links.
-
getPermissions
Gets the list of permissions assigned to this role.- Returns:
- A list of permission links.
-
getBuiltIn
Gets whether this is a built-in system role.- Returns:
- True if this is a built-in role, false otherwise.
-
setBuiltIn
Sets whether this is a built-in system role.- Parameters:
builtIn- True if this is a built-in role, false otherwise.
-
getUri
Gets the URI of the role. -
setUri
Sets the URI of the role. -
getLink
Get a concrete link object to thisLinkablething.
-