Browse Source

Clean & rename feature management module

pull/870/head
Halil ibrahim Kalkan 7 years ago
parent
commit
1dcb2620e3
  1. 16
      modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/AbpFeatureManagementApplicationContractsModule.cs
  2. 19
      modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/FeatureManagementPermissionDefinitionProvider.cs
  3. 15
      modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/FeatureManagementPermissions.cs
  4. 2
      modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/Localization/ApplicationContracts/en.json
  5. 6
      modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/Localization/ApplicationContracts/pt-BR.json
  6. 6
      modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/Localization/ApplicationContracts/zh-Hans.json
  7. 6
      modules/feature-management/src/Volo.Abp.FeatureManagement.Application/Volo/Abp/FeatureManagement/AbpFeatureManagementApplicationModule.cs
  8. 2
      modules/feature-management/src/Volo.Abp.FeatureManagement.Application/Volo/Abp/FeatureManagement/FeatureManagementSettings.cs
  9. 4
      modules/feature-management/src/Volo.Abp.FeatureManagement.Domain.Shared/Volo/Abp/FeatureManagement/AbpFeatureManagementDomainSharedModule.cs
  10. 2
      modules/feature-management/src/Volo.Abp.FeatureManagement.Domain.Shared/Volo/Abp/FeatureManagement/FeatureManagementDomainErrorCodes.cs
  11. 4
      modules/feature-management/src/Volo.Abp.FeatureManagement.Domain.Shared/Volo/Abp/FeatureManagement/Localization/AbpFeatureManagementResource.cs
  12. 12
      modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/AbpFeatureManagementDomainModule.cs
  13. 2
      modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/FeatureManagementConsts.cs
  14. 6
      modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/Localization/Domain/pt-BR.json
  15. 6
      modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/Localization/Domain/zh-Hans.json
  16. 4
      modules/feature-management/src/Volo.Abp.FeatureManagement.EntityFrameworkCore/Volo/Abp/FeatureManagement/EntityFrameworkCore/AbpFeatureManagementEntityFrameworkCoreModule.cs
  17. 6
      modules/feature-management/src/Volo.Abp.FeatureManagement.EntityFrameworkCore/Volo/Abp/FeatureManagement/EntityFrameworkCore/FeatureManagementDbContext.cs
  18. 2
      modules/feature-management/src/Volo.Abp.FeatureManagement.EntityFrameworkCore/Volo/Abp/FeatureManagement/EntityFrameworkCore/IFeatureManagementDbContext.cs
  19. 8
      modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/Volo/Abp/FeatureManagement/AbpFeatureManagementHttpApiClientModule.cs
  20. 4
      modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi/Volo/Abp/FeatureManagement/AbpFeatureManagementHttpApiModule.cs
  21. 4
      modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/AbpFeatureManagementMongoDbModule.cs
  22. 6
      modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/FeatureManagementMongoDbContext.cs
  23. 1
      modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/FeatureManagementMongoModelBuilderConfigurationOptions.cs
  24. 6
      modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/IFeatureManagementMongoDbContext.cs
  25. 22
      modules/feature-management/src/Volo.Abp.FeatureManagement.Web/AbpFeatureManagementWebModule.cs
  26. 23
      modules/feature-management/src/Volo.Abp.FeatureManagement.Web/FeatureManagementMenuContributor.cs
  27. 6
      modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Localization/Resources/FeatureManagement/pt-BR.json
  28. 6
      modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Localization/Resources/FeatureManagement/zh-Hans.json
  29. 13
      modules/feature-management/test/Volo.Abp.FeatureManagement.Application.Tests/Volo/Abp/FeatureManagement/AbpFeatureManagementApplicationTestModule.cs
  30. 13
      modules/feature-management/test/Volo.Abp.FeatureManagement.Application.Tests/Volo/Abp/FeatureManagement/FeatureManagementApplicationTestModule.cs
  31. 4
      modules/feature-management/test/Volo.Abp.FeatureManagement.Domain.Tests/Volo/Abp/FeatureManagement/AbpFeatureManagementDomainTestModule.cs
  32. 2
      modules/feature-management/test/Volo.Abp.FeatureManagement.Domain.Tests/Volo/Abp/FeatureManagement/FeatureManagementDomainTestBase.cs
  33. 6
      modules/feature-management/test/Volo.Abp.FeatureManagement.EntityFrameworkCore.Tests/Volo/Abp/FeatureManagement/EntityFrameworkCore/AbpFeatureManagementEntityFrameworkCoreTestModule.cs
  34. 2
      modules/feature-management/test/Volo.Abp.FeatureManagement.EntityFrameworkCore.Tests/Volo/Abp/FeatureManagement/EntityFrameworkCore/MyEntityRepository_Tests.cs
  35. 9
      modules/feature-management/test/Volo.Abp.FeatureManagement.MongoDB.Tests/Abp/FeatureManagement/MongoDB/AbpFeatureManagementMongoDbTestModule.cs
  36. 2
      modules/feature-management/test/Volo.Abp.FeatureManagement.MongoDB.Tests/Abp/FeatureManagement/MongoDB/MyEntityRepository_Tests.cs
  37. 4
      modules/feature-management/test/Volo.Abp.FeatureManagement.TestBase/Abp/FeatureManagement/AbpFeatureManagementTestBaseModule.cs
  38. 1
      modules/feature-management/test/Volo.Abp.FeatureManagement.TestBase/Abp/FeatureManagement/FeatureManagementTestData.cs
  39. 4
      modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionManagementProvider.cs

