Beispiel #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="spoAuthorization"></param>
 /// <param name="generalSettings"></param>
 /// <param name="searchSettings"></param>
 public Search(ISPOAuthorization spoAuthorization,
     IConfigurationRoot configuration,
     ICustomLogger customLogger,
     IUsersDetails userDetails,
     ISPList spList,
     IOptions<GeneralSettings> generalSettings,
     IOptions<SharedSettings> sharedSettings,
     IOptions<LogTables> logTables,
     IOptions<SearchSettings> searchSettings,
     IOptions<CamlQueries> camlQueries,
     IOptions<ListNames> listNames,
     IOptions<ErrorSettings> errorSettings)
 {
     this.spoAuthorization = spoAuthorization;
     this.generalSettings = generalSettings.Value;
     this.searchSettings = searchSettings.Value;
     this.userDetails = userDetails;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
     this.spList = spList;
     this.camlQueries = camlQueries.Value;
     this.listNames = listNames.Value;
     this.sharedSettings = sharedSettings.Value;
     this.errorSettings = errorSettings.Value;
     this.configuration = configuration;
 }
 /// <summary>
 /// Constructor where all the dependencies are injected
 /// </summary>
 /// <param name="matterRepositoy"></param>
 /// <param name="matterSettings"></param>
 /// <param name="errorSettings"></param>
 /// <param name="spoAuthorization"></param>
 /// <param name="editFunctions"></param>
 /// <param name="validationFunctions"></param>
 /// <param name="customLogger"></param>
 /// <param name="logTables"></param>
 /// <param name="mailSettings"></param>
 /// <param name="camlQueries"></param>
 /// <param name="listNames"></param>
 /// <param name="generalSettings"></param>
 /// <param name="searchSettings"></param>
 /// <param name="userRepositoy"></param>
 /// <param name="externalSharing"></param>
 /// <param name="configuration"></param>
 /// <param name="userDetails"></param>
 public MatterProvision(IMatterRepository matterRepositoy, IOptions<MatterSettings> matterSettings,
     IOptions<ErrorSettings> errorSettings,
     ISPOAuthorization spoAuthorization, IEditFunctions editFunctions, IValidationFunctions validationFunctions,
     ICustomLogger customLogger, IOptions<LogTables> logTables,
     IOptions<MailSettings> mailSettings,
     IOptions<CamlQueries> camlQueries,
     IOptions<ListNames> listNames,
     IOptions<GeneralSettings> generalSettings,
     IOptions<SearchSettings> searchSettings, IUserRepository userRepositoy, 
     IExternalSharing externalSharing, IConfigurationRoot configuration, IUsersDetails userDetails
     )
 {
     this.matterRepositoy = matterRepositoy;
     this.matterSettings = matterSettings.Value;
     this.spoAuthorization = spoAuthorization;
     this.editFunctions = editFunctions;
     this.errorSettings = errorSettings.Value;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
     this.validationFunctions = validationFunctions;
     this.mailSettings = mailSettings.Value;
     this.camlQueries = camlQueries.Value;
     this.listNames = listNames.Value;
     this.searchSettings = searchSettings.Value;
     this.userRepositoy = userRepositoy;
     this.externalSharing = externalSharing;
     this.configuration = configuration;
     this.userDetails = userDetails;
     this.generalSettings = generalSettings.Value;
 }
Beispiel #3
0
 public MailMessageRepository(ISPOAuthorization spoAuthorization,
                              IOptions <GeneralSettings> generalSettings, IDocumentRepository documentRepository)
 {
     this.spoAuthorization   = spoAuthorization;
     this.generalSettings    = generalSettings.Value;
     this.documentRepository = documentRepository;
 }
 /// <summary>
 /// ConfigRepository with all the required dependency injections inserted
 /// </summary>
 /// <param name="generalSettings"></param>
 /// <param name="configSettings"></param>
 public ConfigRepository(ISPOAuthorization spoAuthorization,
                         IOptions <GeneralSettings> generalSettings,
                         IOptions <UIConfigSettings> configSettings)
 {
     this.generalSettings  = generalSettings.Value;
     this.configSettings   = configSettings.Value;
     this.spoAuthorization = spoAuthorization;
 }
        /// <summary>
        /// ConfigRepository with all the required dependency injections inserted
        /// </summary>
        /// <param name="generalSettings"></param>
        /// <param name="configSettings"></param>
        public ConfigRepository(ISPOAuthorization spoAuthorization,
            IOptions<GeneralSettings> generalSettings,
              IOptions<UIConfigSettings> configSettings)
        {
            this.generalSettings = generalSettings.Value;
            this.configSettings = configSettings.Value;
            this.spoAuthorization = spoAuthorization;

        }
