ManagedAuthResourceOwner<T> class
Null safety
REQUIRED: An OAuth 2.0 Resource Owner as a ManagedObject.
An application using this library must declare a ManagedObject subclass that implements this type. This type will represent instances of a resource owner in an application. For example,
class User extends ManagedObject<_User> implements _User, ManagedAuthResourceOwner {}
class _User extends ManagedAuthenticatable { ... }
Note that this interface is made up of both ResourceOwnerTableDefinition and ManagedObject. The type declaring this as an interface must extend ManagedObject and implement a table definition that extends ResourceOwnerTableDefinition. Since all ManagedObject subclasses extend their table definition, this interface requirement is met.
- Implemented types
Constructors
Properties
- backing ↔ ManagedBacking
-
The persistent values of this object.
read / writeinherited
- entity ↔ ManagedEntity
-
The ManagedEntity this instance is described by.
read / writeinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- hashedPassword ↔ String?
-
The hashed password of a resource owner.
read / writeinherited
- id ↔ int?
-
The primary key of a resource owner.
read / writeinherited
- modelFieldIncludeIfNull → bool
-
latefinalinherited
-
properties
↔ Map<
String?, ManagedPropertyDescription?> -
IMPROVEMENT: Cache of entity.properties to reduce property loading time
read / writeinherited
-
responseKeyProperties
↔ Map<
String?, ManagedPropertyDescription?> -
Cache of entity.properties using ResponseKey name as key, in case no ResponseKey is set then default property name is used as key
read / writeinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- salt ↔ String?
-
The salt for hashedPassword.
read / writeinherited
-
tokens
↔ ManagedSet<
ManagedAuthToken> ? -
The list of tokens issue for this resource owner.
read / writeinherited
- username ↔ String?
-
The username of a resource owner.
read / writeinherited
Methods
-
asMap(
) → Map< String, dynamic> -
Converts this instance into a serializable map.
inherited
-
documentSchema(
APIDocumentContext context) → APISchemaObject -
Returns an
APISchemaObject
describing this object's type.inherited -
hasValueForProperty(
String propertyName) → bool -
Checks whether or not a property has been set in this instances' backing.
inherited
-
mapKeyName(
String propertyName) → String -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
read(
Map< String, dynamic> object, {Iterable<String> ? accept, Iterable<String> ? ignore, Iterable<String> ? reject, Iterable<String> ? require}) → void -
Reads values from
object
, after applying filters.inherited -
readFromMap(
Map< String, dynamic> object) → void -
Reads values from
object
.inherited -
removePropertiesFromBackingMap(
List< String> propertyNames) → void -
Removes multiple properties from backing.
inherited
-
removePropertyFromBackingMap(
String? propertyName) → void -
Removes a property from backing.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
{Validating forEvent = Validating.insert}) → ValidationContext -
Validates an object according to its property Validate metadata.
inherited
-
willInsert(
) → void -
Callback to modify an object prior to inserting it with a Query.
inherited
-
willUpdate(
) → void -
Callback to modify an object prior to updating it with a Query.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String? propertyName) → dynamic -
Retrieves a value by property name from backing.
inherited
-
operator []=(
String? propertyName, dynamic value) → void -
Sets a value by property name in backing.
inherited