C# Class Affecto.IdentityManagement.Store.EntityFramework.DbRepository

Inheritance: IDbRepository
Exibir arquivo Open project: affecto/dotnet-IdentityManagement

Public Methods

Method Description
AccountExists ( AccountType type, string name ) : bool
AddGroup ( System.Guid id, string name, string description, string externalGroupName ) : void
AddOrganization ( System.Guid id, string name, string description ) : void
AddRole ( System.Guid id, string name, string description, string externalGroupName ) : void
AddUser ( System.Guid id, string name ) : void
AddUser ( System.Guid id, string name, string>.IReadOnlyCollection customProperties ) : void
AddUserAccount ( System.Guid userId, AccountType type, string name, string password = null ) : void
DbRepository ( IDbContext dbContext ) : System
GetGroup ( System.Guid id ) : Group
GetGroupWithUsers ( System.Guid id ) : Group
GetOrganization ( System.Guid id ) : Organization
GetPermission ( System.Guid id ) : Permission
GetRole ( System.Guid id ) : Role
GetRoleWithPermissions ( System.Guid id ) : Role
GetUser ( System.Guid id ) : User
GetUserAccount ( System.Guid userId, AccountType type ) : Account
GetUserWithRoles ( System.Guid id ) : User
GroupExists ( string name ) : bool
OrganizationExists ( string name ) : bool
RemoveUsers ( ) : void
RoleExists ( string name ) : bool
SaveChanges ( ) : void

Method Details

AccountExists() public method

public AccountExists ( AccountType type, string name ) : bool
type AccountType
name string
return bool

AddGroup() public method

public AddGroup ( System.Guid id, string name, string description, string externalGroupName ) : void
id System.Guid
name string
description string
externalGroupName string
return void

AddOrganization() public method

public AddOrganization ( System.Guid id, string name, string description ) : void
id System.Guid
name string
description string
return void

AddRole() public method

public AddRole ( System.Guid id, string name, string description, string externalGroupName ) : void
id System.Guid
name string
description string
externalGroupName string
return void

AddUser() public method

public AddUser ( System.Guid id, string name ) : void
id System.Guid
name string
return void

AddUser() public method

public AddUser ( System.Guid id, string name, string>.IReadOnlyCollection customProperties ) : void
id System.Guid
name string
customProperties string>.IReadOnlyCollection
return void

AddUserAccount() public method

public AddUserAccount ( System.Guid userId, AccountType type, string name, string password = null ) : void
userId System.Guid
type AccountType
name string
password string
return void

DbRepository() public method

public DbRepository ( IDbContext dbContext ) : System
dbContext IDbContext
return System

GetGroup() public method

public GetGroup ( System.Guid id ) : Group
id System.Guid
return Affecto.IdentityManagement.Store.Model.Group

GetGroupWithUsers() public method

public GetGroupWithUsers ( System.Guid id ) : Group
id System.Guid
return Affecto.IdentityManagement.Store.Model.Group

GetOrganization() public method

public GetOrganization ( System.Guid id ) : Organization
id System.Guid
return Affecto.IdentityManagement.Store.Model.Organization

GetPermission() public method

public GetPermission ( System.Guid id ) : Permission
id System.Guid
return Affecto.IdentityManagement.Store.Model.Permission

GetRole() public method

public GetRole ( System.Guid id ) : Role
id System.Guid
return Affecto.IdentityManagement.Store.Model.Role

GetRoleWithPermissions() public method

public GetRoleWithPermissions ( System.Guid id ) : Role
id System.Guid
return Affecto.IdentityManagement.Store.Model.Role

GetUser() public method

public GetUser ( System.Guid id ) : User
id System.Guid
return User

GetUserAccount() public method

public GetUserAccount ( System.Guid userId, AccountType type ) : Account
userId System.Guid
type AccountType
return Account

GetUserWithRoles() public method

public GetUserWithRoles ( System.Guid id ) : User
id System.Guid
return User

GroupExists() public method

public GroupExists ( string name ) : bool
name string
return bool

OrganizationExists() public method

public OrganizationExists ( string name ) : bool
name string
return bool

RemoveUsers() public method

public RemoveUsers ( ) : void
return void

RoleExists() public method

public RoleExists ( string name ) : bool
name string
return bool

SaveChanges() public method

public SaveChanges ( ) : void
return void