16
modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/FeatureManagementApplicationContractsModule.cs → modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/AbpFeatureManagementApplicationContractsModule.cs

@ -1,5 +1,4 @@
using Volo.Abp.Application;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.FeatureManagement.Localization;
using Volo.Abp.Localization;
using Volo.Abp.Modularity;
@ -8,28 +7,23 @@ using Volo.Abp.VirtualFileSystem;
namespace Volo.Abp.FeatureManagement
{
[DependsOn(
typeof(FeatureManagementDomainSharedModule),
typeof(AbpFeatureManagementDomainSharedModule),
typeof(AbpDddApplicationModule)
)]
public class FeatureManagementApplicationContractsModule : AbpModule
public class AbpFeatureManagementApplicationContractsModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<PermissionOptions>(options =>
{
options.DefinitionProviders.Add<FeatureManagementPermissionDefinitionProvider>();
});
Configure<VirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<FeatureManagementApplicationContractsModule>();
options.FileSets.AddEmbedded<AbpFeatureManagementApplicationContractsModule>();
});
Configure<AbpLocalizationOptions>(options =>
{
options.Resources
.Get<FeatureManagementResource>()
.AddVirtualJson("/Abp/FeatureManagement/Localization/ApplicationContracts");
.Get<AbpFeatureManagementResource>()
.AddVirtualJson("/Volo/Abp/FeatureManagement/Localization/ApplicationContracts");
});
}
}

19
modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/FeatureManagementPermissionDefinitionProvider.cs

@ -1,19 +0,0 @@
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.FeatureManagement.Localization;
using Volo.Abp.Localization;
namespace Volo.Abp.FeatureManagement
{
public class FeatureManagementPermissionDefinitionProvider : PermissionDefinitionProvider
{
public override void Define(IPermissionDefinitionContext context)
{
//var moduleGroup = context.AddGroup(FeatureManagementPermissions.GroupName, L("Permission:FeatureManagement"));
}
private static LocalizableString L(string name)
{
return LocalizableString.Create<FeatureManagementResource>(name);
}
}
}

15
modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/FeatureManagementPermissions.cs

@ -1,15 +0,0 @@
namespace Volo.Abp.FeatureManagement
{
public class FeatureManagementPermissions
{
public const string GroupName = "FeatureManagement";
public static string[] GetAll()
{
return new[]
{
GroupName
};
}
}
}

2
modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/Localization/ApplicationContracts/en.json

@ -1,6 +1,6 @@
{
"culture": "en",
"texts": {
"Permission:FeatureManagement": "FeatureManagement"
}
}

6
modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/Localization/ApplicationContracts/pt-BR.json

@ -1,6 +0,0 @@
{
"culture": "pt-BR",
"texts": {
"Permission:FeatureManagement": "FeatureManagement"
}
}

6
modules/feature-management/src/Volo.Abp.FeatureManagement.Application.Contracts/Volo/Abp/FeatureManagement/Localization/ApplicationContracts/zh-Hans.json

@ -1,6 +0,0 @@
{
"culture": "zh-Hans",
"texts": {
"Permission:FeatureManagement": "FeatureManagement"
}
}

