EnabledSecurityDescriptor.cs 1.2 KB

1234567891011121314151617181920212223242526272829
  1. using System.Globalization;
  2. using System.Linq;
  3. namespace InABox.Core
  4. {
  5. public abstract class EnabledSecurityDescriptor<TLicense> : BaseSecurityDescriptor<TLicense> where TLicense : LicenseToken
  6. {
  7. public override bool Value => Visible;
  8. }
  9. public abstract class EnabledSecurityDescriptor<TLicense, TEntity> : EnabledSecurityDescriptor<TLicense>
  10. where TLicense : LicenseToken where TEntity : Entity, new()
  11. {
  12. public override string Category => new Inflector.Inflector(new CultureInfo("en"))
  13. .Pluralize(
  14. typeof(TEntity).EntityName().Split('.').Last().SplitCamelCase()
  15. );
  16. }
  17. public abstract class EnabledSecurityDescriptor<TLicense, TEntity1, TEntity2> : EnabledSecurityDescriptor<TLicense, TEntity1>
  18. where TLicense : LicenseToken where TEntity1 : Entity, new() where TEntity2 : Entity, new()
  19. {
  20. }
  21. public abstract class EnabledSecurityDescriptor<TLicense, TEntity1, TEntity2, TEntity3> : EnabledSecurityDescriptor<TLicense, TEntity1, TEntity2>
  22. where TLicense : LicenseToken where TEntity1 : Entity, new() where TEntity2 : Entity, new() where TEntity3 : Entity, new()
  23. {
  24. }
  25. }