Method | 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 ) : |
The get user.
|
|
GetUserByLinkedInId ( string linkedinId ) : |
The get user by linked in id.
|
|
GetUserByName ( string userName ) : |
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 |
public ChangePassword ( int userId, string oldPassword, string newPassword ) : bool | ||
userId | int | /// The user id. /// |
oldPassword | string | /// The old password. /// |
newPassword | string | /// The new password. /// |
return | bool |
public CreateUser ( string userName, string password, string email, string linkedInId, byte imageData, string imageMimeType ) : bool | ||
userName | string | /// The user name. /// |
password | string | /// The password. /// |
string | /// The email. /// | |
linkedInId | string | /// The linked in id. /// |
imageData | byte | /// The image data. /// |
imageMimeType | string | /// The image mime type. /// |
return | bool |
public GetUser ( int userId ) : |
||
userId | int | /// The user id. /// |
return |
public GetUserByLinkedInId ( string linkedinId ) : |
||
linkedinId | string | /// The linkedIn id. /// |
return |
public GetUserByName ( string userName ) : |
||
userName | string | /// The user name. /// |
return |
public GetUserByTaskId ( int taskId ) : int? | ||
taskId | int | /// The task id. /// |
return | int? |
public IsAdmin ( string userName ) : bool | ||
userName | string | /// The user name. /// |
return | bool |
public LogOnUser ( string userName, string password ) : bool | ||
userName | string | /// The user name. /// |
password | string | /// The password. /// |
return | bool |
public SetRoleToUser ( string userName, string roleName ) : void | ||
userName | string | /// The user name. /// |
roleName | string | /// The role name. /// |
return | void |
public SetRoleToUserFromDB ( string userName ) : void | ||
userName | string | /// The user name. /// |
return | void |
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. /// |
return | void |
public UserProcessor ( IUserRepository userRepository, ICryptoProvider cryptoProvider, ITaskProcessor taskProcessor ) : System | ||
userRepository | IUserRepository | |
cryptoProvider | ICryptoProvider | |
taskProcessor | ITaskProcessor | |
return | System |