Beispiel #6
0
 /// <summary>
 /// All the dependencies are injected 
 /// </summary>
 /// <param name="spoAuthorization"></param>
 /// <param name="generalSettings"></param>
 public SPPage(ISPOAuthorization spoAuthorization, IOptions<GeneralSettings> generalSettings, 
     IOptions<LogTables> logTables, ICustomLogger customLogger, ISPList spList, IOptions<MatterSettings> matterSettings)
 {
     this.generalSettings = generalSettings.Value;
     this.spoAuthorization = spoAuthorization;
     this.logTables = logTables.Value;
     this.customLogger = customLogger;
     this.spList = spList;
     this.matterSettings = matterSettings.Value;
 }
Beispiel #7
0
 /// <summary>
 /// All the dependencies are injected
 /// </summary>
 /// <param name="spoAuthorization"></param>
 /// <param name="generalSettings"></param>
 public SPPage(ISPOAuthorization spoAuthorization, IOptions <GeneralSettings> generalSettings,
               IOptions <LogTables> logTables, ICustomLogger customLogger, ISPList spList, IOptions <MatterSettings> matterSettings)
 {
     this.generalSettings  = generalSettings.Value;
     this.spoAuthorization = spoAuthorization;
     this.logTables        = logTables.Value;
     this.customLogger     = customLogger;
     this.spList           = spList;
     this.matterSettings   = matterSettings.Value;
 }
 public UploadHelperFunctions(ISPOAuthorization spoAuthorization, IOptions<ErrorSettings> errorSettings, IUserRepository userRepositoy,
     
     IDocumentRepository documentRepository, IOptions<DocumentSettings> documentSettings, IUploadHelperFunctionsUtility uploadHelperFunctionsUtility)
 {
     this.spoAuthorization = spoAuthorization;
     this.errorSettings = errorSettings.Value;
     this.documentRepository = documentRepository;
     this.documentSettings = documentSettings.Value;
     this.uploadHelperFunctionsUtility = uploadHelperFunctionsUtility;
     this.userRepositoy = userRepositoy;            
 }
 public ExternalSharing(ISPOAuthorization spoAuthorization, IOptions <ListNames> listNames,
                        IOptions <GeneralSettings> generalSettings,
                        IOptions <MatterSettings> matterSettings,
                        IOptions <LogTables> logTables, IUsersDetails userDetails)
 {
     this.spoAuthorization = spoAuthorization;
     this.listNames        = listNames.Value;
     this.generalSettings  = generalSettings.Value;
     this.matterSettings   = matterSettings.Value;
     this.logTables        = logTables.Value;
     this.userDetails      = userDetails;
 }
