Class BasicRole
java.lang.Object
com.inductiveautomation.ignition.common.role.BasicRole
- All Implemented Interfaces:
Role
A basic implementation of the
Role
interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BasicRole
boolean
getId()
An opaque identifier that can be used to identify this role.getName()
The name of the role.getNotes()
The notes associated with the role.The name of the user management profile this role was retrieved from.int
hashCode()
void
Set the role name.void
Set the notes associated with this role.
-
Constructor Details
-
BasicRole
Construct a newBasicRole
instance.- Parameters:
profileName
- The name of user source profile this role is associated with.id
- The role ID.
-
-
Method Details
-
getId
Description copied from interface:Role
An opaque identifier that can be used to identify this role. Only valid (unique) within the context of the originating user profile -
getName
Description copied from interface:Role
The name of the role. -
getNotes
Description copied from interface:Role
The notes associated with the role. -
getProfileName
Description copied from interface:Role
The name of the user management profile this role was retrieved from.- Specified by:
getProfileName
in interfaceRole
-
setName
Set the role name.- Parameters:
name
- The role name.
-
setNotes
Set the notes associated with this role.- Parameters:
notes
- Notes about this role.
-
equals
-
hashCode
public int hashCode() -
copy
- Parameters:
role
- The role to copy.- Returns:
- A new
BasicRole
with all known fields copied from the given role.
-