C# Class CodeGarten.Data.Access.UserManager

显示文件 Open project: CodeGarten/CodeGarten Class Usage Examples

Public Methods

Method Description
ChangeEmail ( string name, string newEmail ) : void
ChangePassword ( string name, string newPassword ) : void
Create ( string name, string password, string email ) : User
Delete ( string userName ) : void
Disenroll ( string user, long structure, long container, string roleType ) : bool
Enroll ( string user, long structure, long container, string roleType, string password = null ) : bool
Get ( string user ) : User
GetAll ( ) : IQueryable
GetEnrolls ( string userName ) : IQueryable
Search ( string query ) : IQueryable
UserManager ( DataBaseManager db ) : System

Private Methods

Method Description
EnrollInherited ( User user, Container container, RoleType roleType ) : bool
ExisteRole ( Container container, RoleType roleType ) : bool
InheritedDisenroll ( User user, Container container, RoleType roleType ) : bool
InheritedDisenrollChilds ( User user, Container container, RoleType roleType ) : void
InheritedDisenrollParents ( User user, Container container, RoleType roleType ) : void
InheritedEnrollChilds ( User user, Container container, RoleType roleType ) : void
InheritedEnrollParents ( User user, Container container, RoleType roleType ) : void
InvokeOnCreateUser ( User user, string passwordPlainText ) : void
InvokeOnDisenrollUser ( Enroll enroll, Container container ) : void
InvokeOnEnrollUser ( Enroll enroll ) : void
InvokeOnRemoveUser ( User user ) : void
InvokeOnUserChangePassword ( User user, string passwordPlainText ) : void
PermissionToEnroll ( Container container, RoleType roleType, RoleBarrier roleBarrier ) : bool
SyncronizeEnrolls ( Container container ) : void

Method Details

ChangeEmail() public method

public ChangeEmail ( string name, string newEmail ) : void
name string
newEmail string
return void

ChangePassword() public method

public ChangePassword ( string name, string newPassword ) : void
name string
newPassword string
return void

Create() public method

public Create ( string name, string password, string email ) : User
name string
password string
email string
return CodeGarten.Data.Model.User

Delete() public method

public Delete ( string userName ) : void
userName string
return void

Disenroll() public method

public Disenroll ( string user, long structure, long container, string roleType ) : bool
user string
structure long
container long
roleType string
return bool

Enroll() public method

public Enroll ( string user, long structure, long container, string roleType, string password = null ) : bool
user string
structure long
container long
roleType string
password string
return bool

Get() public method

public Get ( string user ) : User
user string
return CodeGarten.Data.Model.User

GetAll() public method

public GetAll ( ) : IQueryable
return IQueryable

GetEnrolls() public method

public GetEnrolls ( string userName ) : IQueryable
userName string
return IQueryable

Search() public method

public Search ( string query ) : IQueryable
query string
return IQueryable

UserManager() public method

public UserManager ( DataBaseManager db ) : System
db DataBaseManager
return System