public void Deconstruct(out TenantManager tenantManager,
                         out WebItemSecurity webItemSecurity,
                         out UserManager userManager,
                         out IOptionsMonitor <ILog> optionsMonitor,
                         out TenantExtra tenantExtra,
                         out WebItemManagerSecurity webItemManagerSecurity,
                         out WebItemManager webItemManager,
                         out IConfiguration configuration,
                         out TenantLogoManager tenantLogoManager,
                         out AdditionalWhiteLabelSettingsHelper additionalWhiteLabelSettingsHelper,
                         out TenantUtil tenantUtil,
                         out CoreBaseSettings coreBaseSettings,
                         out CommonLinkUtility commonLinkUtility,
                         out SettingsManager settingsManager,
                         out StudioNotifyHelper studioNotifyHelper)
 {
     tenantManager                      = TenantManager;
     webItemSecurity                    = WebItemSecurity;
     userManager                        = UserManager;
     optionsMonitor                     = Options;
     tenantExtra                        = TenantExtra;
     webItemManagerSecurity             = WebItemManagerSecurity;
     webItemManager                     = WebItemManager;
     configuration                      = Configuration;
     tenantLogoManager                  = TenantLogoManager;
     additionalWhiteLabelSettingsHelper = AdditionalWhiteLabelSettingsHelper;
     tenantUtil         = TenantUtil;
     coreBaseSettings   = CoreBaseSettings;
     commonLinkUtility  = CommonLinkUtility;
     settingsManager    = SettingsManager;
     studioNotifyHelper = StudioNotifyHelper;
 }
 public NotifyConfigurationScope(TenantManager tenantManager,
                                 WebItemSecurity webItemSecurity,
                                 UserManager userManager,
                                 IOptionsMonitor <ILog> options,
                                 TenantExtra tenantExtra,
                                 WebItemManagerSecurity webItemManagerSecurity,
                                 WebItemManager webItemManager,
                                 IConfiguration configuration,
                                 TenantLogoManager tenantLogoManager,
                                 AdditionalWhiteLabelSettingsHelper additionalWhiteLabelSettingsHelper,
                                 TenantUtil tenantUtil,
                                 CoreBaseSettings coreBaseSettings,
                                 CommonLinkUtility commonLinkUtility,
                                 SettingsManager settingsManager,
                                 StudioNotifyHelper studioNotifyHelper
                                 )
 {
     TenantManager                      = tenantManager;
     WebItemSecurity                    = webItemSecurity;
     UserManager                        = userManager;
     Options                            = options;
     TenantExtra                        = tenantExtra;
     WebItemManagerSecurity             = webItemManagerSecurity;
     WebItemManager                     = webItemManager;
     Configuration                      = configuration;
     TenantLogoManager                  = tenantLogoManager;
     AdditionalWhiteLabelSettingsHelper = additionalWhiteLabelSettingsHelper;
     TenantUtil                         = tenantUtil;
     CoreBaseSettings                   = coreBaseSettings;
     CommonLinkUtility                  = commonLinkUtility;
     SettingsManager                    = settingsManager;
     StudioNotifyHelper                 = studioNotifyHelper;
 }
Beispiel #3
0
 public ModulesController(
     UserManager userManager,
     TenantManager tenantManager,
     WebItemManagerSecurity webItemManagerSecurity)
 {
     UserManager            = userManager;
     TenantManager          = tenantManager;
     WebItemManagerSecurity = webItemManagerSecurity;
 }
Beispiel #4
0
 public CommonLinkUtility(
     IHttpContextAccessor httpContextAccessor,
     CoreBaseSettings coreBaseSettings,
     CoreSettings coreSettings,
     TenantManager tenantManager,
     UserManager userManager,
     WebItemManagerSecurity webItemManagerSecurity,
     WebItemManager webItemManager,
     EmailValidationKeyProvider emailValidationKeyProvider,
     IOptionsMonitor <ILog> options,
     CommonLinkUtilitySettings settings) :
     base(httpContextAccessor, coreBaseSettings, coreSettings, tenantManager, options, settings) =>
     (UserManager, WebItemManagerSecurity, WebItemManager, EmailValidationKeyProvider) = (userManager, webItemManagerSecurity, webItemManager, emailValidationKeyProvider);
