C# Класс BinaryStudio.TaskManager.Logic.Core.UserProcessor

The user processor.
Наследование: IUserProcessor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

ChangePassword() публичный Метод

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. ///
Результат bool

CreateUser() публичный Метод

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. ///
Результат bool

GetAllUsers() публичный Метод

The get all users.
public GetAllUsers ( ) : IEnumerable
Результат IEnumerable

GetUser() публичный Метод

The get user.
public GetUser ( int userId ) : User
userId int /// The user id. ///
Результат BinaryStudio.TaskManager.Logic.Domain.User

GetUserByLinkedInId() публичный Метод

The get user by linked in id.
public GetUserByLinkedInId ( string linkedinId ) : User
linkedinId string /// The linkedIn id. ///
Результат BinaryStudio.TaskManager.Logic.Domain.User

GetUserByName() публичный Метод

The get user by name.
public GetUserByName ( string userName ) : User
userName string /// The user name. ///
Результат BinaryStudio.TaskManager.Logic.Domain.User

GetUserByTaskId() публичный Метод

The get user by task id.
public GetUserByTaskId ( int taskId ) : int?
taskId int /// The task id. ///
Результат int?

IsAdmin() публичный Метод

Verification, is user in role "admin"
public IsAdmin ( string userName ) : bool
userName string /// The user name. ///
Результат bool

LogOnUser() публичный Метод

The log on user.
public LogOnUser ( string userName, string password ) : bool
userName string /// The user name. ///
password string /// The password. ///
Результат bool

SetRoleToUser() публичный Метод

The set role to user.
public SetRoleToUser ( string userName, string roleName ) : void
userName string /// The user name. ///
roleName string /// The role name. ///
Результат void

SetRoleToUserFromDB() публичный Метод

The set role to user from db.
public SetRoleToUserFromDB ( string userName ) : void
userName string /// The user name. ///
Результат void

UpdateUsersPhoto() публичный Метод

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. ///
Результат void

UserProcessor() публичный Метод

public UserProcessor ( IUserRepository userRepository, ICryptoProvider cryptoProvider, ITaskProcessor taskProcessor ) : System
userRepository IUserRepository
cryptoProvider ICryptoProvider
taskProcessor ITaskProcessor
Результат System