C# Class CodeGarten.Data.Access.UserManager

Afficher le fichier Open project: CodeGarten/CodeGarten Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public ChangeEmail ( string name, string newEmail ) : void
name string
newEmail string
Résultat void

ChangePassword() public méthode

public ChangePassword ( string name, string newPassword ) : void
name string
newPassword string
Résultat void

Create() public méthode

public Create ( string name, string password, string email ) : User
name string
password string
email string
Résultat CodeGarten.Data.Model.User

Delete() public méthode

public Delete ( string userName ) : void
userName string
Résultat void

Disenroll() public méthode

public Disenroll ( string user, long structure, long container, string roleType ) : bool
user string
structure long
container long
roleType string
Résultat bool

Enroll() public méthode

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

Get() public méthode

public Get ( string user ) : User
user string
Résultat CodeGarten.Data.Model.User

GetAll() public méthode

public GetAll ( ) : IQueryable
Résultat IQueryable

GetEnrolls() public méthode

public GetEnrolls ( string userName ) : IQueryable
userName string
Résultat IQueryable

Search() public méthode

public Search ( string query ) : IQueryable
query string
Résultat IQueryable

UserManager() public méthode

public UserManager ( DataBaseManager db ) : System
db DataBaseManager
Résultat System