C# Класс Skimur.App.Services.Impl.MembershipService

Наследование: IMembershipService
Показать файл Открыть проект

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

Метод Описание
AddRemoteLogin ( System.Guid userId, string loginProvider, string loginKey ) : void

Add a remote login for a user

AddUserToRole ( System.Guid userId, System.Guid roleId ) : bool
CanChangedEmail ( System.Guid userId, string email ) : bool
DeleteRole ( System.Guid roleId ) : bool
DeleteUser ( System.Guid userId ) : bool
FindUserByExternalLogin ( string loginProvider, string loginKey ) : User

Find a user by an external login

GetAllUsers ( int skip = null, int take = null ) : SeekedList

All the users in the system

GetRemoteLoginsForUser ( System.Guid userId ) : IList

Get logins for user

GetRoleById ( System.Guid id ) : Role
GetRoleByName ( string roleName ) : Role
GetRoles ( ) : IList
GetUserByEmail ( string emailAddress ) : User
GetUserById ( System.Guid userId ) : User
GetUserByUserName ( string userName ) : User
GetUserRoles ( System.Guid userId ) : IList
GetUsersByIds ( List ids ) : List

Get a list of users by ids

InsertRole ( Role role ) : bool
InsertUser ( User user ) : bool
IsEmailValid ( string email ) : bool
IsInRole ( System.Guid userId, System.Guid roleId ) : bool
IsPasswordValid ( string password ) : bool
IsUserNameValid ( string userName ) : bool
MembershipService ( IDbConnectionProvider conn, IPasswordManager passwordManager ) : System
RemoveRemoteLogin ( System.Guid userId, string loginProvider, string loginKey ) : void

Remove a remote login from a user

RemoveUserFromRole ( System.Guid userId, System.Guid roleId ) : bool
ResetAccessFailedCount ( System.Guid userId ) : void

Reset the access failed count for the user

UpdateRole ( Role role ) : bool
UpdateUser ( User user ) : bool
UpdateUserAvatar ( System.Guid userId, string avatarIdentifier ) : void

Updates the user's avatar identifier.

UpdateUserProfile ( System.Guid userId, string fullName, string bio, string url, string location ) : void

Updates just profile data about a user

ValidateUser ( User user ) : UserValidationResult

Validate the user (update or insert)

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

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

Add a remote login for a user
public AddRemoteLogin ( System.Guid userId, string loginProvider, string loginKey ) : void
userId System.Guid
loginProvider string
loginKey string
Результат void

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

public AddUserToRole ( System.Guid userId, System.Guid roleId ) : bool
userId System.Guid
roleId System.Guid
Результат bool

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

public CanChangedEmail ( System.Guid userId, string email ) : bool
userId System.Guid
email string
Результат bool

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

public DeleteRole ( System.Guid roleId ) : bool
roleId System.Guid
Результат bool

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

public DeleteUser ( System.Guid userId ) : bool
userId System.Guid
Результат bool

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

Find a user by an external login
public FindUserByExternalLogin ( string loginProvider, string loginKey ) : User
loginProvider string
loginKey string
Результат User

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

All the users in the system
public GetAllUsers ( int skip = null, int take = null ) : SeekedList
skip int
take int
Результат SeekedList

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

Get logins for user
public GetRemoteLoginsForUser ( System.Guid userId ) : IList
userId System.Guid
Результат IList

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

public GetRoleById ( System.Guid id ) : Role
id System.Guid
Результат Role

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

public GetRoleByName ( string roleName ) : Role
roleName string
Результат Role

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

public GetRoles ( ) : IList
Результат IList

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

public GetUserByEmail ( string emailAddress ) : User
emailAddress string
Результат User

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

public GetUserById ( System.Guid userId ) : User
userId System.Guid
Результат User

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

public GetUserByUserName ( string userName ) : User
userName string
Результат User

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

public GetUserRoles ( System.Guid userId ) : IList
userId System.Guid
Результат IList

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

Get a list of users by ids
public GetUsersByIds ( List ids ) : List
ids List
Результат List

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

public InsertRole ( Role role ) : bool
role Role
Результат bool

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

public InsertUser ( User user ) : bool
user User
Результат bool

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

public IsEmailValid ( string email ) : bool
email string
Результат bool

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

public IsInRole ( System.Guid userId, System.Guid roleId ) : bool
userId System.Guid
roleId System.Guid
Результат bool

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

public IsPasswordValid ( string password ) : bool
password string
Результат bool

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

public IsUserNameValid ( string userName ) : bool
userName string
Результат bool

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

public MembershipService ( IDbConnectionProvider conn, IPasswordManager passwordManager ) : System
conn IDbConnectionProvider
passwordManager IPasswordManager
Результат System

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

Remove a remote login from a user
public RemoveRemoteLogin ( System.Guid userId, string loginProvider, string loginKey ) : void
userId System.Guid
loginProvider string
loginKey string
Результат void

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

public RemoveUserFromRole ( System.Guid userId, System.Guid roleId ) : bool
userId System.Guid
roleId System.Guid
Результат bool

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

Reset the access failed count for the user
public ResetAccessFailedCount ( System.Guid userId ) : void
userId System.Guid
Результат void

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

public UpdateRole ( Role role ) : bool
role Role
Результат bool

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

public UpdateUser ( User user ) : bool
user User
Результат bool

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

Updates the user's avatar identifier.
public UpdateUserAvatar ( System.Guid userId, string avatarIdentifier ) : void
userId System.Guid The user identifier.
avatarIdentifier string The avatar identifier.
Результат void

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

Updates just profile data about a user
public UpdateUserProfile ( System.Guid userId, string fullName, string bio, string url, string location ) : void
userId System.Guid The user identifier.
fullName string The full name.
bio string The bio.
url string The URL.
location string The location.
Результат void

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

Validate the user (update or insert)
public ValidateUser ( User user ) : UserValidationResult
user User
Результат UserValidationResult