Beispiel #10
0
        /// <summary>
        /// Constructory which will inject all the related dependencies related to matter
        /// </summary>
        /// <param name="search"></param>
        public DocumentRepository(ISearch search, IOptions <SearchSettings> searchSettings,
                                  IOptions <ListNames> listNames, ISPList spList, IOptions <CamlQueries> camlQueries, IOptions <DocumentSettings> documentSettings, IOptions <MailSettings> mailSettings, ISPOAuthorization spoAuthorization)
        {
            this.search         = search;
            this.searchSettings = searchSettings.Value;
            this.listNames      = listNames.Value;
            this.spList         = spList;
            this.camlQueries    = camlQueries.Value;

            this.documentSettings = documentSettings.Value;
            this.mailSettings     = mailSettings.Value;
            this.spoAuthorization = spoAuthorization;
        }
 public MatterProvision(IMatterRepository matterRepositoy, IOptions<MatterSettings> matterSettings, IOptions<ErrorSettings> errorSettings,
     ISPOAuthorization spoAuthorization, IEditFunctions editFunctions, ValidationFunctions validationFunctions,
     ICustomLogger customLogger, IOptions<LogTables> logTables, IOptions<MailSettings> mailSettings)
 {
     this.matterRepositoy = matterRepositoy;
     this.matterSettings = matterSettings.Value;
     this.spoAuthorization = spoAuthorization;
     this.editFunctions = editFunctions;
     this.errorSettings = errorSettings.Value;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
     this.validationFunctions = validationFunctions;
     this.mailSettings = mailSettings.Value;
 }
 public MatterProvision(IMatterRepository matterRepositoy, IOptions <MatterSettings> matterSettings, IOptions <ErrorSettings> errorSettings,
                        ISPOAuthorization spoAuthorization, IEditFunctions editFunctions, ValidationFunctions validationFunctions,
                        ICustomLogger customLogger, IOptions <LogTables> logTables, IOptions <MailSettings> mailSettings)
 {
     this.matterRepositoy     = matterRepositoy;
     this.matterSettings      = matterSettings.Value;
     this.spoAuthorization    = spoAuthorization;
     this.editFunctions       = editFunctions;
     this.errorSettings       = errorSettings.Value;
     this.customLogger        = customLogger;
     this.logTables           = logTables.Value;
     this.validationFunctions = validationFunctions;
     this.mailSettings        = mailSettings.Value;
 }
        public ExternalSharing(ISPOAuthorization spoAuthorization, IOptions<ListNames> listNames, 
            IOptions<GeneralSettings> generalSettings, 
            IOptions<MatterSettings> matterSettings, 
            IOptions<LogTables> logTables, IUsersDetails userDetails, ICustomLogger customLogger)
        {
            this.spoAuthorization = spoAuthorization;
            this.listNames = listNames.Value;
            this.generalSettings = generalSettings.Value;
            this.matterSettings = matterSettings.Value;
            this.logTables = logTables.Value;
            this.userDetails = userDetails;
            this.customLogger = customLogger;

        }
 /// <summary>
 /// Constructor where all the required dependencies are injected
 /// </summary>
 /// <param name="errorSettings"></param>
 /// <param name="documentSettings"></param>
 /// <param name="spoAuthorization"></param>
 /// <param name="matterCenterServiceFunctions"></param>
 /// <param name="documentRepositoy"></param>
 public DocumentController(IOptions <ErrorSettings> errorSettings,
                           IOptions <DocumentSettings> documentSettings,
                           ISPOAuthorization spoAuthorization,
                           IMatterCenterServiceFunctions matterCenterServiceFunctions,
                           IDocumentRepository documentRepositoy,
                           ICustomLogger customLogger, IOptions <LogTables> logTables
                           )
 {
     this.errorSettings                = errorSettings.Value;
     this.documentSettings             = documentSettings.Value;
     this.spoAuthorization             = spoAuthorization;
     this.matterCenterServiceFunctions = matterCenterServiceFunctions;
     this.documentRepositoy            = documentRepositoy;
     this.customLogger = customLogger;
     this.logTables    = logTables.Value;
 }
