C# Class Affecto.IdentityManagement.ApplicationServices.UserService

Inheritance: IUserService
ファイルを表示 Open project: affecto/dotnet-IdentityManagement Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AddUser() public method

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
return System.Guid

AddUser() public method

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
return System.Guid

GetUser() public method

public GetUser ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType accountType ) : IUser
accountName string
accountType Affecto.IdentityManagement.Interfaces.Model.AccountType
return IUser

IsExistingUserAccount() public method

public IsExistingUserAccount ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType accountType ) : bool
accountName string
accountType Affecto.IdentityManagement.Interfaces.Model.AccountType
return bool

IsMatchingPassword() public method

public IsMatchingPassword ( string accountName, string password ) : bool
accountName string
password string
return bool

UpdateUserGroupsAndRoles() public method

public UpdateUserGroupsAndRoles ( string accountName, Affecto.IdentityManagement.Interfaces.Model.AccountType accountType, IEnumerable authenticatedGroups ) : void
accountName string
accountType Affecto.IdentityManagement.Interfaces.Model.AccountType
authenticatedGroups IEnumerable
return void

UserService() public method

public UserService ( IQueryService queryService, Lazy commandBus ) : System
queryService IQueryService
commandBus Lazy
return System