C# 클래스 Skimur.App.Services.Impl.MembershipService

상속: IMembershipService
파일 보기 프로젝트 열기: skimur/skimur

공개 메소드들

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