コード例 #1
0
 public object GetTenantExtra()
 {
     return(new
     {
         customMode = CoreContext.Configuration.CustomMode,
         opensource = TenantExtra.Opensource,
         enterprise = TenantExtra.Enterprise,
         tariff = TenantExtra.GetCurrentTariff(),
         quota = TenantExtra.GetTenantQuota(),
         notPaid = TenantStatisticsProvider.IsNotPaid(),
         licenseAccept = Web.Studio.UserControls.Management.TariffSettings.LicenseAccept,
         enableTariffPage = //TenantExtra.EnableTariffSettings - think about hide-settings for opensource
                            (!CoreContext.Configuration.Standalone || !string.IsNullOrEmpty(LicenseReader.LicensePath)) &&
                            string.IsNullOrEmpty(SetupInfo.AmiMetaUrl) &&
                            !CoreContext.Configuration.CustomMode,
         DocServerUserQuota = DocumentServiceLicense.GetLicenseQuota(),
         DocServerLicense = DocumentServiceLicense.GetLicense()
     });
 }
コード例 #2
0
 public object GetTenantExtra()
 {
     return(new
     {
         customMode = CoreBaseSettings.CustomMode,
         opensource = TenantExtra.Opensource,
         enterprise = TenantExtra.Enterprise,
         tariff = TenantExtra.GetCurrentTariff(),
         quota = TenantExtra.GetTenantQuota(),
         notPaid = TenantExtra.IsNotPaid(),
         licenseAccept = SettingsManager.LoadForCurrentUser <TariffSettings>().LicenseAcceptSetting,
         enableTariffPage = //TenantExtra.EnableTarrifSettings - think about hide-settings for opensource
                            (!CoreBaseSettings.Standalone || !string.IsNullOrEmpty(LicenseReader.LicensePath)) &&
                            string.IsNullOrEmpty(SetupInfo.AmiMetaUrl) &&
                            !CoreBaseSettings.CustomMode,
         DocServerUserQuota = DocumentServiceLicense.GetLicenseQuota(),
         DocServerLicense = DocumentServiceLicense.GetLicense()
     });
 }
コード例 #3
0
 public PortalController(
     IOptionsMonitor <ILog> options,
     ApiContext apiContext,
     UserManager userManager,
     TenantManager tenantManager,
     PaymentManager paymentManager,
     CommonLinkUtility commonLinkUtility,
     UrlShortener urlShortener,
     AuthContext authContext,
     WebItemSecurity webItemSecurity,
     SecurityContext securityContext,
     SettingsManager settingsManager,
     IMobileAppInstallRegistrator mobileAppInstallRegistrator,
     TenantExtra tenantExtra,
     IConfiguration configuration,
     CoreBaseSettings coreBaseSettings,
     LicenseReader licenseReader,
     SetupInfo setupInfo,
     DocumentServiceLicense documentServiceLicense
     )
 {
     Log                         = options.CurrentValue;
     ApiContext                  = apiContext;
     UserManager                 = userManager;
     TenantManager               = tenantManager;
     PaymentManager              = paymentManager;
     CommonLinkUtility           = commonLinkUtility;
     UrlShortener                = urlShortener;
     AuthContext                 = authContext;
     WebItemSecurity             = webItemSecurity;
     SecurityContext             = securityContext;
     SettingsManager             = settingsManager;
     MobileAppInstallRegistrator = mobileAppInstallRegistrator;
     Configuration               = configuration;
     CoreBaseSettings            = coreBaseSettings;
     LicenseReader               = licenseReader;
     SetupInfo                   = setupInfo;
     DocumentServiceLicense      = documentServiceLicense;
     TenantExtra                 = tenantExtra;
 }