C# Класс Affecto.IdentityManagement.ApplicationServices.UserService

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

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

Метод Описание
AddUser ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType type, string displayName, IEnumerable authenticatedGroups ) : System.Guid
AddUser ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType type, string displayName, IEnumerable authenticatedGroups, string>.IEnumerable customProperties ) : System.Guid
GetUser ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType accountType ) : IUser
IsExistingUserAccount ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType accountType ) : bool
IsMatchingPassword ( string accountName, string password ) : bool
UpdateUserGroupsAndRoles ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType accountType, IEnumerable authenticatedGroups ) : void
UserService ( IQueryService queryService, Lazy commandBus ) : System

Приватные методы

Метод Описание
AddGroup ( System.Guid userId, System.Guid groupId ) : void
AddRole ( System.Guid userId, System.Guid roleId ) : void
GetGroupsWithExternalGroup ( IReadOnlyCollection groups ) : IEnumerable
GetRolesWithExternalGroup ( IReadOnlyCollection roles ) : IEnumerable
RemoveGroup ( System.Guid userId, System.Guid groupId ) : void
RemoveRole ( System.Guid userId, System.Guid roleId ) : void
SetRolesAndGroups ( System.Guid userId, IEnumerable authenticatedGroups ) : void
SetUserGroups ( System.Guid userId, IReadOnlyList authenticatedGroups ) : void
SetUserRoles ( System.Guid userId, IReadOnlyList authenticatedGroups ) : void

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

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

public AddUser ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType type, string displayName, IEnumerable authenticatedGroups ) : System.Guid
accountName string
type Affecto.IdentityManagement.Interfaces.Model.AccountType
displayName string
authenticatedGroups IEnumerable
Результат System.Guid

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

public AddUser ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType type, string displayName, IEnumerable authenticatedGroups, string>.IEnumerable customProperties ) : System.Guid
accountName string
type Affecto.IdentityManagement.Interfaces.Model.AccountType
displayName string
authenticatedGroups IEnumerable
customProperties string>.IEnumerable
Результат System.Guid

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

public GetUser ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType accountType ) : IUser
accountName string
accountType Affecto.IdentityManagement.Interfaces.Model.AccountType
Результат IUser

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

public IsExistingUserAccount ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType accountType ) : bool
accountName string
accountType Affecto.IdentityManagement.Interfaces.Model.AccountType
Результат bool

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

public IsMatchingPassword ( string accountName, string password ) : bool
accountName string
password string
Результат bool

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

public UpdateUserGroupsAndRoles ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType accountType, IEnumerable authenticatedGroups ) : void
accountName string
accountType Affecto.IdentityManagement.Interfaces.Model.AccountType
authenticatedGroups IEnumerable
Результат void

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

public UserService ( IQueryService queryService, Lazy commandBus ) : System
queryService IQueryService
commandBus Lazy
Результат System