Role class abstract

Role

Properties:

  • id - The unique identifier of the role.
  • name - The unique name of the role, used when assigning roles to users/groups in contexts.
  • displayName - The human readable name for the role.
  • description - A human readable description of the role.
  • permissions - A list of the unique names of the permissions this role grants.
  • schemeManaged - indicates if this role is managed by a scheme (true), or is a custom stand-alone role (false).

Constructors

Role([void updates(RoleBuilder b)])
factory

Properties

description String?
A human readable description of the role.
no setter
displayName String?
The human readable name for the role.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String?
The unique identifier of the role.
no setter
name String?
The unique name of the role, used when assigning roles to users/groups in contexts.
no setter
permissions → BuiltList<String>?
A list of the unique names of the permissions this role grants.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemeManaged bool?
indicates if this role is managed by a scheme (true), or is a custom stand-alone role (false).
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(RoleBuilder)) Role
Rebuilds the instance.
inherited
toBuilder() RoleBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

serializer → Serializer<Role>
no setter