Beispiel #15
0
 /// <summary>
 /// Constructor where all the required dependencies are injected
 /// </summary>
 /// <param name="errorSettings"></param>
 /// <param name="matterSettings"></param>
 /// <param name="spoAuthorization"></param>
 /// <param name="matterCenterServiceFunctions"></param>
 public SharedController(IOptions <ErrorSettings> errorSettings,
                         IOptions <SharedSettings> sharedSettings,
                         ISPOAuthorization spoAuthorization,
                         IMatterCenterServiceFunctions matterCenterServiceFunctions,
                         ICustomLogger customLogger, IOptions <LogTables> logTables,
                         ISharedRepository sharedRepository
                         )
 {
     this.errorSettings                = errorSettings.Value;
     this.spoAuthorization             = spoAuthorization;
     this.matterCenterServiceFunctions = matterCenterServiceFunctions;
     this.sharedRepository             = sharedRepository;
     this.customLogger   = customLogger;
     this.logTables      = logTables.Value;
     this.sharedSettings = sharedSettings.Value;
 }
 /// <summary>
 /// Constructor where all the required dependencies are injected
 /// </summary>
 /// <param name="errorSettings"></param>
 /// <param name="taxonomySettings"></param>
 /// <param name="generalSettings"></param>
 /// <param name="spoAuthorization"></param>
 /// <param name="matterCenterServiceFunctions"></param>
 /// <param name="taxonomyRepository"></param>
 public TaxonomyController(IOptions<ErrorSettings> errorSettings, 
     IOptions<TaxonomySettings> taxonomySettings, 
     IOptions<GeneralSettings> generalSettings,
     ISPOAuthorization spoAuthorization, 
     IMatterCenterServiceFunctions matterCenterServiceFunctions,
     ITaxonomyRepository taxonomyRepository, ICustomLogger customLogger, IOptions<LogTables> logTables)
 {
     this.errorSettings = errorSettings.Value;
     this.taxonomySettings = taxonomySettings.Value;
     this.generalSettings = generalSettings.Value;
     this.spoAuthorization = spoAuthorization;
     this.matterCenterServiceFunctions = matterCenterServiceFunctions;            
     this.taxonomyRepository = taxonomyRepository;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
 }
 /// <summary>
 /// Constructor where all the required dependencies are injected
 /// </summary>
 /// <param name="errorSettings"></param>
 /// <param name="documentSettings"></param>
 /// <param name="spoAuthorization"></param>
 /// <param name="matterCenterServiceFunctions"></param>
 /// <param name="documentRepositoy"></param>
 public DocumentController(IOptions<ErrorSettings> errorSettings,
     IOptions<DocumentSettings> documentSettings,
     ISPOAuthorization spoAuthorization,
     IMatterCenterServiceFunctions matterCenterServiceFunctions,
     IDocumentRepository documentRepositoy,
     ICustomLogger customLogger, IOptions<LogTables> logTables
     )
 {
     this.errorSettings = errorSettings.Value;
     this.documentSettings = documentSettings.Value;
     this.spoAuthorization = spoAuthorization;
     this.matterCenterServiceFunctions = matterCenterServiceFunctions;
     this.documentRepositoy = documentRepositoy;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
 }
 /// <summary>
 /// Constructor where all the required dependencies are injected
 /// </summary>
 /// <param name="errorSettings"></param>
 /// <param name="matterSettings"></param>
 /// <param name="spoAuthorization"></param>
 /// <param name="matterCenterServiceFunctions"></param>
 public SharedController(IOptions<ErrorSettings> errorSettings,
     IOptions<SharedSettings> sharedSettings,
     ISPOAuthorization spoAuthorization,
     IMatterCenterServiceFunctions matterCenterServiceFunctions,            
     ICustomLogger customLogger, IOptions<LogTables> logTables,
     ISharedRepository sharedRepository
     )
 {
     this.errorSettings = errorSettings.Value;            
     this.spoAuthorization = spoAuthorization;
     this.matterCenterServiceFunctions = matterCenterServiceFunctions;
     this.sharedRepository = sharedRepository;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
     this.sharedSettings = sharedSettings.Value;
 }
 /// <summary>
 /// Constructor where all the required dependencies are injected
 /// </summary>
 /// <param name="errorSettings"></param>
 /// <param name="taxonomySettings"></param>
 /// <param name="generalSettings"></param>
 /// <param name="spoAuthorization"></param>
 /// <param name="matterCenterServiceFunctions"></param>
 /// <param name="taxonomyRepository"></param>
 public TaxonomyController(IOptions <ErrorSettings> errorSettings,
                           IOptions <TaxonomySettings> taxonomySettings,
                           IOptions <GeneralSettings> generalSettings,
                           ISPOAuthorization spoAuthorization,
                           IMatterCenterServiceFunctions matterCenterServiceFunctions,
                           ITaxonomyRepository taxonomyRepository, ICustomLogger customLogger, IOptions <LogTables> logTables)
 {
     this.errorSettings                = errorSettings.Value;
     this.taxonomySettings             = taxonomySettings.Value;
     this.generalSettings              = generalSettings.Value;
     this.spoAuthorization             = spoAuthorization;
     this.matterCenterServiceFunctions = matterCenterServiceFunctions;
     this.taxonomyRepository           = taxonomyRepository;
     this.customLogger = customLogger;
     this.logTables    = logTables.Value;
 }
Beispiel #20
0
        /// <summary>
        /// Constructor to inject required dependencies
        /// </summary>
        /// <param name="generalSettings"></param>
        /// <param name="taxonomySettings"></param>
        /// <param name="logTables"></param>
        /// <param name="spoAuthorization"></param>
        /// <param name="customLogger"></param>
        public Taxonomy(IOptions <GeneralSettings> generalSettings,
                        IOptions <TaxonomySettings> taxonomySettings,
                        IOptions <ContentTypesConfig> contentTypeSettings,
                        IOptions <LogTables> logTables,
                        ISPOAuthorization spoAuthorization, ICustomLogger customLogger,
                        IConfigurationRoot configuration)
        {
            this.generalSettings     = generalSettings.Value;
            this.taxonomySettings    = taxonomySettings.Value;
            this.contentTypeSettings = contentTypeSettings.Value;
            this.logTables           = logTables.Value;
            this.spoAuthorization    = spoAuthorization;
            taxonomyResponseVM       = new TaxonomyResponseVM();
            this.customLogger        = customLogger;

            this.configuration = configuration;
        }
