Example #1
0
        public SetupService(
            ILogger <SetupService> logger,
            IOptionsMonitor <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            IWritableOptions <AppOptions> writableOptions,
            IWritableOptions <DocumentIdActivatorConfiguration> documentIdActivatorConfigurationWritableOptions,
            GraphTeamsAppService graphTeamsAppService,
            GraphUserAppService graphUserAppService,
            IUserContext userContext,
            IAzureKeyVaultService azureKeyVaultService) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(writableOptions, nameof(writableOptions));
            Guard.Against.Null(graphTeamsAppService, nameof(graphTeamsAppService));
            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(userContext, nameof(userContext));
            Guard.Against.Null(azureKeyVaultService, nameof(azureKeyVaultService));

            _graphSharePointAppService = graphSharePointAppService;
            _writableOptions           = writableOptions;
            this.documentIdActivatorConfigurationWritableOptions = documentIdActivatorConfigurationWritableOptions;
            _graphTeamsAppService = graphTeamsAppService;
            _graphUserAppService  = graphUserAppService;
            _userContext          = userContext;
            _azureKeyVaultService = azureKeyVaultService;
        }
Example #2
0
        public OpportunityRepository(
            ILogger <OpportunityRepository> logger,
            IOptionsMonitor <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            GraphUserAppService graphUserAppService,
            IUserProfileRepository userProfileRepository,
            IUserContext userContext,
            IOpportunityFactory opportunityFactory,
            IAuthorizationService authorizationService,
            IPermissionRepository permissionRepository,
            IDashboardService dashboardService) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(userProfileRepository, nameof(userProfileRepository));
            Guard.Against.Null(userContext, nameof(userContext));
            Guard.Against.Null(opportunityFactory, nameof(opportunityFactory));
            Guard.Against.Null(dashboardService, nameof(dashboardService));
            Guard.Against.Null(authorizationService, nameof(authorizationService));
            Guard.Against.Null(permissionRepository, nameof(permissionRepository));

            _graphSharePointAppService = graphSharePointAppService;
            _graphUserAppService       = graphUserAppService;
            _userProfileRepository     = userProfileRepository;
            _userContext          = userContext;
            _opportunityFactory   = opportunityFactory;
            _dashboardService     = dashboardService;
            _authorizationService = authorizationService;
            _permissionRepository = permissionRepository;
        }
Example #3
0
 public OpportunityFactory(
     ILogger <OpportunityFactory> logger,
     IOptions <AppOptions> appOptions,
     GraphSharePointAppService graphSharePointAppService,
     GraphUserAppService graphUserAppService,
     INotificationRepository notificationRepository,
     IUserProfileRepository userProfileRepository,
     IRoleMappingRepository roleMappingRepository,
     CardNotificationService cardNotificationService,
     IUserContext userContext) : base(logger, appOptions)
 {
     Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
     Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
     Guard.Against.Null(notificationRepository, nameof(notificationRepository));
     Guard.Against.Null(userProfileRepository, nameof(userProfileRepository));
     Guard.Against.Null(roleMappingRepository, nameof(roleMappingRepository));
     Guard.Against.Null(cardNotificationService, nameof(cardNotificationService));
     Guard.Against.Null(userContext, nameof(userContext));
     _graphSharePointAppService = graphSharePointAppService;
     _graphUserAppService       = graphUserAppService;
     _notificationRepository    = notificationRepository;
     _userProfileRepository     = userProfileRepository;
     _roleMappingRepository     = roleMappingRepository;
     _cardNotificationService   = cardNotificationService;
     _userContext = userContext;
 }
        public OpportunityFactory(
            ILogger <OpportunityFactory> logger,
            IOptionsMonitor <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            GraphUserAppService graphUserAppService,
            IUserProfileRepository userProfileRepository,
            IRoleMappingRepository roleMappingRepository,
            CardNotificationService cardNotificationService,
            IUserContext userContext,
            CheckListProcessService checkListProcessService,
            CustomerFeedbackProcessService customerFeedbackProcessService,
            CustomerDecisionProcessService customerDecisionProcessService,
            ProposalStatusProcessService proposalStatusProcessService,
            NewOpportunityProcessService newOpportunityProcessService,
            IDashboardService dashboardService,
            IAuthorizationService authorizationService,
            IPermissionRepository permissionRepository,
            StartProcessService startProcessService,
            IDashboardAnalysis dashboardAnalysis,
            GraphTeamsAppService graphTeamsAppService,
            IAddInHelper addInHelper) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(userProfileRepository, nameof(userProfileRepository));
            Guard.Against.Null(roleMappingRepository, nameof(roleMappingRepository));
            Guard.Against.Null(cardNotificationService, nameof(cardNotificationService));
            Guard.Against.Null(userContext, nameof(userContext));
            Guard.Against.Null(checkListProcessService, nameof(checkListProcessService));
            Guard.Against.Null(customerDecisionProcessService, nameof(customerDecisionProcessService));
            Guard.Against.Null(proposalStatusProcessService, nameof(proposalStatusProcessService));
            Guard.Against.Null(newOpportunityProcessService, nameof(newOpportunityProcessService));
            Guard.Against.Null(startProcessService, nameof(startProcessService));
            Guard.Against.Null(dashboardService, nameof(dashboardService));
            Guard.Against.Null(dashboardAnalysis, nameof(dashboardAnalysis));
            Guard.Against.Null(authorizationService, nameof(authorizationService));
            Guard.Against.Null(permissionRepository, nameof(permissionRepository));
            Guard.Against.Null(graphTeamsAppService, nameof(graphTeamsAppService));
            Guard.Against.Null(addInHelper, nameof(addInHelper));

            _graphSharePointAppService = graphSharePointAppService;
            _graphUserAppService       = graphUserAppService;
            _userProfileRepository     = userProfileRepository;
            _roleMappingRepository     = roleMappingRepository;
            _cardNotificationService   = cardNotificationService;
            _userContext                        = userContext;
            _checkListProcessService            = checkListProcessService;
            this.customerFeedbackProcessService = customerFeedbackProcessService;
            _customerDecisionProcessService     = customerDecisionProcessService;
            _proposalStatusProcessService       = proposalStatusProcessService;
            _newOpportunityProcessService       = newOpportunityProcessService;
            _startProcessService                = startProcessService;
            _dashboardService                   = dashboardService;
            _authorizationService               = authorizationService;
            _permissionRepository               = permissionRepository;
            _graphTeamsAppService               = graphTeamsAppService;
            _dashboardAnalysis                  = dashboardAnalysis;
            _addInHelper                        = addInHelper;
        }
