Public Types | Public Member Functions | List of all members
iauth::CUserLoginComp Class Reference

Implementation of user login allowing to get rights for current logged user. More...

#include <CUserLoginComp.h>

Inheritance diagram for iauth::CUserLoginComp:
icomp::CComponentBase iauth::ILogin iauth::IRightsProvider icomp::IComponent istd::IChangeable istd::IChangeable istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic

Public Types

typedef icomp::CComponentBase BaseClass
 
 Data model change notification flags. More...

Public Member Functions

virtual CUserGetLoggedUser () const
 Returns the currently logged on user. More...
 
virtual bool Login (const QString &userName, const QString &password)
 Log in user. More...
 
virtual bool Logout ()
 Log in user. More...
 
virtual bool HasRight (const QByteArray &operationId, bool beQuiet=false) const
 Checks if user has rights for specific operation. More...
 
- Public Member Functions inherited from icomp::IComponent
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const =0
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")=0
 
virtual const IComponentContextGetComponentContext () const =0
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)=0
 

Detailed Description

Implementation of user login allowing to get rights for current logged user.

Definition at line 22 of file CUserLoginComp.h.

Member Typedef Documentation

Definition at line 28 of file CUserLoginComp.h.

Member Function Documentation

virtual CUser* iauth::CUserLoginComp::GetLoggedUser ( ) const
virtual

Returns the currently logged on user.

Returns
user is currently logged on, or NULL, if no user is logged.

Implements iauth::ILogin.

virtual bool iauth::CUserLoginComp::HasRight ( const QByteArray &  operationId,
bool  beQuiet = false 
) const
virtual

Checks if user has rights for specific operation.

Parameters
operationIdid of operation.
beQuietif it is true, user can not be asked for password during this check.

Implements iauth::IRightsProvider.

virtual bool iauth::CUserLoginComp::Login ( const QString &  userName,
const QString &  password 
)
virtual

Log in user.

Returns
true, if user is accepted.

Implements iauth::ILogin.

virtual bool iauth::CUserLoginComp::Logout ( )
virtual

Log in user.

Returns
true, if logout successful.

Implements iauth::ILogin.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy