Exemple #1
0
 public PermissionSetBuilderFactory(
     IServiceProvider serviceProvider,
     IRolePermissionInitializerFactory rolePermissionInitializerFactory,
     IEntityDefinitionRepository entityDefinitionRepository,
     IRoleDefinitionRepository roleDefinitionRepository
     )
 {
     _serviceProvider = serviceProvider;
     _rolePermissionInitializerFactory = rolePermissionInitializerFactory;
     _entityDefinitionRepository       = entityDefinitionRepository;
     _roleDefinitionRepository         = roleDefinitionRepository;
 }
 public PermissionSetBuilder(
     IEnumerable <IPermission> permissionsToFilter,
     IServiceProvider serviceProvider,
     IRolePermissionInitializerFactory rolePermissionInitializerFactory,
     IEntityDefinitionRepository entityDefinitionRepository,
     IRoleDefinitionRepository roleDefinitionRepository
     )
 {
     AvailablePermissions = permissionsToFilter;
     ServiceProvider      = serviceProvider;
     _rolePermissionInitializerFactory = rolePermissionInitializerFactory;
     _entityDefinitionRepository       = entityDefinitionRepository;
     _roleDefinitionRepository         = roleDefinitionRepository;
 }
 private PermissionSetBuilder(
     CircularDependencyGuard circularDependencyGuard,
     IEnumerable <IPermission> allPermissions,
     IServiceProvider serviceProvider,
     IRolePermissionInitializerFactory rolePermissionInitializerFactory,
     IEntityDefinitionRepository entityDefinitionRepository,
     IRoleDefinitionRepository roleDefinitionRepository
     )
 {
     _circularDependencyGuard          = circularDependencyGuard;
     AvailablePermissions              = allPermissions;
     ServiceProvider                   = serviceProvider;
     _rolePermissionInitializerFactory = rolePermissionInitializerFactory;
     _entityDefinitionRepository       = entityDefinitionRepository;
     _roleDefinitionRepository         = roleDefinitionRepository;
 }
Exemple #4
0
 public RegisterPermissionsAndRolesCommandHandler(
     CofoundryDbContext dbContext,
     ICommandExecutor commandExecutor,
     IRoleCache roleCache,
     IPermissionValidationService permissionValidationService,
     IRoleDefinitionRepository roleDefinitionRepository,
     IRolePermissionInitializerFactory rolePermissionInitializerFactory,
     IPermissionSetBuilderFactory permissionSetBuilderFactory,
     IPermissionRepository permissionRepository,
     IEntityDefinitionRepository entityDefinitionRepository,
     ITransactionScopeManager transactionScopeFactory
     )
 {
     _dbContext                        = dbContext;
     _commandExecutor                  = commandExecutor;
     _roleCache                        = roleCache;
     _permissionValidationService      = permissionValidationService;
     _roleDefinitionRepository         = roleDefinitionRepository;
     _rolePermissionInitializerFactory = rolePermissionInitializerFactory;
     _permissionSetBuilderFactory      = permissionSetBuilderFactory;
     _permissionRepository             = permissionRepository;
     _entityDefinitionRepository       = entityDefinitionRepository;
     _transactionScopeFactory          = transactionScopeFactory;
 }