Class TBasicUserManagement
Unit
Declaration
type TBasicUserManagement = class(TComponent)
Description
TBasicUserManagement
Hierarchy
- TComponent
- TBasicUserManagement
Overview
Fields
FLoggedUser:Boolean; |
|
FCurrentUserName:UTF8String; |
|
FCurrentUserLogin:UTF8String; |
|
FUID:Integer; |
|
FLoggedSince:TDateTime; |
|
FInactiveTimeOut:Cardinal; |
|
FLoginRetries:Cardinal; |
|
FFrozenTime:Cardinal; |
|
FVirtualKeyboardType:TVKType; |
|
FSuccessfulLogin:TNotifyEvent; |
|
FFailureLogin:TNotifyEvent; |
|
FUserChanged:TUserChangedEvent; |
|
FRegisteredSecurityCodes:TStringList; |
|
frmLogin:TpsHMIfrmUserAuthentication; |
|
frmCheckIfUserIsAllowed:TpsHMIfrmUserAuthentication; |
Methods
function GetLoginTime:TDateTime; |
|
procedure SetInactiveTimeOut(t:Cardinal); |
|
procedure UnfreezeLogin(Sender:TObject); |
|
function GetUID: Integer; |
|
procedure DoUserChanged; virtual; |
|
procedure DoSuccessfulLogin; virtual; |
|
procedure DoFailureLogin; virtual; |
|
function CheckUserAndPassword(User, Pass:UTF8String; var UserID:Integer; LoginAction:Boolean):Boolean; virtual; |
|
function GetLoggedUser:Boolean; virtual; |
|
function GetCurrentUserName:UTF8String; virtual; |
|
function GetCurrentUserLogin:UTF8String; virtual; |
|
function CanAccess(sc:UTF8String; aUID:Integer):Boolean; virtual; overload; |
|
constructor Create(AOwner:TComponent); override; |
|
destructor Destroy; override; |
|
function Login:Boolean; virtual; overload; |
|
function Login(Userlogin, userpassword: UTF8String; var UID: Integer):Boolean; virtual; |
|
procedure Logout; virtual; |
|
procedure Manage; virtual; |
|
procedure ValidateSecurityCode(sc:UTF8String); virtual; |
|
function SecurityCodeExists(sc:UTF8String):Boolean; virtual; |
|
procedure RegisterSecurityCode(sc:UTF8String); virtual; |
|
procedure UnregisterSecurityCode(sc:UTF8String); virtual; |
|
function CanAccess(sc:UTF8String):Boolean; virtual; |
|
function GetRegisteredAccessCodes:TStringList; virtual; |
|
function CheckIfUserIsAllowed(sc: UTF8String; RequireUserLogin: Boolean; var userlogin: UTF8String): Boolean; virtual; |
Properties
property LoggedSince: TDateTime read GetLoginTime; |
|
property InactiveTimeout: Cardinal read FInactiveTimeOut write SetInactiveTimeOut; |
|
property LoginRetries: Cardinal read FLoginRetries write FLoginRetries; |
|
property LoginFrozenTime: Cardinal read FFrozenTime write FFrozenTime; |
|
property SuccessfulLogin: TNotifyEvent read FSuccessfulLogin write FSuccessfulLogin; |
|
property FailureLogin: TNotifyEvent read FFailureLogin write FFailureLogin; |
|
property UserChanged: TUserChangedEvent read FUserChanged write FUserChanged; |
|
property UID: Integer read GetUID; |
|
property UserLogged: Boolean read GetLoggedUser; |
|
property CurrentUserName: UTF8String read GetCurrentUserName; |
|
property CurrentUserLogin: UTF8String read GetCurrentUserLogin; |
Description
Fields
FLoggedUser:Boolean; |
|
FCurrentUserName:UTF8String; |
|
FCurrentUserLogin:UTF8String; |
|
FUID:Integer; |
|
FLoggedSince:TDateTime; |
|
FInactiveTimeOut:Cardinal; |
|
FLoginRetries:Cardinal; |
|
FFrozenTime:Cardinal; |
|
FVirtualKeyboardType:TVKType; |
|
FSuccessfulLogin:TNotifyEvent; |
|
FFailureLogin:TNotifyEvent; |
|
FUserChanged:TUserChangedEvent; |
|
FRegisteredSecurityCodes:TStringList; |
|
frmLogin:TpsHMIfrmUserAuthentication; |
|
frmCheckIfUserIsAllowed:TpsHMIfrmUserAuthentication; |
|
Methods
function GetLoginTime:TDateTime; |
|
procedure SetInactiveTimeOut(t:Cardinal); |
|
procedure UnfreezeLogin(Sender:TObject); |
|
function GetUID: Integer; |
|
procedure DoUserChanged; virtual; |
|
procedure DoSuccessfulLogin; virtual; |
|
procedure DoFailureLogin; virtual; |
|
function CheckUserAndPassword(User, Pass:UTF8String; var UserID:Integer; LoginAction:Boolean):Boolean; virtual; |
|
function GetLoggedUser:Boolean; virtual; |
|
function GetCurrentUserName:UTF8String; virtual; |
|
function GetCurrentUserLogin:UTF8String; virtual; |
|
function CanAccess(sc:UTF8String; aUID:Integer):Boolean; virtual; overload; |
|
constructor Create(AOwner:TComponent); override; |
|
destructor Destroy; override; |
|
function Login:Boolean; virtual; overload; |
|
function Login(Userlogin, userpassword: UTF8String; var UID: Integer):Boolean; virtual; |
|
procedure Logout; virtual; |
|
procedure Manage; virtual; |
|
procedure ValidateSecurityCode(sc:UTF8String); virtual; |
|
Security codes management |
function SecurityCodeExists(sc:UTF8String):Boolean; virtual; |
|
procedure RegisterSecurityCode(sc:UTF8String); virtual; |
|
procedure UnregisterSecurityCode(sc:UTF8String); virtual; |
|
function CanAccess(sc:UTF8String):Boolean; virtual; |
|
function GetRegisteredAccessCodes:TStringList; virtual; |
|
function CheckIfUserIsAllowed(sc: UTF8String; RequireUserLogin: Boolean; var userlogin: UTF8String): Boolean; virtual; |
|
Properties
property LoggedSince: TDateTime read GetLoginTime; |
|
read only properties. |
property InactiveTimeout: Cardinal read FInactiveTimeOut write SetInactiveTimeOut; |
|
read-write properties. property VirtualKeyboardType:TVKType read FVirtualKeyboardType write FVirtualKeyboardType; |
property LoginRetries: Cardinal read FLoginRetries write FLoginRetries; |
|
property LoginFrozenTime: Cardinal read FFrozenTime write FFrozenTime; |
|
property SuccessfulLogin: TNotifyEvent read FSuccessfulLogin write FSuccessfulLogin; |
|
property FailureLogin: TNotifyEvent read FFailureLogin write FFailureLogin; |
|
property UserChanged: TUserChangedEvent read FUserChanged write FUserChanged; |
|
property UID: Integer read GetUID; |
|
read only properties. |
property UserLogged: Boolean read GetLoggedUser; |
|
property CurrentUserName: UTF8String read GetCurrentUserName; |
|
property CurrentUserLogin: UTF8String read GetCurrentUserLogin; |
|
Generated by PasDoc 0.14.0.