6
modules/feature-management/src/Volo.Abp.FeatureManagement.Application/Volo/Abp/FeatureManagement/FeatureManagementApplicationModule.cs → modules/feature-management/src/Volo.Abp.FeatureManagement.Application/Volo/Abp/FeatureManagement/AbpFeatureManagementApplicationModule.cs

@ -5,11 +5,11 @@ using Volo.Abp.Settings;
namespace Volo.Abp.FeatureManagement
{
[DependsOn(
typeof(FeatureManagementDomainModule),
typeof(FeatureManagementApplicationContractsModule),
typeof(AbpFeatureManagementDomainModule),
typeof(AbpFeatureManagementApplicationContractsModule),
typeof(AbpAutoMapperModule)
)]
public class FeatureManagementApplicationModule : AbpModule
public class AbpFeatureManagementApplicationModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{

2
modules/feature-management/src/Volo.Abp.FeatureManagement.Application/Volo/Abp/FeatureManagement/FeatureManagementSettings.cs

@ -2,7 +2,7 @@
{
public static class FeatureManagementSettings
{
public const string GroupName = "FeatureManagement";
public const string GroupName = "AbpFeatureManagement";
/* Add constants for setting names. Example:
* public const string MySettingName = GroupName + ".MySettingName";

4
modules/feature-management/src/Volo.Abp.FeatureManagement.Domain.Shared/Volo/Abp/FeatureManagement/FeatureManagementDomainSharedModule.cs → modules/feature-management/src/Volo.Abp.FeatureManagement.Domain.Shared/Volo/Abp/FeatureManagement/AbpFeatureManagementDomainSharedModule.cs

@ -7,13 +7,13 @@ namespace Volo.Abp.FeatureManagement
[DependsOn(
typeof(AbpLocalizationModule)
)]
public class FeatureManagementDomainSharedModule : AbpModule
public class AbpFeatureManagementDomainSharedModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpLocalizationOptions>(options =>
{
options.Resources.Add<FeatureManagementResource>("en");
options.Resources.Add<AbpFeatureManagementResource>("en");
});
}
}

2
modules/feature-management/src/Volo.Abp.FeatureManagement.Domain.Shared/Volo/Abp/FeatureManagement/FeatureManagementDomainErrorCodes.cs

@ -2,6 +2,6 @@
{
public static class FeatureManagementDomainErrorCodes
{
//Add your business exception error codes here...
}
}

4
modules/feature-management/src/Volo.Abp.FeatureManagement.Domain.Shared/Volo/Abp/FeatureManagement/Localization/FeatureManagementResource.cs → modules/feature-management/src/Volo.Abp.FeatureManagement.Domain.Shared/Volo/Abp/FeatureManagement/Localization/AbpFeatureManagementResource.cs

@ -2,8 +2,8 @@
namespace Volo.Abp.FeatureManagement.Localization
{
[LocalizationResourceName("FeatureManagement")]
public class FeatureManagementResource
[LocalizationResourceName("AbpFeatureManagement")]
public class AbpFeatureManagementResource
{
}

12
modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/FeatureManagementDomainModule.cs → modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/AbpFeatureManagementDomainModule.cs

@ -7,25 +7,27 @@ using Volo.Abp.VirtualFileSystem;
namespace Volo.Abp.FeatureManagement
{
[DependsOn(
typeof(FeatureManagementDomainSharedModule)
typeof(AbpFeatureManagementDomainSharedModule)
)]
public class FeatureManagementDomainModule : AbpModule
public class AbpFeatureManagementDomainModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<VirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<FeatureManagementDomainModule>();
options.FileSets.AddEmbedded<AbpFeatureManagementDomainModule>();
});
Configure<AbpLocalizationOptions>(options =>
{
options.Resources.Get<FeatureManagementResource>().AddVirtualJson("/Abp/FeatureManagement/Localization/Domain");
options.Resources
.Get<AbpFeatureManagementResource>()
.AddVirtualJson("/Volo/Abp/FeatureManagement/Localization/Domain");
});
Configure<ExceptionLocalizationOptions>(options =>
{
options.MapCodeNamespace("FeatureManagement", typeof(FeatureManagementResource));
options.MapCodeNamespace("AbpFeatureManagement", typeof(AbpFeatureManagementResource));
});
}
}

2
modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/FeatureManagementConsts.cs

@ -2,7 +2,7 @@
{
public static class FeatureManagementConsts
{
public const string DefaultDbTablePrefix = "FeatureManagement";
public const string DefaultDbTablePrefix = "Abp";
public const string DefaultDbSchema = null;
}

6
modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/Localization/Domain/pt-BR.json

@ -1,6 +0,0 @@
{
"culture": "pt-BR",
"texts": {
}
}

6
modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/Localization/Domain/zh-Hans.json

@ -1,6 +0,0 @@
{
"culture": "zh-Hans",
"texts": {
}
}

4
modules/feature-management/src/Volo.Abp.FeatureManagement.EntityFrameworkCore/Volo/Abp/FeatureManagement/EntityFrameworkCore/FeatureManagementEntityFrameworkCoreModule.cs → modules/feature-management/src/Volo.Abp.FeatureManagement.EntityFrameworkCore/Volo/Abp/FeatureManagement/EntityFrameworkCore/AbpFeatureManagementEntityFrameworkCoreModule.cs

@ -5,10 +5,10 @@ using Volo.Abp.Modularity;
namespace Volo.Abp.FeatureManagement.EntityFrameworkCore
{
[DependsOn(
typeof(FeatureManagementDomainModule),
typeof(AbpFeatureManagementDomainModule),
typeof(AbpEntityFrameworkCoreModule)
)]
public class FeatureManagementEntityFrameworkCoreModule : AbpModule
public class AbpFeatureManagementEntityFrameworkCoreModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{

6
modules/feature-management/src/Volo.Abp.FeatureManagement.EntityFrameworkCore/Volo/Abp/FeatureManagement/EntityFrameworkCore/FeatureManagementDbContext.cs

@ -4,17 +4,13 @@ using Volo.Abp.EntityFrameworkCore;
namespace Volo.Abp.FeatureManagement.EntityFrameworkCore
{
[ConnectionStringName("FeatureManagement")]
[ConnectionStringName("AbpFeatureManagement")]
public class FeatureManagementDbContext : AbpDbContext<FeatureManagementDbContext>, IFeatureManagementDbContext
{
public static string TablePrefix { get; set; } = FeatureManagementConsts.DefaultDbTablePrefix;
public static string Schema { get; set; } = FeatureManagementConsts.DefaultDbSchema;
/* Add DbSet for each Aggregate Root here. Example:
* public DbSet<Question> Questions { get; set; }
*/
public FeatureManagementDbContext(DbContextOptions<FeatureManagementDbContext> options)
: base(options)
{

2
modules/feature-management/src/Volo.Abp.FeatureManagement.EntityFrameworkCore/Volo/Abp/FeatureManagement/EntityFrameworkCore/IFeatureManagementDbContext.cs

@ -3,7 +3,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace Volo.Abp.FeatureManagement.EntityFrameworkCore
{
[ConnectionStringName("FeatureManagement")]
[ConnectionStringName("AbpFeatureManagement")]
public interface IFeatureManagementDbContext : IEfCoreDbContext
{
/* Add DbSet for each Aggregate Root here. Example:

8
modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/Volo/Abp/FeatureManagement/FeatureManagementHttpApiClientModule.cs → modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi.Client/Volo/Abp/FeatureManagement/AbpFeatureManagementHttpApiClientModule.cs

@ -5,16 +5,16 @@ using Volo.Abp.Modularity;
namespace Volo.Abp.FeatureManagement
{
[DependsOn(
typeof(FeatureManagementApplicationContractsModule),
typeof(AbpFeatureManagementApplicationContractsModule),
typeof(AbpHttpClientModule))]
public class FeatureManagementHttpApiClientModule : AbpModule
public class AbpFeatureManagementHttpApiClientModule : AbpModule
{
public const string RemoteServiceName = "FeatureManagement";
public const string RemoteServiceName = "AbpFeatureManagement";
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddHttpClientProxies(
typeof(FeatureManagementApplicationContractsModule).Assembly,
typeof(AbpFeatureManagementApplicationContractsModule).Assembly,
RemoteServiceName
);
}

4
modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi/Volo/Abp/FeatureManagement/FeatureManagementHttpApiModule.cs → modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi/Volo/Abp/FeatureManagement/AbpFeatureManagementHttpApiModule.cs

@ -4,9 +4,9 @@ using Volo.Abp.Modularity;
namespace Volo.Abp.FeatureManagement
{
[DependsOn(
typeof(FeatureManagementApplicationContractsModule),
typeof(AbpFeatureManagementApplicationContractsModule),
typeof(AbpAspNetCoreMvcModule))]
public class FeatureManagementHttpApiModule : AbpModule
public class AbpFeatureManagementHttpApiModule : AbpModule
{
}

4
modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/FeatureManagementMongoDbModule.cs → modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/AbpFeatureManagementMongoDbModule.cs

@ -5,10 +5,10 @@ using Volo.Abp.MongoDB;
namespace Volo.Abp.FeatureManagement.MongoDB
{
[DependsOn(
typeof(FeatureManagementDomainModule),
typeof(AbpFeatureManagementDomainModule),
typeof(AbpMongoDbModule)
)]
public class FeatureManagementMongoDbModule : AbpModule
public class AbpFeatureManagementMongoDbModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{

6
modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/FeatureManagementMongoDbContext.cs

@ -3,15 +3,11 @@ using Volo.Abp.MongoDB;
namespace Volo.Abp.FeatureManagement.MongoDB
{
[ConnectionStringName("FeatureManagement")]
[ConnectionStringName("AbpFeatureManagement")]
public class FeatureManagementMongoDbContext : AbpMongoDbContext, IFeatureManagementMongoDbContext
{
public static string CollectionPrefix { get; set; } = FeatureManagementConsts.DefaultDbTablePrefix;
/* Add mongo collections here. Example:
* public IMongoCollection<Question> Questions => Collection<Question>();
*/
protected override void CreateModel(IMongoModelBuilder modelBuilder)
{
base.CreateModel(modelBuilder);

1
modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/FeatureManagementMongoModelBuilderConfigurationOptions.cs

@ -9,6 +9,7 @@ namespace Volo.Abp.FeatureManagement.MongoDB
[NotNull] string tablePrefix = FeatureManagementConsts.DefaultDbTablePrefix)
: base(tablePrefix)
{
}
}
}

6
modules/feature-management/src/Volo.Abp.FeatureManagement.MongoDB/Volo/Abp/FeatureManagement/MongoDB/IFeatureManagementMongoDbContext.cs

@ -3,11 +3,9 @@ using Volo.Abp.MongoDB;
namespace Volo.Abp.FeatureManagement.MongoDB
{
[ConnectionStringName("FeatureManagement")]
[ConnectionStringName("AbpFeatureManagement")]
public interface IFeatureManagementMongoDbContext : IAbpMongoDbContext
{
/* Define mongo collections here. Example:
* IMongoCollection<Question> Questions { get; }
*/
}
}

22
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/FeatureManagementWebModule.cs → modules/feature-management/src/Volo.Abp.FeatureManagement.Web/AbpFeatureManagementWebModule.cs

@ -8,40 +8,36 @@ using Volo.Abp.FeatureManagement.Localization;
using Volo.Abp.Localization;
using Volo.Abp.Localization.Resources.AbpValidation;
using Volo.Abp.Modularity;
using Volo.Abp.UI.Navigation;
using Volo.Abp.VirtualFileSystem;
namespace Volo.Abp.FeatureManagement
{
[DependsOn(typeof(FeatureManagementHttpApiModule))]
[DependsOn(typeof(AbpAspNetCoreMvcUiThemeSharedModule))]
[DependsOn(typeof(AbpAutoMapperModule))]
public class FeatureManagementWebModule : AbpModule
[DependsOn(
typeof(AbpFeatureManagementHttpApiModule),
typeof(AbpAspNetCoreMvcUiThemeSharedModule),
typeof(AbpAutoMapperModule)
)]
public class AbpFeatureManagementWebModule : AbpModule
{
public override void PreConfigureServices(ServiceConfigurationContext context)
{
context.Services.PreConfigure<AbpMvcDataAnnotationsLocalizationOptions>(options =>
{
options.AddAssemblyResource(typeof(FeatureManagementResource), typeof(FeatureManagementWebModule).Assembly);
options.AddAssemblyResource(typeof(AbpFeatureManagementResource), typeof(AbpFeatureManagementWebModule).Assembly);
});
}
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<NavigationOptions>(options =>
{
options.MenuContributors.Add(new FeatureManagementMenuContributor());
});
Configure<VirtualFileSystemOptions>(options =>
{
options.FileSets.AddEmbedded<FeatureManagementWebModule>("Abp.FeatureManagement");
options.FileSets.AddEmbedded<AbpFeatureManagementWebModule>("Volo.Abp.FeatureManagement");
});
Configure<AbpLocalizationOptions>(options =>
{
options.Resources
.Get<FeatureManagementResource>()
.Get<AbpFeatureManagementResource>()
.AddBaseTypes(
typeof(AbpValidationResource),
typeof(AbpUiResource)

23
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/FeatureManagementMenuContributor.cs

@ -1,23 +0,0 @@
using System.Threading.Tasks;
using Volo.Abp.UI.Navigation;
namespace Volo.Abp.FeatureManagement
{
public class FeatureManagementMenuContributor : IMenuContributor
{
public async Task ConfigureMenuAsync(MenuConfigurationContext context)
{
if (context.Menu.Name == StandardMenus.Main)
{
await ConfigureMainMenu(context);
}
}
private Task ConfigureMainMenu(MenuConfigurationContext context)
{
//Add main menu items.
return Task.CompletedTask;
}
}
}

6
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Localization/Resources/FeatureManagement/pt-BR.json

@ -1,6 +0,0 @@
{
"culture": "pt-BR",
"texts": {
}
}

6
modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Localization/Resources/FeatureManagement/zh-Hans.json

@ -1,6 +0,0 @@
{
"culture": "zh-Hans",
"texts": {
}
}

13
modules/feature-management/test/Volo.Abp.FeatureManagement.Application.Tests/Volo/Abp/FeatureManagement/AbpFeatureManagementApplicationTestModule.cs

@ -0,0 +1,13 @@
using Volo.Abp.Modularity;
namespace Volo.Abp.FeatureManagement
{
[DependsOn(
typeof(AbpFeatureManagementApplicationModule),
typeof(AbpFeatureManagementDomainTestModule)
)]
public class AbpFeatureManagementApplicationTestModule : AbpModule
{
}
}

13
modules/feature-management/test/Volo.Abp.FeatureManagement.Application.Tests/Volo/Abp/FeatureManagement/FeatureManagementApplicationTestModule.cs

@ -1,13 +0,0 @@
using Volo.Abp.Modularity;
namespace Volo.Abp.FeatureManagement
{
[DependsOn(
typeof(FeatureManagementApplicationModule),
typeof(FeatureManagementDomainTestModule)
)]
public class FeatureManagementApplicationTestModule : AbpModule
{
}
}

4
modules/feature-management/test/Volo.Abp.FeatureManagement.Domain.Tests/Volo/Abp/FeatureManagement/FeatureManagementDomainTestModule.cs → modules/feature-management/test/Volo.Abp.FeatureManagement.Domain.Tests/Volo/Abp/FeatureManagement/AbpFeatureManagementDomainTestModule.cs

@ -4,9 +4,9 @@ using Volo.Abp.Modularity;
namespace Volo.Abp.FeatureManagement
{
[DependsOn(
typeof(FeatureManagementEntityFrameworkCoreTestModule)
typeof(AbpFeatureManagementEntityFrameworkCoreTestModule)
)]
public class FeatureManagementDomainTestModule : AbpModule
public class AbpFeatureManagementDomainTestModule : AbpModule
{
}

2
modules/feature-management/test/Volo.Abp.FeatureManagement.Domain.Tests/Volo/Abp/FeatureManagement/FeatureManagementDomainTestBase.cs

@ -2,7 +2,7 @@
namespace Volo.Abp.FeatureManagement
{
public abstract class FeatureManagementDomainTestBase : FeatureManagementTestBase<FeatureManagementDomainTestModule>
public abstract class FeatureManagementDomainTestBase : FeatureManagementTestBase<AbpFeatureManagementDomainTestModule>
{
}

6
modules/feature-management/test/Volo.Abp.FeatureManagement.EntityFrameworkCore.Tests/Volo/Abp/FeatureManagement/EntityFrameworkCore/FeatureManagementEntityFrameworkCoreTestModule.cs → modules/feature-management/test/Volo.Abp.FeatureManagement.EntityFrameworkCore.Tests/Volo/Abp/FeatureManagement/EntityFrameworkCore/AbpFeatureManagementEntityFrameworkCoreTestModule.cs

@ -9,10 +9,10 @@ using Volo.Abp.Modularity;
namespace Volo.Abp.FeatureManagement.EntityFrameworkCore
{
[DependsOn(
typeof(FeatureManagementTestBaseModule),
typeof(FeatureManagementEntityFrameworkCoreModule)
typeof(AbpFeatureManagementTestBaseModule),
typeof(AbpFeatureManagementEntityFrameworkCoreModule)
)]
public class FeatureManagementEntityFrameworkCoreTestModule : AbpModule
public class AbpFeatureManagementEntityFrameworkCoreTestModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{

2
modules/feature-management/test/Volo.Abp.FeatureManagement.EntityFrameworkCore.Tests/Volo/Abp/FeatureManagement/EntityFrameworkCore/MyEntityRepository_Tests.cs

@ -2,7 +2,7 @@
namespace Volo.Abp.FeatureManagement.EntityFrameworkCore
{
public class MyEntityRepository_Tests : MyEntityRepository_Tests<FeatureManagementEntityFrameworkCoreTestModule>
public class MyEntityRepository_Tests : MyEntityRepository_Tests<AbpFeatureManagementEntityFrameworkCoreTestModule>
{
}

9
modules/feature-management/test/Volo.Abp.FeatureManagement.MongoDB.Tests/Abp/FeatureManagement/MongoDB/FeatureManagementMongoDbTestModule.cs → modules/feature-management/test/Volo.Abp.FeatureManagement.MongoDB.Tests/Abp/FeatureManagement/MongoDB/AbpFeatureManagementMongoDbTestModule.cs

@ -1,5 +1,4 @@
using Microsoft.Extensions.DependencyInjection;
using Mongo2Go;
using Mongo2Go;
using Volo.Abp;
using Volo.Abp.Data;
using Volo.Abp.FeatureManagement.MongoDB;
@ -8,10 +7,10 @@ using Volo.Abp.Modularity;
namespace Abp.FeatureManagement.MongoDB
{
[DependsOn(
typeof(FeatureManagementTestBaseModule),
typeof(FeatureManagementMongoDbModule)
typeof(AbpFeatureManagementTestBaseModule),
typeof(AbpFeatureManagementMongoDbModule)
)]
public class FeatureManagementMongoDbTestModule : AbpModule
public class AbpFeatureManagementMongoDbTestModule : AbpModule
{
private MongoDbRunner _mongoDbRunner;

2
modules/feature-management/test/Volo.Abp.FeatureManagement.MongoDB.Tests/Abp/FeatureManagement/MongoDB/MyEntityRepository_Tests.cs

@ -1,6 +1,6 @@
namespace Abp.FeatureManagement.MongoDB
{
public class MyEntityRepository_Tests : MyEntityRepository_Tests<FeatureManagementMongoDbTestModule>
public class MyEntityRepository_Tests : MyEntityRepository_Tests<AbpFeatureManagementMongoDbTestModule>
{
}

4
modules/feature-management/test/Volo.Abp.FeatureManagement.TestBase/Abp/FeatureManagement/FeatureManagementTestBaseModule.cs → modules/feature-management/test/Volo.Abp.FeatureManagement.TestBase/Abp/FeatureManagement/AbpFeatureManagementTestBaseModule.cs

@ -11,9 +11,9 @@ namespace Abp.FeatureManagement
typeof(AbpAutofacModule),
typeof(AbpTestBaseModule),
typeof(AbpAuthorizationModule),
typeof(FeatureManagementDomainModule)
typeof(AbpFeatureManagementDomainModule)
)]
public class FeatureManagementTestBaseModule : AbpModule
public class AbpFeatureManagementTestBaseModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{

1
modules/feature-management/test/Volo.Abp.FeatureManagement.TestBase/Abp/FeatureManagement/FeatureManagementTestData.cs

@ -4,5 +4,6 @@ namespace Abp.FeatureManagement
{
public class FeatureManagementTestData : ISingletonDependency
{
}
}

4
modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionManagementProvider.cs

@ -1,5 +1,4 @@
using System.Threading.Tasks;
using Volo.Abp.Authorization.Permissions;
using Volo.Abp.Guids;
using Volo.Abp.MultiTenancy;
@ -24,8 +23,7 @@ namespace Volo.Abp.PermissionManagement
GuidGenerator = guidGenerator;
CurrentTenant = currentTenant;
}
public virtual async Task<PermissionValueProviderGrantInfo> CheckAsync(string name, string providerName, string providerKey)
{
if (providerName != Name)

Loading…
Cancel
Save