C# Class BinaryStudio.TaskManager.Logic.Core.UserProcessor

The user processor.
Inheritance: IUserProcessor
Afficher le fichier Open project: dv00d00/BinaryStudio.TaskManager Class Usage Examples

Méthodes publiques

Méthode Description
ChangePassword ( int userId, string oldPassword, string newPassword ) : bool

The change password.

CreateUser ( string userName, string password, string email, string linkedInId, byte imageData, string imageMimeType ) : bool

The create user.

GetAllUsers ( ) : IEnumerable

The get all users.

GetUser ( int userId ) : User

The get user.

GetUserByLinkedInId ( string linkedinId ) : User

The get user by linked in id.

GetUserByName ( string userName ) : User

The get user by name.

GetUserByTaskId ( int taskId ) : int?

The get user by task id.

IsAdmin ( string userName ) : bool

Verification, is user in role "admin"

LogOnUser ( string userName, string password ) : bool

The log on user.

SetRoleToUser ( string userName, string roleName ) : void

The set role to user.

SetRoleToUserFromDB ( string userName ) : void

The set role to user from db.

UpdateUsersPhoto ( int userId, byte imageData, string imageMimeType ) : void

The update users photo.

UserProcessor ( IUserRepository userRepository, ICryptoProvider cryptoProvider, ITaskProcessor taskProcessor ) : System

Method Details

ChangePassword() public méthode

The change password.
public ChangePassword ( int userId, string oldPassword, string newPassword ) : bool
userId int /// The user id. ///
oldPassword string /// The old password. ///
newPassword string /// The new password. ///
Résultat bool

CreateUser() public méthode

The create user.
public CreateUser ( string userName, string password, string email, string linkedInId, byte imageData, string imageMimeType ) : bool
userName string /// The user name. ///
password string /// The password. ///
email string /// The email. ///
linkedInId string /// The linked in id. ///
imageData byte /// The image data. ///
imageMimeType string /// The image mime type. ///
Résultat bool

GetAllUsers() public méthode

The get all users.
public GetAllUsers ( ) : IEnumerable
Résultat IEnumerable

GetUser() public méthode

The get user.
public GetUser ( int userId ) : User
userId int /// The user id. ///
Résultat BinaryStudio.TaskManager.Logic.Domain.User

GetUserByLinkedInId() public méthode

The get user by linked in id.
public GetUserByLinkedInId ( string linkedinId ) : User
linkedinId string /// The linkedIn id. ///
Résultat BinaryStudio.TaskManager.Logic.Domain.User

GetUserByName() public méthode

The get user by name.
public GetUserByName ( string userName ) : User
userName string /// The user name. ///
Résultat BinaryStudio.TaskManager.Logic.Domain.User

GetUserByTaskId() public méthode

The get user by task id.
public GetUserByTaskId ( int taskId ) : int?
taskId int /// The task id. ///
Résultat int?

IsAdmin() public méthode

Verification, is user in role "admin"
public IsAdmin ( string userName ) : bool
userName string /// The user name. ///
Résultat bool

LogOnUser() public méthode

The log on user.
public LogOnUser ( string userName, string password ) : bool
userName string /// The user name. ///
password string /// The password. ///
Résultat bool

SetRoleToUser() public méthode

The set role to user.
public SetRoleToUser ( string userName, string roleName ) : void
userName string /// The user name. ///
roleName string /// The role name. ///
Résultat void

SetRoleToUserFromDB() public méthode

The set role to user from db.
public SetRoleToUserFromDB ( string userName ) : void
userName string /// The user name. ///
Résultat void

UpdateUsersPhoto() public méthode

The update users photo.
public UpdateUsersPhoto ( int userId, byte imageData, string imageMimeType ) : void
userId int /// The user id. ///
imageData byte /// The image data. ///
imageMimeType string /// The image mime type. ///
Résultat void

UserProcessor() public méthode

public UserProcessor ( IUserRepository userRepository, ICryptoProvider cryptoProvider, ITaskProcessor taskProcessor ) : System
userRepository IUserRepository
cryptoProvider ICryptoProvider
taskProcessor ITaskProcessor
Résultat System