DVAccountDeletionStore class
The deletion requests of one deployment, in its database: every process that signs somebody in, or sweeps, reads the same rows.
Constructors
- DVAccountDeletionStore(DVDatabaseAdapter database, {String table = 'dv_account_deletions'})
Properties
- database → DVDatabaseAdapter
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- table → String
-
final
Methods
-
due(
DateTime now, {required DateTime staleBefore}) → Future< List< DVAccountDeletion> > -
Scheduled deletions whose window closed at or before
now, and erasures claimed beforestaleBeforethat never finished. -
find(
String userId) → Future< DVAccountDeletion?> - The account's deletion request, or null when it has none.
-
move(
String userId, {required DVAccountDeletionState from, required DVAccountDeletionState to, DateTime? claimedAt, DateTime? newClaimedAt}) → Future< bool> -
Moves the account's deletion from
fromtoto, only if it is still exactlyfrom-- claimed atclaimedAtwhenfromis erasing -- and answers whether it moved. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
schedule(
String userId, {required DateTime requestedAt, required DateTime dueAt}) → Future< void> - Records a deletion request, replacing any earlier one for the account.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited