UserDto class
- Available extensions
Constructors
-
UserDto({required String id, String? rev, int? deletionDate, int? created, String? name, Set<
PropertyStubDto> properties = const {}, Set<PermissionDto> permissions = const {}, Set<String> roles = const {}, UserDtoTypeEnum? type, UserDtoStatusEnum? status, String? login, String? passwordHash, String? secret, bool? use2fa, String? groupId, String? healthcarePartyId, String? patientId, String? deviceId, Map<String, Set< autoDelegations = const {}, DateTime? createdDate, DateTime? termsOfUseDate, String? email, String? mobilePhone, Map<String> >String, String> applicationTokens = const {}, Map<String, AuthenticationTokenDto> authenticationTokens = const {}}) - Returns a new UserDto instance.
Properties
-
applicationTokens
↔ Map<
String, String> -
getter/setter pair
-
authenticationTokens
↔ Map<
String, AuthenticationTokenDto> -
Encrypted and time-limited Authentication tokens used for inter-applications authentication
getter/setter pair
-
autoDelegations
↔ Map<
String, Set< String> > -
Delegations that are automatically generated client side when a new database object is created by this user
getter/setter pair
- created ↔ int?
-
Please note: This property should have been non-nullable! Since the specification file
does not include a default value (using the "default:" property), however, the generated
source code must fall back to having a nullable type.
Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
- createdDate ↔ DateTime?
-
the timestamp (unix epoch in ms) of creation of the user, will be filled automatically if missing. Not enforced by the application server.
getter/setter pair
- deletionDate ↔ int?
-
hard delete (unix epoch in ms) timestamp of the object. Filled automatically when deletePatient is called.
getter/setter pair
- deviceId ↔ String?
-
Id of the device if the user is a device
getter/setter pair
- email ↔ String?
-
email address of the user (used for token exchange or password recovery).
getter/setter pair
- groupId ↔ String?
-
id of the group (practice/hospital) the user is member of
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- healthcarePartyId ↔ String?
-
Id of the healthcare party if the user is a healthcare party.
getter/setter pair
- id ↔ String
-
the Id of the user. We encourage using either a v4 UUID or a HL7 Id.
getter/setter pair
- login ↔ String?
-
Username for this user. We encourage using an email address
getter/setter pair
- mobilePhone ↔ String?
-
mobile phone of the user (used for token exchange or password recovery).
getter/setter pair
- name ↔ String?
-
Last name of the user. This is the official last name that should be used for official administrative purposes.
getter/setter pair
- passwordHash ↔ String?
-
Hashed version of the password (BCrypt is used for hashing)
getter/setter pair
- patientId ↔ String?
-
Id of the patient if the user is a patient
getter/setter pair
-
permissions
↔ Set<
PermissionDto> -
If permission to modify patient data is granted or revoked
getter/setter pair
-
properties
↔ Set<
PropertyStubDto> -
Extra properties for the user. Those properties are typed (see class Property)
getter/setter pair
- rev ↔ String?
-
the revision of the user in the database, used for conflict management / optimistic locking.
getter/setter pair
-
roles
↔ Set<
String> -
Roles specified for the user
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secret ↔ String?
-
Secret token used to verify 2fa
getter/setter pair
- status ↔ UserDtoStatusEnum?
-
State of user's activeness: 'Active', 'Disabled' or 'Registering'
getter/setter pair
- termsOfUseDate ↔ DateTime?
-
the timestamp (unix epoch in ms) of the latest validation of the terms of use of the application
getter/setter pair
- type ↔ UserDtoTypeEnum?
-
Authorization source for user. 'Database', 'ldap' or 'token'
getter/setter pair
- use2fa ↔ bool?
-
Whether the user has activated two factors authentication
getter/setter pair
Methods
-
dataOwnerId(
) → String? -
Available on UserDto, provided by the UserDataOwner extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → UserDto? -
Returns a new UserDto instance and imports its values from
value
if it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< UserDto> ? -
mapFromJson(
dynamic json) → Map< String, UserDto> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< UserDto> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.