Cutelyst  2.1.0
Public Member Functions | List of all members
Cutelyst::StoreMinimal Class Reference
Inheritance diagram for Cutelyst::StoreMinimal:
Inheritance graph
[legend]

Public Member Functions

 StoreMinimal (const QString &idField, QObject *parent=nullptr)
 
void addUser (const AuthenticationUser &user)
 
virtual AuthenticationUser findUser (Context *c, const ParamsMultiMap &userInfo) final
 
virtual QVariant forSession (Context *c, const AuthenticationUser &user) final
 
virtual AuthenticationUser fromSession (Context *c, const QVariant &frozenUser) final
 
- Public Member Functions inherited from Cutelyst::AuthenticationStore
 AuthenticationStore (QObject *parent=nullptr)
 
virtual AuthenticationUser autoCreateUser (Context *c, const ParamsMultiMap &userinfo) const
 
virtual AuthenticationUser autoUpdateUser (Context *c, const ParamsMultiMap &userinfo) const
 
virtual bool canAutoCreateUser () const
 
virtual bool canAutoUpdateUser () const
 

Detailed Description

Definition at line 27 of file minimal.h.

Constructor & Destructor Documentation

StoreMinimal::StoreMinimal ( const QString &  idField,
QObject *  parent = nullptr 
)
explicit

Constructs a new minimal authentication store object with the given parent.

Definition at line 24 of file minimal.cpp.

Member Function Documentation

void StoreMinimal::addUser ( const AuthenticationUser user)

Appends the user to internal memory storage

Definition at line 35 of file minimal.cpp.

AuthenticationUser StoreMinimal::findUser ( Context c,
const ParamsMultiMap userInfo 
)
finalvirtual

Reimplemented from AuthenticationStore::findUser().

Implements Cutelyst::AuthenticationStore.

Definition at line 41 of file minimal.cpp.

Referenced by fromSession().

QVariant StoreMinimal::forSession ( Context c,
const AuthenticationUser user 
)
finalvirtual

Reimplemented from AuthenticationStore::forSession().

Reimplemented from Cutelyst::AuthenticationStore.

Definition at line 58 of file minimal.cpp.

References Cutelyst::AuthenticationUser::id().

AuthenticationUser StoreMinimal::fromSession ( Context c,
const QVariant &  frozenUser 
)
finalvirtual

Reimplemented from AuthenticationStore::fromSession().

Reimplemented from Cutelyst::AuthenticationStore.

Definition at line 63 of file minimal.cpp.

References findUser().