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 BasicRolebooleangetId()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.inthashCode()voidSet the role name.voidSet the notes associated with this role.
-
Constructor Details
-
BasicRole
Construct a newBasicRoleinstance.- Parameters:
profileName- The name of user source profile this role is associated with.id- The role ID.
-
-
Method Details
-
getId
Description copied from interface:RoleAn 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:RoleThe name of the role. -
getNotes
Description copied from interface:RoleThe notes associated with the role. -
getProfileName
Description copied from interface:RoleThe name of the user management profile this role was retrieved from.- Specified by:
getProfileNamein 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
BasicRolewith all known fields copied from the given role.
-