C# Class Mhotivo.Implement.Repositories.SessionManagementRepository

Inheritance: ISessionManagementRepository
显示文件 Open project: armejiaf/Mhotivo

Public Methods

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

Private Methods

Method Description
UpdateSessionFromUser ( User user ) : void

Method Details

CheckSession() public method

public CheckSession ( ) : void
return void

GetUserLoggedEmail() public method

public GetUserLoggedEmail ( ) : string
return string

GetUserLoggedId() public method

public GetUserLoggedId ( ) : 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 redirect = true ) : bool
userEmail string
password string
remember bool
redirect bool
return bool

LogOut() public method

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

SessionManagementRepository() public method

public SessionManagementRepository ( IUserRepository userRepository, IPeopleRepository peopleRepository ) : System.Globalization
userRepository IUserRepository
peopleRepository IPeopleRepository
return System.Globalization