コード例 #1
0
 public IdentityRoleAppService_Tests()
 {
     _roleAppService             = GetRequiredService <IIdentityRoleAppService>();
     _roleRepository             = GetRequiredService <IIdentityRoleRepository>();
     _organization               = GetRequiredService <OrganizationUnitManager>();
     _organizationUnitRepository = GetRequiredService <IOrganizationUnitRepository>();
 }
コード例 #2
0
        public AccountController(IdentityUserManager userManager,
                                 IConfiguration configuration,
                                 ICurrentTenant currentTenant,
                                 IdentityRoleManager roleManager,
                                 IOptions <AbpAspNetCoreMultiTenancyOptions> options,
                                 IProfileAppService profileAppService,
                                 IRepository <IdentityUser> identityUser,
                                 IIdentityRoleAppService roleAppService,
                                 IIdentityUserAppService userAppService,
                                 IAbpAuthorizationPolicyProvider abpAuthorizationPolicyProvider,
                                 IAbpAuthorizationService authorizationService,
                                 IRepository <PermissionGrant> permissionGrant,
                                 IPermissionDefinitionManager permissionDefinitionManager,
                                 IRepository <IdentityRole> identityRole,
                                 Microsoft.AspNetCore.Identity.UserManager <IdentityUser> Uu
                                 )
        {
            _userManager   = userManager;
            _Uu            = Uu;
            _currentTenant = currentTenant;
            _aspNetCoreMultiTenancyOptions = options.Value;
            _configuration     = configuration;
            _profileAppService = profileAppService;
            _roleAppService    = roleAppService;
            _userAppService    = userAppService;
            _abpAuthorizationPolicyProvider = abpAuthorizationPolicyProvider;
            _authorizationService           = authorizationService;
            _permissionDefinitionManager    = permissionDefinitionManager;
            _permissionGrant = permissionGrant;
            _identityUser    = identityUser;
            _identityRole    = identityRole;

            _roleManager = roleManager;
        }
コード例 #3
0
 public PartialsController(
     IIdentityRoleAppService _IdentityRoleAppService,
     IPermissionManager _PermissionManager,
     IRepository <PermissionGrant, Guid> _PermissionGrantAppService)
 {
     this._IdentityRoleAppService    = _IdentityRoleAppService;
     this._PermissionManager         = _PermissionManager;
     this._PermissionGrantAppService = _PermissionGrantAppService;
 }
コード例 #4
0
 public OrganizationUnitAppService(
     OrganizationUnitManager unitManager,
     IOrganizationUnitRepository unitRepository,
     IIdentityUserAppService userAppService,
     IIdentityRoleAppService roleAppService)
 {
     UnitManager    = unitManager;
     UnitRepository = unitRepository;
     UserAppService = userAppService;
     RoleAppService = roleAppService;
 }
コード例 #5
0
 public UpdateUserModel(
     IAppUserService _AppUserService,
     IIdentityRoleAppService _IdentityRoleAppService,
     IdentityUserManager _IdentityUserManager,
     IRepository <AppUser, Guid> _IAppUserRepository)
 {
     this._IAppUserRepository     = _IAppUserRepository;
     this._IdentityRoleAppService = _IdentityRoleAppService;
     this._AppUserService         = _AppUserService;
     this._IdentityUserManager    = _IdentityUserManager;
 }
コード例 #6
0
 public CreateUserModel(
     ISettingProvider _SettingProvider,
     IAppUserService _AppUserService,
     IIdentityRoleAppService _IdentityRoleAppService,
     IdentityUserManager _IdentityUserManager,
     IRepository <AppUser, Guid> _IAppUserRepository)
 {
     this._SettingProvider        = _SettingProvider;
     this._AppUserService         = _AppUserService;
     this._IAppUserRepository     = _IAppUserRepository;
     this._IdentityRoleAppService = _IdentityRoleAppService;
     this._IdentityUserManager    = _IdentityUserManager;
 }
コード例 #7
0
        public OrganizationUnitAppService(
            OrganizationUnitManager unitManager,
            IOrganizationUnitRepository unitRepository,
            IIdentityUserAppService userAppService,
            IIdentityRoleAppService roleAppService,
            IDistributedCache <OrganizationUnitDto> cache,
            IDistributedCache <ListResultDto <OrganizationUnitDto> > cacheList,
            IDistributedCache <PagedResultDto <OrganizationUnitDto> > cachePage
            )
        {
            UnitManager    = unitManager;
            UnitRepository = unitRepository;
            UserAppService = userAppService;
            RoleAppService = roleAppService;


            _cache     = cache;
            _cacheList = cacheList;
            _cachePage = cachePage;
        }
コード例 #8
0
 public CreateModalModel(IIdentityUserAppService identityUserAppService, IIdentityRoleAppService identityRoleAppService)
 {
     _identityUserAppService = identityUserAppService;
     _identityRoleAppService = identityRoleAppService;
 }
コード例 #9
0
 public IdentityRoleAppService_Tests()
 {
     _roleAppService = GetRequiredService <IIdentityRoleAppService>();
     _roleRepository = GetRequiredService <IIdentityRoleRepository>();
 }
コード例 #10
0
 public IdentityPermissionAppServiceGateway(IIdentityUserAppService userAppService, IIdentityRoleAppService roleAppService)
 {
     _userAppService = userAppService;
     _roleAppService = roleAppService;
 }
コード例 #11
0
 public IdentityAppService(IdentityUserManager userManager, Permissions.IPermissionAppService permissionAppService, IIdentityRoleAppService roleAppService, IPermissionManager permissionManager, IAccountAppService accountAppService)
 {
     UserManager = userManager;
     this.permissionAppService = permissionAppService;
     this.roleAppService       = roleAppService;
     PermissionManager         = permissionManager;
     this.accountAppService    = accountAppService;
 }
コード例 #12
0
 public IdentityRoleController(IIdentityRoleAppService roleAppService)
 {
     RoleAppService = roleAppService;
 }
コード例 #13
0
 public AuthorModel(IIdentityRoleAppService roleAppService, IAuthorizationService authorization)
 {
     this.roleAppService = roleAppService;
     this.authorization  = authorization;
 }
コード例 #14
0
 public RoleAppService(IIdentityRoleAppService identityRoleAppService, IPermissionAppService permissionAppService, IIdentityRoleRepository roleRepository)
 {
     _identityRoleAppService = identityRoleAppService;
     _permissionAppService   = permissionAppService;
     _roleRepository         = roleRepository;
 }
コード例 #15
0
ファイル: EditModal.cshtml.cs プロジェクト: zjc-china/abp
 public EditModalModel(IIdentityRoleAppService identityRoleAppService)
 {
     IdentityRoleAppService = identityRoleAppService;
 }
コード例 #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RoleService"/> class.
 /// </summary>
 /// <param name="appService">The application service.</param>
 public RoleService(IIdentityRoleAppService appService)
 {
     _appService = appService;
 }
コード例 #17
0
 public CreateModalModel(IIdentityRoleAppService identityRoleAppService) : base(identityRoleAppService)
 {
 }
コード例 #18
0
 public CreateModalModel(IIdentityRoleAppService identityRoleAppService)
 {
     IdentityRoleAppService = identityRoleAppService;
 }
コード例 #19
0
 public MyEditModalModel(
     IIdentityRoleAppService
     identityRoleAppService) :
     base(identityRoleAppService)
 {
 }