Example #5
0
 public ProcessRepository(
     ILogger <ProcessRepository> logger,
     IOptionsMonitor <AppOptions> appOptions,
     GraphSharePointAppService graphSharePointAppService) : base(logger, appOptions)
 {
     Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
     _graphSharePointAppService = graphSharePointAppService;
 }
Example #6
0
 public CategoryRepository(
     ILogger <CategoryRepository> logger,
     IOptions <AppOptions> appOptions,
     GraphSharePointAppService graphSharePointAppService) : base(logger, appOptions)
 {
     Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
     _graphSharePointAppService = graphSharePointAppService;
 }
 public PermissionRepository(
     ILogger <PermissionRepository> logger,
     IOptionsMonitor <AppOptions> appOptions,
     GraphSharePointAppService graphSharePointAppService,
     IMemoryCache memoryCache) : base(logger, appOptions)
 {
     Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
     _graphSharePointAppService = graphSharePointAppService;
     _cache = memoryCache;
 }
Example #8
0
 public TasksRepository(
     ILogger <TasksRepository> logger,
     IOptionsMonitor <AppOptions> appOptions,
     GraphSharePointAppService graphSharePointAppService,
     IServiceProvider services) : base(logger, appOptions)
 {
     Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
     _graphSharePointAppService = graphSharePointAppService;
     _authorizationService      = new Lazy <IAuthorizationService>(() =>
                                                                   services.GetRequiredService <IAuthorizationService>());
 }
Example #9
0
        public ContextService(
            ILogger <ContextService> logger,
            IOptionsMonitor <AppOptions> appOptions,
            IConfiguration configuration,
            GraphSharePointAppService graphSharePointAppService,
            IAzureKeyVaultService azureKeyVaultService) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));

            _graphSharePointAppService = graphSharePointAppService;
            _azureKeyVaultService      = azureKeyVaultService;

            documentIdActivatorConfiguration = new DocumentIdActivatorConfiguration();
            configuration.Bind(DocumentIdActivatorConfiguration.ConfigurationName, documentIdActivatorConfiguration);
        }
        public MetaDataRepository(
            ILogger <MetaDataRepository> logger,
            IOptionsMonitor <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            IServiceProvider services) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            _graphSharePointAppService = graphSharePointAppService;
            _authorizationService      = new Lazy <IAuthorizationService>(() =>
                                                                          services.GetRequiredService <IAuthorizationService>());

            siteList = new SiteList
            {
                SiteId = _appOptions.ProposalManagementRootSiteId,
                ListId = _appOptions.OpportunityMetaDataId
            };
        }
        public DocumentRepository(
            ILogger <DocumentRepository> logger,
            IOptionsMonitor <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            IOpportunityRepository opportunityRepository,
            IWordParser wordParser,
            IPowerPointParser powerPointParser) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(opportunityRepository, nameof(opportunityRepository));
            Guard.Against.Null(wordParser, nameof(wordParser));
            Guard.Against.Null(powerPointParser, nameof(powerPointParser));

            _graphSharePointAppService = graphSharePointAppService;
            _opportunityRepository     = opportunityRepository;
            _wordParser       = wordParser;
            _powerPointParser = powerPointParser;
        }
