Cutelyst  1.5.0
Public Member Functions | Protected Member Functions | Protected Attributes | 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
 name More...
 
QString reverse () const
 name More...
 
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)
 

Protected Attributes

RoleACLPrivate * d_ptr
 
- Protected Attributes inherited from Cutelyst::Component
ComponentPrivate * d_ptr
 

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.

Member Function Documentation

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

Called by dispatcher once it's done preparing actions

Subclasses might want to implement this to cache special actions, such as special methods for REST actions

Reimplemented from Cutelyst::Component.

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

A Does class is always attached to an action, if this method returns false the application will fail to start. Often useful if the user misconfigured the settings

Reimplemented from Cutelyst::Component.