Cutelyst  1.8.0
Public Member Functions | Protected Member Functions | List of all members
Cutelyst::RoleACL Class Reference
Inheritance diagram for Cutelyst::RoleACL:
Inheritance graph
[legend]

Public Member Functions

 RoleACL (QObject *parent=nullptr)
 
virtual bool aroundExecute (Context *c, QStack< Component * > stack) override
 
bool canVisit (Context *c) const
 
virtual bool init (Application *application, const QVariantHash &args) override
 
virtual Modifiers modifiers () const override
 
- Public Member Functions inherited from Cutelyst::Component
 Component (QObject *parent=nullptr)
 
bool execute (Context *c)
 
QString name () const
 
QString reverse () const
 
void setName (const QString &name)
 
void setReverse (const QString &reverse)
 

Protected Member Functions

virtual bool dispatcherReady (const Dispatcher *dispatcher, Controller *controller) override
 
- Protected Member Functions inherited from Cutelyst::Component
virtual bool afterExecute (Context *c)
 
void applyRoles (const QStack< Component * > &roles)
 
virtual bool beforeExecute (Context *c)
 
virtual bool doExecute (Context *c)
 

Additional Inherited Members

- Public Types inherited from Cutelyst::Component
enum  Modifier {
  None, OnlyExecute, BeforeExecute, AroundExecute,
  AfterExecute
}
 

Detailed Description

Definition at line 33 of file roleacl.h.

Constructor & Destructor Documentation

Cutelyst::RoleACL::RoleACL ( QObject *  parent = nullptr)
explicit

Constructs a new role ACL object with the given parent.

Member Function Documentation

virtual bool Cutelyst::RoleACL::aroundExecute ( Context c,
QStack< Component * >  stack 
)
overridevirtual

Reimplemented from Component::aroundExecute().

Reimplemented from Cutelyst::Component.

bool Cutelyst::RoleACL::canVisit ( Context c) const

Returns true if the action can be visited by the context c.

virtual bool Cutelyst::RoleACL::dispatcherReady ( const Dispatcher dispatcher,
Controller controller 
)
overrideprotectedvirtual

Reimplemented from Component::dispatcherReady().

Reimplemented from Cutelyst::Component.

virtual bool Cutelyst::RoleACL::init ( Application application,
const QVariantHash &  args 
)
overridevirtual

Reimplemented from Component::init().

Reimplemented from Cutelyst::Component.

virtual Modifiers Cutelyst::RoleACL::modifiers ( ) const
overridevirtual

Reimplemented from Component::modifiers().

Reimplemented from Cutelyst::Component.