C# Class Mictlanix.BE.Web.Helpers.SecurityHelpers

显示文件 Open project: mictlanix/mbe Class Usage Examples

Public Methods

Method Description
CurrentUser ( this helper ) : User
GetPrivilege ( this user, SystemObjects obj ) : AccessPrivilege
GetPrivilege ( this helper, User user, SystemObjects obj ) : AccessPrivilege

Private Methods

Method Description
DecodeBase64 ( string data ) : byte[]
EncodeBase64 ( byte data ) : string
EncodeBase64 ( string data ) : string
SHA1 ( string text ) : string

Method Details

CurrentUser() public static method

public static CurrentUser ( this helper ) : User
helper this
return User

GetPrivilege() public static method

public static GetPrivilege ( this user, SystemObjects obj ) : AccessPrivilege
user this
obj SystemObjects
return AccessPrivilege

GetPrivilege() public static method

public static GetPrivilege ( this helper, User user, SystemObjects obj ) : AccessPrivilege
helper this
user User
obj SystemObjects
return AccessPrivilege