Protected
Readonly
accountPrivate
Readonly
expirationPrivate
Readonly
loggerProtected
Readonly
loginProtected
Readonly
storageProtected
checkProtected
cleanCreates an object of the given type. The storage will generate an identifier for the newly created object.
The type to create.
The value to set for the created object.
A representation of the newly created object, including its new identifier.
Protected
createCreates an index on a key of the given type, to allow for better queries involving those keys. Similar to IndexedStorage.defineType these calls need to happen first.
The type to create an index on.
The key of that type to create an index on.
Defines a type in the storage, just like in an IndexedStorage, but additionally it needs to be indicated if the type corresponds to a login method or not.
Type to define.
Description of the type.
Whether this type corresponds to a login method or not.
Deletes the given object. This will also delete all objects that reference that object if the corresponding key is not optional.
The type of the object to delete.
The identifier of the object.
Returns an iterator over all objects of the given type.
The type to iterate over.
Finds all objects matching a specific IndexedQuery.
The type of objects to find.
The query to execute.
A list of objects matching the query.
Similar to IndexedStorage.find, but only returns the identifiers of the found objects.
The type of objects to find.
The query to execute.
A list of identifiers of the matching objects.
Returns the object of the given type with the given identifier.
The type of object to get.
The identifier of that object.
A representation of the object, or undefined
if there is no object of that type with that identifier.
Sets the value of a specific object. The identifier in the object is used to identify the object.
The type of the object to set.
The new value for the object.
Sets the value of one specific field in an object.
The type of the object to update.
The identifier of the object to update.
The key to update.
The new value for the given key.
A LoginStorage that wraps around another IndexedStorage to add specific account requirements.
All of this is tracked by adding a new field to the account object, that keeps track of how many login objects are associated with the account.