Beispiel #5
0
 public CommonLinkUtility(
     CoreBaseSettings coreBaseSettings,
     CoreSettings coreSettings,
     TenantManager tenantManager,
     UserManager userManager,
     WebItemManagerSecurity webItemManagerSecurity,
     WebItemManager webItemManager,
     EmailValidationKeyProvider emailValidationKeyProvider,
     IOptionsMonitor <ILog> options,
     CommonLinkUtilitySettings settings) :
     this(null, coreBaseSettings, coreSettings, tenantManager, userManager, webItemManagerSecurity, webItemManager, emailValidationKeyProvider, options, settings)
 {
 }
        private void GetUsageSpace(WebItemManagerSecurity webItemManagerSecurity, out long docsSpace, out long mailSpace, out long talkSpace)
        {
            docsSpace = mailSpace = talkSpace = 0;

            var webItems = webItemManagerSecurity.GetItems(Web.Core.WebZones.WebZoneType.All, ItemAvailableState.All);

            foreach (var item in webItems)
            {
                IUserSpaceUsage manager;

                if (item.ID == WebItemManager.DocumentsProductID)
                {
                    manager = item.Context.SpaceUsageStatManager as IUserSpaceUsage;
                    if (manager == null)
                    {
                        continue;
                    }
                    docsSpace = manager.GetUserSpaceUsage(FromUser);
                }

                if (item.ID == WebItemManager.MailProductID)
                {
                    manager = item.Context.SpaceUsageStatManager as IUserSpaceUsage;
                    if (manager == null)
                    {
                        continue;
                    }
                    mailSpace = manager.GetUserSpaceUsage(FromUser);
                }

                if (item.ID == WebItemManager.TalkProductID)
                {
                    manager = item.Context.SpaceUsageStatManager as IUserSpaceUsage;
                    if (manager == null)
                    {
                        continue;
                    }
                    talkSpace = manager.GetUserSpaceUsage(FromUser);
                }
            }
        }
Beispiel #7
0
 public void Deconstruct(out TenantManager tenantManager,
                         out CoreBaseSettings coreBaseSettings,
                         out MessageService messageService,
                         out StudioNotifyService studioNotifyService,
                         out SecurityContext securityContext,
                         out UserManager userManager,
                         out MessageTarget messageTarget,
                         out WebItemManagerSecurity webItemManagerSecurity,
                         out StorageFactory storageFactory,
                         out UserFormatter userFormatter,
                         out IOptionsMonitor <ILog> optionsMonitor)
 {
     tenantManager          = TenantManager;
     coreBaseSettings       = CoreBaseSettings;
     messageService         = MessageService;
     studioNotifyService    = StudioNotifyService;
     securityContext        = SecurityContext;
     userManager            = UserManager;
     messageTarget          = MessageTarget;
     webItemManagerSecurity = WebItemManagerSecurity;
     storageFactory         = StorageFactory;
     userFormatter          = UserFormatter;
     optionsMonitor         = Options;
 }
Beispiel #8
0
 public RemoveProgressItemScope(TenantManager tenantManager,
                                CoreBaseSettings coreBaseSettings,
                                MessageService messageService,
                                StudioNotifyService studioNotifyService,
                                SecurityContext securityContext,
                                UserManager userManager,
                                MessageTarget messageTarget,
                                WebItemManagerSecurity webItemManagerSecurity,
                                StorageFactory storageFactory,
                                UserFormatter userFormatter,
                                IOptionsMonitor <ILog> options)
 {
     TenantManager          = tenantManager;
     CoreBaseSettings       = coreBaseSettings;
     MessageService         = messageService;
     StudioNotifyService    = studioNotifyService;
     SecurityContext        = securityContext;
     UserManager            = userManager;
     MessageTarget          = messageTarget;
     WebItemManagerSecurity = webItemManagerSecurity;
     StorageFactory         = storageFactory;
     UserFormatter          = userFormatter;
     Options = options;
 }
 public ModulesController(
     WebItemManagerSecurity webItemManagerSecurity)
 {
     WebItemManagerSecurity = webItemManagerSecurity;
 }