C# 클래스 BinaryStudio.TaskManager.Logic.Core.UserProcessor

The user processor.
상속: IUserProcessor
파일 보기 프로젝트 열기: dv00d00/BinaryStudio.TaskManager 1 사용 예제들

공개 메소드들

메소드 설명
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