C# Class AJH.CMS.Core.Data.UserManager

显示文件 Open project: ajhCMS/AJH.CMS.WEB.UI

Public Methods

Method Description
Add ( User user ) : int
CheckIfHasAccessCMS ( string FormCode ) : bool
Delete ( int ID ) : void
DeleteLogical ( int ID ) : void
GetCurrentUser ( ) : User
GetUser ( int ID ) : User
GetUser ( string UserName ) : User
GetUserWithValidation ( string UserName, string Password ) : User
GetUsers ( ) : List
GetUsers ( int RoleID ) : List
GetUsersNotInForm ( int FormID ) : List
GetUsersNotInRole ( int RoleID ) : List
LogOut ( ) : void
LoginIn ( User user, bool WithRoles ) : void
Update ( User user ) : void
UpdateActive ( int ID, bool IsActive ) : void

Method Details

Add() public static method

public static Add ( User user ) : int
user AJH.CMS.Core.Entities.User
return int

CheckIfHasAccessCMS() public static method

public static CheckIfHasAccessCMS ( string FormCode ) : bool
FormCode string
return bool

Delete() public static method

public static Delete ( int ID ) : void
ID int
return void

DeleteLogical() public static method

public static DeleteLogical ( int ID ) : void
ID int
return void

GetCurrentUser() public static method

public static GetCurrentUser ( ) : User
return AJH.CMS.Core.Entities.User

GetUser() public static method

public static GetUser ( int ID ) : User
ID int
return AJH.CMS.Core.Entities.User

GetUser() public static method

public static GetUser ( string UserName ) : User
UserName string
return AJH.CMS.Core.Entities.User

GetUserWithValidation() public static method

public static GetUserWithValidation ( string UserName, string Password ) : User
UserName string
Password string
return AJH.CMS.Core.Entities.User

GetUsers() public static method

public static GetUsers ( ) : List
return List

GetUsers() public static method

public static GetUsers ( int RoleID ) : List
RoleID int
return List

GetUsersNotInForm() public static method

public static GetUsersNotInForm ( int FormID ) : List
FormID int
return List

GetUsersNotInRole() public static method

public static GetUsersNotInRole ( int RoleID ) : List
RoleID int
return List

LogOut() public static method

public static LogOut ( ) : void
return void

LoginIn() public static method

public static LoginIn ( User user, bool WithRoles ) : void
user AJH.CMS.Core.Entities.User
WithRoles bool
return void

Update() public static method

public static Update ( User user ) : void
user AJH.CMS.Core.Entities.User
return void

UpdateActive() public static method

public static UpdateActive ( int ID, bool IsActive ) : void
ID int
IsActive bool
return void