C# Class Mhotivo.Logic.SessionLayer

Inheritance: ISessionManagement
Datei anzeigen Open project: armejiaf/Mhotivo

Public Methods

Method Description
CheckSession ( ) : void
GetUserLoggedEmail ( ) : string
GetUserLoggedName ( ) : string
GetUserLoggedRole ( ) : string
LogIn ( string userEmail, string password, bool remember = false ) : bool
LogOut ( bool redirect = false ) : void
SessionLayer ( IUserRepository userRepository ) : System.Globalization

Private Methods

Method Description
UpdateSessionFromUser ( User user ) : void
ValidateUser ( string userName, string password ) : User

Method Details

CheckSession() public method

public CheckSession ( ) : void
return void

GetUserLoggedEmail() public method

public GetUserLoggedEmail ( ) : string
return string

GetUserLoggedName() public method

public GetUserLoggedName ( ) : string
return string

GetUserLoggedRole() public method

public GetUserLoggedRole ( ) : string
return string

LogIn() public method

public LogIn ( string userEmail, string password, bool remember = false ) : bool
userEmail string
password string
remember bool
return bool

LogOut() public method

public LogOut ( bool redirect = false ) : void
redirect bool
return void

SessionLayer() public method

public SessionLayer ( IUserRepository userRepository ) : System.Globalization
userRepository IUserRepository
return System.Globalization