public PermissionGrantDataSeedProvider(IPermissionGrantRepository repository, ICurrentTenant currentTenant, ISystemBaseRepository <PermissionDefinition> permission, ISystemBaseRepository <PermissionGroupDefinition> permissionGroup) { _repository = repository; _currentTenant = currentTenant; _permission = permission; _permissionGroup = permissionGroup; }
protected PermissionManagementProvider( IPermissionGrantRepository permissionGrantRepository, ICurrentTenant currentTenant) { PermissionGrantRepository = permissionGrantRepository; CurrentTenant = currentTenant; }
public PermissionStore( IPermissionGrantRepository permissionGrantRepository, IDistributedCache <PermissionGrantCacheItem> cache) { PermissionGrantRepository = permissionGrantRepository; Cache = cache; }
public PermissionManager( IPermissionDefinitionManager permissionDefinitionManager, IPermissionStateManager permissionStateManager, IPermissionGrantRepository permissionGrantRepository, IServiceProvider serviceProvider, IGuidGenerator guidGenerator, IOptions <PermissionManagementOptions> options, ICurrentTenant currentTenant, IDistributedCache <PermissionGrantCacheItem> cache) { GuidGenerator = guidGenerator; CurrentTenant = currentTenant; Cache = cache; PermissionStateManager = permissionStateManager; PermissionGrantRepository = permissionGrantRepository; PermissionDefinitionManager = permissionDefinitionManager; Options = options.Value; _lazyProviders = new Lazy <List <IPermissionManagementProvider> >( () => Options .ManagementProviders .Select(c => serviceProvider.GetRequiredService(c) as IPermissionManagementProvider) .ToList(), true ); }
private const string CacheKeyFormat = "pn:{0},pk:{1},n:{2}"; //<object-type>:<id>:<field1>.<field2> Or <object-type>:<id>:<field1>-<field2> public PermissionStore(IPermissionGrantRepository repository, IPermissionDefinitionManager permissionDefinitionManager, IDistributedCache distributedCache, ILogger <PermissionStore> logger) { _repository = repository; _permissionDefinitionManager = permissionDefinitionManager; _distributedCache = distributedCache; _logger = logger ?? NullLogger <PermissionStore> .Instance; }
public PermissionDataSeeder( IPermissionGrantRepository permissionGrantRepository, IGuidGenerator guidGenerator) { PermissionGrantRepository = permissionGrantRepository; GuidGenerator = guidGenerator; }
public RoleUpdateEventHandler( IPermissionManager permissionManager, IPermissionGrantRepository permissionGrantRepository) { PermissionManager = permissionManager; PermissionGrantRepository = permissionGrantRepository; }
public ClientsController(IClientRepository apiResourceRepository, IPermissionGrantRepository permissionGrantRepository, IMapper mapper, IIdentityServerDbContext mateupDbContext) { _clientRepository = apiResourceRepository; _permissionGrantRepository = permissionGrantRepository; _mapper = mapper; _mateupDbContext = mateupDbContext; }
public PermissionStore( IPermissionGrantRepository permissionGrantRepository, IDistributedCache <PermissionGrantCacheItem> cache) { PermissionGrantRepository = permissionGrantRepository; Cache = cache; Logger = NullLogger <PermissionStore> .Instance; }
public BankingServiceDataTestSeeder(IPermissionManager permissionManager, IPermissionGrantRepository permissionGrantRepository, ICurrentTenant currentTenant) { _currentTenant = currentTenant; _permissionManager = permissionManager; _permissionGrantRepository = permissionGrantRepository; }
protected PermissionManagementProvider( IPermissionGrantRepository permissionGrantRepository, IGuidGenerator guidGenerator, ICurrentTenant currentTenant) { PermissionGrantRepository = permissionGrantRepository; GuidGenerator = guidGenerator; CurrentTenant = currentTenant; }
public UserPermissionManagementProvider( IPermissionGrantRepository permissionGrantRepository, IGuidGenerator guidGenerator, ICurrentTenant currentTenant) : base( permissionGrantRepository, guidGenerator, currentTenant) { }
public PermissionDataSeeder( IPermissionGrantRepository permissionGrantRepository, IGuidGenerator guidGenerator, ICurrentTenant currentTenant) { PermissionGrantRepository = permissionGrantRepository; GuidGenerator = guidGenerator; CurrentTenant = currentTenant; }
public PermissionAppService( IPermissionGrantRepository permissionGrantRepository, IPermissionDefinitionManager permissionDefinitionManager, IOptions <PermissionManagementOptions> options) { Options = options.Value; PermissionGrantRepository = permissionGrantRepository; PermissionDefinitionManager = permissionDefinitionManager; }
public RoleUpdateEventHandler( IIdentityRoleRepository roleRepository, IPermissionManager permissionManager, IPermissionGrantRepository permissionGrantRepository) { RoleRepository = roleRepository; PermissionManager = permissionManager; PermissionGrantRepository = permissionGrantRepository; }
public RoleChangingEvents_Test() { RoleRepository = GetRequiredService <IIdentityRoleRepository>();; PermissionGrantRepository = GetRequiredService <IPermissionGrantRepository>();; RoleManager = GetRequiredService <IdentityRoleManager>();; LookupNormalizer = GetRequiredService <ILookupNormalizer>();; GuidGenerator = GetRequiredService <IGuidGenerator>(); UowManager = GetRequiredService <IUnitOfWorkManager>(); }
public OrganizationUnitPermissionManagementPrivider( IPermissionGrantRepository permissionGrantRepository, IGuidGenerator guidGenerator, ICurrentTenant currentTenant) : base( permissionGrantRepository, guidGenerator, currentTenant) { }
public PermissionStore( IPermissionGrantRepository permissionGrantRepository, IDistributedCache <PermissionGrantCacheItem> cache, IPermissionDefinitionManager permissionDefinitionManager) { PermissionGrantRepository = permissionGrantRepository; Cache = cache; PermissionDefinitionManager = permissionDefinitionManager; Logger = NullLogger <PermissionStore> .Instance; }
public PermissionAppService( IDistributedCache <PermissionGrantCacheItem> cache, IPermissionGrantRepository permissionGrantRepository, IPermissionDefinitionManager permissionDefinitionManager, IOptions <PermissionManagementOptions> options) { Cache = cache; Options = options.Value; PermissionGrantRepository = permissionGrantRepository; PermissionDefinitionManager = permissionDefinitionManager; }
public TenantDeleteEventHandler( ICurrentTenant currentTenant, IGuidGenerator guidGenerator, IUnitOfWorkManager unitOfWorkManager, IPermissionGrantRepository permissionGrantRepository) { CurrentTenant = currentTenant; GuidGenerator = guidGenerator; UnitOfWorkManager = unitOfWorkManager; PermissionGrantRepository = permissionGrantRepository; }
public RolePermissionManagementProvider( IPermissionGrantRepository permissionGrantRepository, IGuidGenerator guidGenerator, ICurrentTenant currentTenant, IUserRoleFinder userRoleFinder) : base( permissionGrantRepository, guidGenerator, currentTenant) { UserRoleFinder = userRoleFinder; }
public TestPermissionDataBuilder( IGuidGenerator guidGenerator, IIdentityUserRepository userRepository, IPermissionGrantRepository permissionGrantRepository, ILookupNormalizer lookupNormalizer) { _guidGenerator = guidGenerator; _userRepository = userRepository; _permissionGrantRepository = permissionGrantRepository; _lookupNormalizer = lookupNormalizer; }
public AbpIdentityTestDataBuilder( IGuidGenerator guidGenerator, IIdentityUserRepository userRepository, IIdentityRoleRepository roleRepository, IPermissionGrantRepository permissionGrantRepository) { _guidGenerator = guidGenerator; _userRepository = userRepository; _roleRepository = roleRepository; _permissionGrantRepository = permissionGrantRepository; }
public RolePermissionManagementProvider( IPermissionGrantRepository permissionGrantRepository, IGuidGenerator guidGenerator, IIdentityUserRepository identityUserRepository, ICurrentTenant currentTenant) : base( permissionGrantRepository, guidGenerator, currentTenant) { _identityUserRepository = identityUserRepository; }
public ClientPermissionManagementProvider( IPermissionGrantRepository permissionGrantRepository, IPermissionStore permissionStore, IGuidGenerator guidGenerator, ICurrentTenant currentTenant) : base( permissionGrantRepository, permissionStore, guidGenerator, currentTenant) { }
public IdentityPermissionManager( IPermissionDefinitionManager permissionDefinitionManager, IPermissionGrantRepository permissionGrantRepository, IPermissionStore permissionStore, IServiceProvider serviceProvider, IGuidGenerator guidGenerator, IOptions <PermissionManagementOptions> options, ICurrentTenant currentTenant, IUserRoleFinder userRoleFinder) : base(permissionDefinitionManager, permissionGrantRepository, permissionStore, serviceProvider, guidGenerator, options, currentTenant) { UserRoleFinder = userRoleFinder; }
public TenantCreateEventHandler( ICurrentTenant currentTenant, IGuidGenerator guidGenerator, IUnitOfWorkManager unitOfWorkManager, IPermissionGrantRepository permissionGrantRepository, IPermissionDefinitionManager permissionDefinitionManager) { CurrentTenant = currentTenant; GuidGenerator = guidGenerator; UnitOfWorkManager = unitOfWorkManager; PermissionGrantRepository = permissionGrantRepository; PermissionDefinitionManager = permissionDefinitionManager; }
public Distributed_Role_Change_Events_Test() { RoleRepository = GetRequiredService <IIdentityRoleRepository>(); ; PermissionGrantRepository = GetRequiredService <IPermissionGrantRepository>(); ; RoleManager = GetRequiredService <IdentityRoleManager>(); ; LookupNormalizer = GetRequiredService <ILookupNormalizer>(); ; UowManager = GetRequiredService <IUnitOfWorkManager>(); Cache = GetRequiredService <IDistributedCache <PermissionGrantCacheItem> >(); }
public DefaultPermissionManager( IPermissionDefinitionManager permissionDefinitionManager, IPermissionGrantRepository permissionGrantRepository, IPermissionStore permissionStore, IServiceProvider serviceProvider, IGuidGenerator guidGenerator, IOptions <PermissionManagementOptions> options, ICurrentTenant currentTenant) : base(permissionDefinitionManager, permissionGrantRepository, serviceProvider, guidGenerator, options, currentTenant) { ServiceProvider = serviceProvider; PermissionStore = permissionStore; }
public IdentityDataSeeder( IGuidGenerator guidGenerator, IPermissionGrantRepository permissionGrantRepository, IIdentityRoleRepository roleRepository, IIdentityUserRepository userRepository, ILookupNormalizer lookupNormalizer, IdentityUserManager userManager, IdentityRoleManager roleManager) { _guidGenerator = guidGenerator; _permissionGrantRepository = permissionGrantRepository; _roleRepository = roleRepository; _userRepository = userRepository; _lookupNormalizer = lookupNormalizer; _userManager = userManager; _roleManager = roleManager; }