Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "northwood"

Answer

sorry 404, not $)$

Answer

This link results in a $)$, can you provide more detail in your answer?

Answer

Regarding aaron's response; My understanding is that function is only available in the angular project. We are using MVC/jQuery.

Regarding maliming's response. I attempted this approach, but am getting an exception when initializing the bootstrapper. Sample code and stack trace are below.

Sample: //Bootstrapping ABP system using (var bootstrapper = AbpBootstrapper.Create<CustomerPortalApplicationModule>()) { // logging bootstrapper.IocManager.IocContainer .AddFacility<LoggingFacility>(f => f.UseAbpLog4Net() .WithConfig("log4net.config") ); //initialize the Abp system

            bootstrapper.Initialize(); // **error thrown here**
            // get the tenant
            int? tenantId = null;
            using (var tenantService = bootstrapper.IocManager.ResolveAsDisposable&lt;TenantAppService&gt;())
            {
                Tenant t = await tenantService.Object.TenantManager.FindByTenancyNameAsync(tenantName);
                tenantId = t.Id;
            }

            //Getting the user app service to create the user and send notifications.
            using (var userAppService = bootstrapper.IocManager.ResolveAsDisposable&lt;UserAppService&gt;())
            {
                // set the tenant id.
                userAppService.Object.AbpSession.Use(tenantId, 0);
                foreach (string email in emails)
                {
                    await userAppService.Object.CreateOrUpdateUser(BuildInput(email));
                }
            } //Disposes user app service and all it's dependencies

            Console.WriteLine("Press enter to exit...");
            Console.ReadLine();
        }
        

Stack trace: Can't create component 'Abp.BackgroundJobs.BackgroundJobStore' as it has dependencies to be satisfied.

'Abp.BackgroundJobs.BackgroundJobStore' is waiting for the following dependencies:

  • Service 'Abp.Domain.Repositories.IRepository`2[[Abp.BackgroundJobs.BackgroundJobInfo, Abp, Version=4.3.0.0, Culture=neutral, PublicKeyToken=null],[System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' which was not registered.

    at Castle.MicroKernel.Handlers.DefaultHandler.AssertNotWaitingForDependency() at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) at Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context) at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.ResolveFromKernelByType(CreationContext context, ComponentModel model, DependencyModel dependency) at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.ResolveFromKernel(CreationContext context, ComponentModel model, DependencyModel dependency) at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.ResolveCore(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency) at Castle.MicroKernel.Resolvers.DefaultDependencyResolver.Resolve(CreationContext context, ISubDependencyResolver contextHandlerResolver, ComponentModel model, DependencyModel dependency) at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateConstructorArguments(ConstructorCandidate constructor, CreationContext context) at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden) at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally) at Castle.MicroKernel.Lifestyle.SingletonLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy) at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) at Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context) at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy, Boolean ignoreParentContext) at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy, Boolean ignoreParentContext) at Castle.MicroKernel.DefaultKernel.Resolve(Type service, IDictionary arguments) at Castle.Windsor.WindsorContainer.ResolveT at Abp.Dependency.IocManager.ResolveT at Abp.AbpKernelModule.PostInitialize() at Abp.Modules.AbpModuleManager.<>c.

Question

I am attempting to create a simple console app to add users to a multitenancy app. We have several customers (tenants) that each have several hundred users and manually entering them in the web app is not going to happen. I'd like to just implement the CreateOrUpdateUser function in the UserAppService, but am having trouble constructing it. Can you provide step by step instructions for this task or possible include a code sample?

Thanks Adam

Question

I am developing a multi-tenant site and each tenant will have 3 roles: SuperUser (admin), CustomerAdmin and User. The idea is that the SuperUser role will be used by IT and have global permissions within the tenant. The CustomerAdmin role will be assigned to designated users at our various customers so they can mange their own users and the User role will just be a basic role to use the site with no admin menu options.

The issue I am having is that if I assign CRUD permissions for the CustomerAdmin group, they can modify users in the SuperUser group. Is there a way to block a certain role for another, or create some sort of hierarchical role system where roles on the lower rungs of the hierarchy cannot modify/view roles and permissions higher up.

Thanks Adam

Showing 1 to 5 of 5 entries