C# Class Skimur.App.Services.Impl.MembershipService

Inheritance: IMembershipService
Afficher le fichier Open project: skimur/skimur

Méthodes publiques

Méthode Description
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)

Method Details

AddRemoteLogin() public méthode

Add a remote login for a user
public AddRemoteLogin ( System.Guid userId, string loginProvider, string loginKey ) : void
userId System.Guid
loginProvider string
loginKey string
Résultat void

AddUserToRole() public méthode

public AddUserToRole ( System.Guid userId, System.Guid roleId ) : bool
userId System.Guid
roleId System.Guid
Résultat bool

CanChangedEmail() public méthode

public CanChangedEmail ( System.Guid userId, string email ) : bool
userId System.Guid
email string
Résultat bool

DeleteRole() public méthode

public DeleteRole ( System.Guid roleId ) : bool
roleId System.Guid
Résultat bool

DeleteUser() public méthode

public DeleteUser ( System.Guid userId ) : bool
userId System.Guid
Résultat bool

FindUserByExternalLogin() public méthode

Find a user by an external login
public FindUserByExternalLogin ( string loginProvider, string loginKey ) : User
loginProvider string
loginKey string
Résultat User

GetAllUsers() public méthode

All the users in the system
public GetAllUsers ( int skip = null, int take = null ) : SeekedList
skip int
take int
Résultat SeekedList

GetRemoteLoginsForUser() public méthode

Get logins for user
public GetRemoteLoginsForUser ( System.Guid userId ) : IList
userId System.Guid
Résultat IList

GetRoleById() public méthode

public GetRoleById ( System.Guid id ) : Role
id System.Guid
Résultat Role

GetRoleByName() public méthode

public GetRoleByName ( string roleName ) : Role
roleName string
Résultat Role

GetRoles() public méthode

public GetRoles ( ) : IList
Résultat IList

GetUserByEmail() public méthode

public GetUserByEmail ( string emailAddress ) : User
emailAddress string
Résultat User

GetUserById() public méthode

public GetUserById ( System.Guid userId ) : User
userId System.Guid
Résultat User

GetUserByUserName() public méthode

public GetUserByUserName ( string userName ) : User
userName string
Résultat User

GetUserRoles() public méthode

public GetUserRoles ( System.Guid userId ) : IList
userId System.Guid
Résultat IList

GetUsersByIds() public méthode

Get a list of users by ids
public GetUsersByIds ( List ids ) : List
ids List
Résultat List

InsertRole() public méthode

public InsertRole ( Role role ) : bool
role Role
Résultat bool

InsertUser() public méthode

public InsertUser ( User user ) : bool
user User
Résultat bool

IsEmailValid() public méthode

public IsEmailValid ( string email ) : bool
email string
Résultat bool

IsInRole() public méthode

public IsInRole ( System.Guid userId, System.Guid roleId ) : bool
userId System.Guid
roleId System.Guid
Résultat bool

IsPasswordValid() public méthode

public IsPasswordValid ( string password ) : bool
password string
Résultat bool

IsUserNameValid() public méthode

public IsUserNameValid ( string userName ) : bool
userName string
Résultat bool

MembershipService() public méthode

public MembershipService ( IDbConnectionProvider conn, IPasswordManager passwordManager ) : System
conn IDbConnectionProvider
passwordManager IPasswordManager
Résultat System

RemoveRemoteLogin() public méthode

Remove a remote login from a user
public RemoveRemoteLogin ( System.Guid userId, string loginProvider, string loginKey ) : void
userId System.Guid
loginProvider string
loginKey string
Résultat void

RemoveUserFromRole() public méthode

public RemoveUserFromRole ( System.Guid userId, System.Guid roleId ) : bool
userId System.Guid
roleId System.Guid
Résultat bool

ResetAccessFailedCount() public méthode

Reset the access failed count for the user
public ResetAccessFailedCount ( System.Guid userId ) : void
userId System.Guid
Résultat void

UpdateRole() public méthode

public UpdateRole ( Role role ) : bool
role Role
Résultat bool

UpdateUser() public méthode

public UpdateUser ( User user ) : bool
user User
Résultat bool

UpdateUserAvatar() public méthode

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.
Résultat void

UpdateUserProfile() public méthode

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.
Résultat void

ValidateUser() public méthode

Validate the user (update or insert)
public ValidateUser ( User user ) : UserValidationResult
user User
Résultat UserValidationResult