Beispiel #21
0
 /// <summary>
 /// Constructor to inject required dependencies
 /// </summary>
 /// <param name="generalSettings"></param>
 /// <param name="taxonomySettings"></param>
 /// <param name="logTables"></param>
 /// <param name="spoAuthorization"></param>
 /// <param name="customLogger"></param>
 public Taxonomy(IOptions<GeneralSettings> generalSettings, 
     IOptions<TaxonomySettings> taxonomySettings,
     IOptions<ContentTypesConfig> contentTypeSettings,
     IOptions<LogTables> logTables,
     ISPOAuthorization spoAuthorization, ICustomLogger customLogger, 
     IConfigurationRoot configuration)
 {
     this.generalSettings = generalSettings.Value;
     this.taxonomySettings = taxonomySettings.Value;
     this.contentTypeSettings = contentTypeSettings.Value;
     this.logTables = logTables.Value;
     this.spoAuthorization = spoAuthorization;
     taxonomyResponseVM = new TaxonomyResponseVM();
     this.customLogger = customLogger;
     
     this.configuration = configuration;
 }       
 /// <summary>
 /// Constructir where all the dependencies are injected
 /// </summary>
 /// <param name="spoAuthorization"></param>
 public UsersDetails(IOptions <MatterSettings> matterSettings,
                     IOptions <ListNames> listNames,
                     ISPOAuthorization spoAuthorization,
                     ICustomLogger customLogger,
                     IOptions <LogTables> logTables,
                     IHttpContextAccessor httpContextAccessor,
                     IOptions <GeneralSettings> generalSettings)
 {
     this.matterSettings   = matterSettings.Value;
     this.listNames        = listNames.Value;
     this.spoAuthorization = spoAuthorization;
     //this.spList = spList;
     this.customLogger        = customLogger;
     this.logTables           = logTables.Value;
     this.httpContextAccessor = httpContextAccessor;
     this.generalSettings     = generalSettings.Value;
 }
Beispiel #23
0
 /// <summary>
 /// Constructir where all the dependencies are injected
 /// </summary>
 /// <param name="spoAuthorization"></param>
 public UsersDetails(IOptions<MatterSettings> matterSettings, 
     IOptions<ListNames> listNames,
     ISPOAuthorization spoAuthorization, 
     ICustomLogger customLogger, 
     IOptions<LogTables> logTables,
     IHttpContextAccessor httpContextAccessor,
     IOptions<GeneralSettings> generalSettings)
 {
     this.matterSettings = matterSettings.Value;
     this.listNames = listNames.Value;
     this.spoAuthorization = spoAuthorization;
     //this.spList = spList;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
     this.httpContextAccessor = httpContextAccessor;
     this.generalSettings = generalSettings.Value;
 }
Beispiel #24
0
 /// <summary>
 /// All the dependencies are injected into the constructor
 /// </summary>
 /// <param name="spoAuthorization"></param>
 /// <param name="generalSettings"></param>
 public SPList(ISPOAuthorization spoAuthorization,
     IOptions<CamlQueries> camlQueries, 
     IOptions<ErrorSettings> errorSettings,
     IOptions<SearchSettings> searchSettings,
     IOptions<ContentTypesConfig> contentTypesConfig,
     ICustomLogger customLogger, 
     IOptions<LogTables> logTables, 
     IOptions<MailSettings> mailSettings,
     IOptions<GeneralSettings> generalSettings,
     IHostingEnvironment hostingEnvironment, 
     IUsersDetails userDetails)
 {
     this.searchSettings = searchSettings.Value;
     this.camlQueries = camlQueries.Value;
     this.spoAuthorization = spoAuthorization;
     this.customLogger = customLogger;
     this.logTables = logTables.Value;
     this.mailSettings = mailSettings.Value;
     this.hostingEnvironment = hostingEnvironment;
     this.errorSettings = errorSettings.Value;
     this.userDetails = userDetails;
     this.generalSettings = generalSettings.Value;
 }
 /// <summary>
 /// All the required dependencies are injected into constructor
 /// </summary>
 /// <param name="spoAuthorization"></param>
 /// <param name="taxonomy"></param>
 /// <param name="site"></param>
 public TaxonomyRepository(ISPOAuthorization spoAuthorization, ITaxonomy taxonomy, ISite site)
 {
     this.taxonomy = taxonomy;
     this.site     = site;
 }
Beispiel #26
0
 public Site(ISPOAuthorization spoAuthorization)
 {
     this.spoAuthorization = spoAuthorization;
 }
Beispiel #27
0
 public Site(ISPOAuthorization spoAuthorization)
 {
     this.spoAuthorization = spoAuthorization;
 }
 /// <summary>
 /// All the required dependencies are injected into constructor
 /// </summary>        
 /// <param name="spoAuthorization"></param>
 /// <param name="taxonomy"></param>
 /// <param name="site"></param>
 public TaxonomyRepository(ISPOAuthorization spoAuthorization, ITaxonomy taxonomy, ISite site)
 {
     this.taxonomy = taxonomy;
     this.site = site;
 }