Example #12
0
        public DocumentRepository(
            ILogger <DocumentRepository> logger,
            IOptions <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            IOpportunityRepository opportunityRepository,
            IRoleMappingRepository roleMappingRepository,
            IWordParser wordParser) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(opportunityRepository, nameof(opportunityRepository));
            Guard.Against.Null(roleMappingRepository, nameof(roleMappingRepository));
            Guard.Against.Null(wordParser, nameof(wordParser));

            _graphSharePointAppService = graphSharePointAppService;
            _opportunityRepository     = opportunityRepository;
            _roleMappingRepository     = roleMappingRepository;
            _wordParser = wordParser;
        }
        public UserProfileRepository(ILogger <UserProfileRepository> logger,
                                     GraphSharePointAppService graphSharePointAppService,
                                     GraphUserAppService graphUserAppService,
                                     IRoleMappingRepository roleMappingRepository,
                                     IOptions <AppOptions> appOptions,
                                     IMemoryCache memoryCache) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(roleMappingRepository, nameof(roleMappingRepository));

            _graphSharePointAppService = graphSharePointAppService;
            _graphUserAppService       = graphUserAppService;
            _roleMappingRepository     = roleMappingRepository;
            _cache = memoryCache;

            _roleMappingList = null;
            _usersList       = new List <UserProfile>();
        }
        public OpportunityRepository(
            ILogger <OpportunityRepository> logger,
            IOptions <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            GraphUserAppService graphUserAppService,
            INotificationRepository notificationRepository,
            IUserProfileRepository userProfileRepository,
            IUserContext userContext,
            IOpportunityFactory opportunityFactory) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(notificationRepository, nameof(notificationRepository));
            Guard.Against.Null(userProfileRepository, nameof(userProfileRepository));
            Guard.Against.Null(userContext, nameof(userContext));
            Guard.Against.Null(opportunityFactory, nameof(opportunityFactory));

            _graphSharePointAppService = graphSharePointAppService;
            _graphUserAppService       = graphUserAppService;
            _notificationRepository    = notificationRepository;
            _userProfileRepository     = userProfileRepository;
            _userContext        = userContext;
            _opportunityFactory = opportunityFactory;
        }
Example #15
0
        public OpportunityFactory(
            ILogger <OpportunityFactory> logger,
            IOptionsMonitor <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            GraphUserAppService graphUserAppService,
            CardNotificationService cardNotificationService,
            INotesService notesService,
            ICheckListProcessService checkListProcessService,
            ICustomerDecisionProcessService customerDecisionProcessService,
            ICustomerFeedbackProcessService customerFeedbackProcessService,
            IProposalDocumentProcessService proposalStatusProcessService,
            INewOpportunityProcessService newOpportunityProcessService,
            IDashboardService dashboardService,
            IAuthorizationService authorizationService,
            IPermissionRepository permissionRepository,
            IStartProcessService startProcessService,
            IDashboardAnalysis dashboardAnalysis,
            GraphTeamsAppService graphTeamsAppService,
            IAddInHelper addInHelper,
            GraphTeamsOnBehalfService graphTeamsOnBeahalfService,
            IMemberService memberService,
            ITeamChannelService teamChannelService,
            IAzureKeyVaultService azureKeyVaultService) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(cardNotificationService, nameof(cardNotificationService));
            Guard.Against.Null(notesService, nameof(notesService));
            Guard.Against.Null(checkListProcessService, nameof(checkListProcessService));
            Guard.Against.Null(customerDecisionProcessService, nameof(customerDecisionProcessService));
            Guard.Against.Null(customerFeedbackProcessService, nameof(customerFeedbackProcessService));
            Guard.Against.Null(proposalStatusProcessService, nameof(proposalStatusProcessService));
            Guard.Against.Null(newOpportunityProcessService, nameof(newOpportunityProcessService));
            Guard.Against.Null(startProcessService, nameof(startProcessService));
            Guard.Against.Null(dashboardService, nameof(dashboardService));
            Guard.Against.Null(dashboardAnalysis, nameof(dashboardAnalysis));
            Guard.Against.Null(authorizationService, nameof(authorizationService));
            Guard.Against.Null(permissionRepository, nameof(permissionRepository));
            Guard.Against.Null(graphTeamsAppService, nameof(graphTeamsAppService));
            Guard.Against.Null(addInHelper, nameof(addInHelper));

            _graphSharePointAppService = graphSharePointAppService;
            _graphUserAppService       = graphUserAppService;

            _cardNotificationService        = cardNotificationService;
            _checkListProcessService        = checkListProcessService;
            _customerDecisionProcessService = customerDecisionProcessService;
            _customerFeedbackProcessService = customerFeedbackProcessService;
            _proposalStatusProcessService   = proposalStatusProcessService;
            _newOpportunityProcessService   = newOpportunityProcessService;
            _startProcessService            = startProcessService;
            _dashboardService          = dashboardService;
            _authorizationService      = authorizationService;
            _permissionRepository      = permissionRepository;
            _graphTeamsAppService      = graphTeamsAppService;
            _dashboardAnalysis         = dashboardAnalysis;
            _addInHelper               = addInHelper;
            _graphTeamsOnBehalfService = graphTeamsOnBeahalfService;
            _azureKeyVaultService      = azureKeyVaultService;

            _memberService      = memberService;
            _teamChannelService = teamChannelService;
            _notesService       = notesService;
        }