Cutelyst  2.13.0
Public Member Functions | List of all members
Cutelyst::StoreMinimal Class Reference
Inheritance diagram for Cutelyst::StoreMinimal:
Inheritance graph

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::StoreMinimal ( const QString &  idField,
QObject *  parent = nullptr 

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

Definition at line 24 of file minimal.cpp.

Member Function Documentation

◆ addUser()

void StoreMinimal::addUser ( const AuthenticationUser user)

Appends the user to internal memory storage

Definition at line 35 of file minimal.cpp.

◆ findUser()

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

Reimplemented from AuthenticationStore::findUser().

Implements Cutelyst::AuthenticationStore.

Definition at line 41 of file minimal.cpp.

Referenced by fromSession().

◆ forSession()

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

Reimplemented from AuthenticationStore::forSession().

Reimplemented from Cutelyst::AuthenticationStore.

Definition at line 58 of file minimal.cpp.

References Cutelyst::AuthenticationUser::id().

◆ fromSession()

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

Reimplemented from AuthenticationStore::fromSession().

Reimplemented from Cutelyst::AuthenticationStore.

Definition at line 63 of file minimal.cpp.

References findUser().