/// <summary> /// Initializes a new instance of the <see cref="DefaultMediaService"/> class. /// </summary> public DefaultMediaService(IRepository repository, IUnitOfWork unitOfWork, IAccessControlService accessControlService, ICmsConfiguration configuration) { this.repository = repository; this.unitOfWork = unitOfWork; this.accessControlService = accessControlService; this.configuration = configuration; }
public AccessControlServiceDemo(String defaultRepository, String secondaryRepository, String userName, String password) : base(defaultRepository, secondaryRepository, userName, password) { ServiceFactory serviceFactory = ServiceFactory.Instance; accessControlService = serviceFactory.GetRemoteService<IAccessControlService>(DemoServiceContext); }
public DefaultIndexerService(ICmsConfiguration cmsConfiguration, IRepository repository, ISecurityService securityService, IAccessControlService accessControlService) { this.repository = repository; this.cmsConfiguration = cmsConfiguration; this.securityService = securityService; this.accessControlService = accessControlService; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultSitemapService" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="unitOfWork">The unit of work.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="accessControlService">The access control service.</param> public DefaultSitemapService(IRepository repository, IUnitOfWork unitOfWork, ICmsConfiguration cmsConfiguration, IAccessControlService accessControlService) { this.repository = repository; this.unitOfWork = unitOfWork; this.cmsConfiguration = cmsConfiguration; this.accessControlService = accessControlService; }
public UploadFileService(IRepository repository, IMediaFileService mediaFileService, IAccessControlService accessControlService, ICmsConfiguration configuration) { this.repository = repository; this.mediaFileService = mediaFileService; this.accessControlService = accessControlService; this.configuration = configuration; }
public DefaultDraftService(ICmsConfiguration cmsConfiguration, IAccessControlService accessControlService, IRepository repository, IUnitOfWork unitOfWork) { this.accessControlService = accessControlService; this.cmsConfiguration = cmsConfiguration; this.repository = repository; this.unitOfWork = unitOfWork; }
public FilesService(IRepository repository, IMediaFileService fileService, IMediaFileUrlResolver fileUrlResolver, IAccessControlService accessControlService) { this.repository = repository; this.fileService = fileService; this.fileUrlResolver = fileUrlResolver; this.accessControlService = accessControlService; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultLayoutService" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="optionService">The option service.</param> /// <param name="configuration">The configuration.</param> /// <param name="accessControlService">The access control service.</param> public DefaultLayoutService(IRepository repository, IOptionService optionService, ICmsConfiguration configuration, IAccessControlService accessControlService) { this.repository = repository; this.optionService = optionService; this.configuration = configuration; this.accessControlService = accessControlService; }
public PagesService(IRepository repository, IOptionService optionService, IMediaFileUrlResolver fileUrlResolver, ISearchPagesService searchPagesService, IAccessControlService accessControlService) { this.repository = repository; this.optionService = optionService; this.fileUrlResolver = fileUrlResolver; this.searchPagesService = searchPagesService; this.accessControlService = accessControlService; }
public DefaultPageCloneService(IPageService pageService, IUrlService urlService, ISecurityService securityService, IAccessControlService accessControlService, IRepository repository, IUnitOfWork unitOfWork) { this.pageService = pageService; this.urlService = urlService; this.securityService = securityService; this.accessControlService = accessControlService; this.unitOfWork = unitOfWork; this.repository = repository; }
public DefaultUntranslatedPageListService(ICategoryService categoryService, ICmsConfiguration configuration, ILanguageService languageService, IAccessControlService accessControlService, ILayoutService layoutService, IUnitOfWork unitOfWork, IRepository repository) : base(categoryService, configuration, languageService, accessControlService, layoutService, unitOfWork) { this.repository = repository; }
/// <summary> /// Initializes a new instance of the <see cref="BlogPostsService"/> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="fileUrlResolver">The file URL resolver.</param> /// <param name="accessControlService">The access control service.</param> public BlogPostsService( IRepository repository, IMediaFileUrlResolver fileUrlResolver, IAccessControlService accessControlService, ICategoryService categoryService) { this.repository = repository; this.fileUrlResolver = fileUrlResolver; this.accessControlService = accessControlService; this.categoryService = categoryService; }
public DefaultPageListService(ICategoryService categoryService, ICmsConfiguration configuration, ILanguageService languageService, IAccessControlService accessControlService, ILayoutService layoutService, IUnitOfWork unitOfWork) { this.configuration = configuration; this.categoryService = categoryService; this.languageService = languageService; this.accessControlService = accessControlService; this.layoutService = layoutService; this.unitOfWork = unitOfWork; }
public DefaultPageService(IRepository repository, IRedirectService redirectService, IUrlService urlService, ISecurityService securityService, IAccessControlService accessControlService, ICacheService cacheService) { this.repository = repository; this.redirectService = redirectService; this.urlService = urlService; this.securityService = securityService; this.accessControlService = accessControlService; this.cacheService = cacheService; temporaryPageCache = new Dictionary<string, IPage>(); }
/// <summary> /// Initializes a new instance of the <see cref="NodeService" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="unitOfWork">The unit of work.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="securityService">The security service.</param> /// <param name="sitemapService">The sitemap service.</param> public NodeService( IRepository repository, IUnitOfWork unitOfWork, ICmsConfiguration cmsConfiguration, IAccessControlService accessControlService, ISecurityService securityService, Module.Pages.Services.ISitemapService sitemapService) { this.repository = repository; this.unitOfWork = unitOfWork; this.cmsConfiguration = cmsConfiguration; this.accessControlService = accessControlService; this.securityService = securityService; this.sitemapService = sitemapService; }
/// <summary> /// Initializes a new instance of the <see cref="NodeService" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="unitOfWork">The unit of work.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="securityService">The security service.</param> /// <param name="categoryService">The category service.</param> public NodeService( IRepository repository, IUnitOfWork unitOfWork, ICmsConfiguration cmsConfiguration, IAccessControlService accessControlService, ISecurityService securityService, Module.Root.Services.ICategoryService categoryService) { this.repository = repository; this.unitOfWork = unitOfWork; this.cmsConfiguration = cmsConfiguration; this.accessControlService = accessControlService; this.securityService = securityService; this.categoryService = categoryService; }
/// <summary> /// Initializes a new instance of the <see cref="FilesService"/> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="mediaFileService">The media file service.</param> /// <param name="fileUrlResolver">The file URL resolver.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="fileService">The file service.</param> /// <param name="uploadFileService">The upload file service.</param> public FilesService( IRepository repository, IMediaFileService mediaFileService, IMediaFileUrlResolver fileUrlResolver, IAccessControlService accessControlService, IFileService fileService, IUploadFileService uploadFileService, ICategoryService categoryService) { this.repository = repository; this.mediaFileService = mediaFileService; this.fileUrlResolver = fileUrlResolver; this.accessControlService = accessControlService; this.fileService = fileService; this.categoryService = categoryService; Upload = uploadFileService; }
/// <summary> /// Initializes a new instance of the <see cref="FileService" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="fileService">The file service.</param> /// <param name="fileUrlResolver">The file URL resolver.</param> /// <param name="unitOfWork">The unit of work.</param> /// <param name="tagService">The tag service.</param> /// <param name="mediaService">The media service.</param> /// <param name="accessControlService">The access control service.</param> public FileService( IRepository repository, IMediaFileService fileService, IMediaFileUrlResolver fileUrlResolver, IUnitOfWork unitOfWork, ITagService tagService, IMediaService mediaService, IAccessControlService accessControlService) { this.repository = repository; this.fileService = fileService; this.fileUrlResolver = fileUrlResolver; this.unitOfWork = unitOfWork; this.tagService = tagService; this.mediaService = mediaService; this.accessControlService = accessControlService; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultBlogService" /> class. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="urlService">The URL service.</param> /// <param name="repository">The repository.</param> /// <param name="optionService">The option service.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="securityService">The security service.</param> /// <param name="contentService">The content service.</param> /// <param name="tagService">The tag service.</param> /// <param name="pageService">The page service.</param> /// <param name="redirectService">The redirect service.</param> /// <param name="masterPageService">The master page service.</param> /// <param name="unitOfWork">The unit of work.</param> public DefaultBlogService(ICmsConfiguration configuration, IUrlService urlService, IRepository repository, IOptionService optionService, IAccessControlService accessControlService, ISecurityService securityService, IContentService contentService, ITagService tagService, IPageService pageService, IRedirectService redirectService, IMasterPageService masterPageService, IUnitOfWork unitOfWork) { this.configuration = configuration; this.urlService = urlService; this.repository = repository; this.optionService = optionService; this.accessControlService = accessControlService; this.securityService = securityService; this.contentService = contentService; this.pageService = pageService; this.redirectService = redirectService; this.masterPageService = masterPageService; this.tagService = tagService; this.unitOfWork = unitOfWork; }
public DefaultPageService( IRepository repository, IRedirectService redirectService, IUrlService urlService, IAccessControlService accessControlService, ICmsConfiguration cmsConfiguration, ISitemapService sitemapService, IUnitOfWork unitOfWork) { this.repository = repository; this.redirectService = redirectService; this.urlService = urlService; this.accessControlService = accessControlService; this.cmsConfiguration = cmsConfiguration; this.unitOfWork = unitOfWork; this.sitemapService = sitemapService; temporaryPageCache = new Dictionary<string, IPage>(); }
public QuizViewModel() { var card = new Card { Question = "This value was set on the card" }; this.Title = card.Question; this.CardCount = 10; this.CardsCompleted = 5; this.CardsCorrect = 3; this.CardsIncorrect = 2; this.QuizDate = DateTime.Now.ToString(DateTimeFormatInfo.CurrentInfo.ShortDatePattern); this.accessControlService = this.GetService<IAccessControlService>(); // var result = accessControlService.GetIdentityProviders().Result; // this.Title = result.Select(x => x.Name).First(); // var httpClient = new HttpClient(); // var response = httpClient.GetAsync(Urls.IDENTITY_PROVIDERS).Result; // var json = response.Content.ReadAsStringAsync().Result; // var result = JsonConvert.DeserializeObject<IEnumerable<IdentityProvider>>(json); }
public BlogPostsService(IRepository repository, IMediaFileUrlResolver fileUrlResolver, IAccessControlService accessControlService) { this.repository = repository; this.fileUrlResolver = fileUrlResolver; this.accessControlService = accessControlService; }
/// <summary> /// Initializes a new instance of the <see cref="GetUntranslatedPagesListCommand" /> class. /// </summary> /// <param name="categoryService">The category service.</param> /// <param name="configuration">The configuration.</param> /// <param name="languageService">The language service.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="layoutService">The layout service.</param> public GetUntranslatedPagesListCommand(ICategoryService categoryService, ICmsConfiguration configuration, ILanguageService languageService, IAccessControlService accessControlService, ILayoutService layoutService) : base(categoryService, configuration, languageService, accessControlService, layoutService) { }
public ApiRootController(RegisterDbContext dbContext, ISearchService searchService, IRegisterService registerService, IRegisterItemService registerItemService, IInspireDatasetService inspireDatasetService, IInspireMonitoringService inspireMonitoringService, IAccessControlService accessControlService, ISynchronizationService synchronizationService, IStatusReportService statusReportService) { _registerItemService = registerItemService; _inspireDatasetService = inspireDatasetService; _searchService = searchService; _registerService = registerService; _inspireMonitoringService = inspireMonitoringService; _accessControlService = accessControlService; _synchronizationService = synchronizationService; _statusReportService = statusReportService; db = dbContext; }
public GatekeeperService(IConfigSource config, ISimulationService simService) { if (!m_Initialized) { m_Initialized = true; IConfig serverConfig = config.Configs["GatekeeperService"]; if (serverConfig == null) { throw new Exception(String.Format("No section GatekeeperService in config file")); } string accountService = serverConfig.GetString("UserAccountService", String.Empty); string homeUsersService = serverConfig.GetString("UserAgentService", string.Empty); string gridService = serverConfig.GetString("GridService", String.Empty); string presenceService = serverConfig.GetString("PresenceService", String.Empty); string simulationService = serverConfig.GetString("SimulationService", String.Empty); string gridUserService = serverConfig.GetString("GridUserService", String.Empty); //string bansService = serverConfig.GetString("BansService", String.Empty); string accessControlService = serverConfig.GetString("AccessControlService", string.Empty); // These are mandatory, the others aren't if (gridService == string.Empty || presenceService == string.Empty) { throw new Exception("Incomplete specifications, Gatekeeper Service cannot function."); } string scope = serverConfig.GetString("ScopeID", UUID.Zero.ToString()); UUID.TryParse(scope, out m_ScopeID); //m_WelcomeMessage = serverConfig.GetString("WelcomeMessage", "Welcome to OpenSim!"); m_AllowTeleportsToAnyRegion = serverConfig.GetBoolean("AllowTeleportsToAnyRegion", true); m_ExternalName = Util.GetConfigVarFromSections <string>(config, "GatekeeperURI", new string[] { "Startup", "Hypergrid", "GatekeeperService" }, String.Empty); m_ExternalName = serverConfig.GetString("ExternalName", m_ExternalName); if (m_ExternalName != string.Empty && !m_ExternalName.EndsWith("/")) { m_ExternalName = m_ExternalName + "/"; } try { m_Uri = new Uri(m_ExternalName); } catch { m_log.WarnFormat("[GATEKEEPER SERVICE]: Malformed gatekeeper address {0}", m_ExternalName); } Object[] args = new Object[] { config }; m_GridService = ServerUtils.LoadPlugin <IGridService>(gridService, args); m_PresenceService = ServerUtils.LoadPlugin <IPresenceService>(presenceService, args); if (accountService != string.Empty) { m_UserAccountService = ServerUtils.LoadPlugin <IUserAccountService>(accountService, args); } if (homeUsersService != string.Empty) { m_UserAgentService = ServerUtils.LoadPlugin <IUserAgentService>(homeUsersService, args); } if (gridUserService != string.Empty) { m_GridUserService = ServerUtils.LoadPlugin <IGridUserService>(gridUserService, args); } //if (bansService != string.Empty) // m_BansService = ServerUtils.LoadPlugin<IBansService>(bansService, args); if (accessControlService != string.Empty) { m_AccessControlService = ServerUtils.LoadPlugin <IAccessControlService>(accessControlService, args); } if (simService != null) { m_SimulationService = simService; } else if (simulationService != string.Empty) { m_SimulationService = ServerUtils.LoadPlugin <ISimulationService>(simulationService, args); } string[] possibleAccessControlConfigSections = new string[] { "AccessControl", "GatekeeperService" }; m_AllowedClients = Util.GetConfigVarFromSections <string>( config, "AllowedClients", possibleAccessControlConfigSections, string.Empty); m_DeniedClients = Util.GetConfigVarFromSections <string>( config, "DeniedClients", possibleAccessControlConfigSections, string.Empty); m_DeniedMacs = Util.GetConfigVarFromSections <string>( config, "DeniedMacs", possibleAccessControlConfigSections, string.Empty); m_ForeignAgentsAllowed = serverConfig.GetBoolean("ForeignAgentsAllowed", true); LoadDomainExceptionsFromConfig(serverConfig, "AllowExcept", m_ForeignsAllowedExceptions); LoadDomainExceptionsFromConfig(serverConfig, "DisallowExcept", m_ForeignsDisallowedExceptions); if (m_GridService == null || m_PresenceService == null || m_SimulationService == null) { throw new Exception("Unable to load a required plugin, Gatekeeper Service cannot function."); } IConfig presenceConfig = config.Configs["PresenceService"]; if (presenceConfig != null) { m_allowDuplicatePresences = presenceConfig.GetBoolean("AllowDuplicatePresences", m_allowDuplicatePresences); } IConfig messagingConfig = config.Configs["Messaging"]; if (messagingConfig != null) { m_messageKey = messagingConfig.GetString("MessageKey", String.Empty); } m_log.Debug("[GATEKEEPER SERVICE]: Starting..."); } }
/// <summary> /// Initializes a new instance of the <see cref="PageService" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="unitOfWork">The unit of work.</param> /// <param name="pagePropertiesService">The page properties service.</param> /// <param name="pageExistsService">The page exists service.</param> /// <param name="pageContentsService">The page contents service.</param> /// <param name="pageContentService">The page content service.</param> /// <param name="urlService">The URL service.</param> /// <param name="fileUrlResolver">The file URL resolver.</param> /// <param name="pageTranslationsService">The page translations service.</param> /// <param name="masterPageService">The master page service.</param> /// <param name="pageService">The page service.</param> /// <param name="sitemapService">The sitemap service.</param> /// <param name="tagService">The tag service.</param> /// <param name="accessControlService">The access control service.</param> public PageService( IRepository repository, IUnitOfWork unitOfWork, IPagePropertiesService pagePropertiesService, IPageExistsService pageExistsService, IPageContentsService pageContentsService, IPageContentService pageContentService, IUrlService urlService, IMediaFileUrlResolver fileUrlResolver, IPageTranslationsService pageTranslationsService, IMasterPageService masterPageService, Module.Pages.Services.IPageService pageService, ISitemapService sitemapService, ITagService tagService, IAccessControlService accessControlService) { this.pageContentsService = pageContentsService; this.pageContentService = pageContentService; this.pagePropertiesService = pagePropertiesService; this.pageExistsService = pageExistsService; this.repository = repository; this.urlService = urlService; this.fileUrlResolver = fileUrlResolver; this.pageTranslationsService = pageTranslationsService; }
/// <summary> /// Initializes a new instance of the <see cref="GetSitemapsListCommand" /> class. /// </summary> /// <param name="accessControlService">The access control service.</param> /// <param name="securityService">The security service.</param> /// <param name="configuration">The configuration.</param> public GetSitemapsListCommand(IAccessControlService accessControlService, ISecurityService securityService, ICmsConfiguration configuration) { this.configuration = configuration; this.securityService = securityService; this.accessControlService = accessControlService; }
/// <summary> /// Initializes a new instance of the <see cref="CategoryTreeService" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="unitOfWork">The unit of work.</param> /// <param name="treeService">The tree service.</param> /// <param name="nodeService">The node service.</param> /// <param name="nodesService">The nodes service.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="securityService">The security service.</param> /// <param name="categoryService">The category service.</param> /// <param name="categoryTreeService">The category tree service</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="categorizableItemsService">The categorizable items service</param> public CategoryTreeService( IRepository repository, IUnitOfWork unitOfWork, INodesTreeService treeService, INodeService nodeService, INodesService nodesService, IAccessControlService accessControlService, ISecurityService securityService, Module.Root.Services.ICategoryService categoryService, Module.Root.Services.Categories.Tree.ICategoryTreeService categoryTreeService, ICmsConfiguration cmsConfiguration, ICategorizableItemsService categorizableItemsService) { this.repository = repository; this.unitOfWork = unitOfWork; this.treeService = treeService; this.nodeService = nodeService; this.nodesService = nodesService; this.accessControlService = accessControlService; this.securityService = securityService; this.categoryService = categoryService; this.categoryTreeService = categoryTreeService; this.cmsConfiguration = cmsConfiguration; this.categorizableItemsService = categorizableItemsService; }
/// <summary> /// Initializes a new instance of the <see cref="GetUntranslatedPagesListCommand" /> class. /// </summary> /// <param name="categoryService">The category service.</param> /// <param name="configuration">The configuration.</param> /// <param name="languageService">The language service.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="layoutService">The layout service.</param> public GetUntranslatedPagesListCommand(ICategoryService categoryService, ICmsConfiguration configuration, ILanguageService languageService, IAccessControlService accessControlService, ILayoutService layoutService) : base(categoryService, configuration, languageService, accessControlService, layoutService) { }
public EPSGsController(ITranslationService translationService, RegisterDbContext dbContext, IRegisterItemService registerItemService, IRegisterService registerService, IAccessControlService accessControlService) { db = dbContext; _registerItemService = registerItemService; _registerService = registerService; _accessControlService = accessControlService; _translationService = translationService; }
public DefaultIndexerService(ICmsConfiguration cmsConfiguration, IRepository repository, ISecurityService securityService, IAccessControlService accessControlService) { this.repository = repository; this.cmsConfiguration = cmsConfiguration; this.securityService = securityService; this.accessControlService = accessControlService; }
/// <summary> /// Initializes a new instance of the <see cref="ConfirmUploadCommand" /> class. /// </summary> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="fileService">The file service.</param> /// <param name="accessControlService">The access control service.</param> public ConfirmUploadCommand(ICmsConfiguration cmsConfiguration, IMediaFileService fileService, IAccessControlService accessControlService) { this.accessControlService = accessControlService; this.cmsConfiguration = cmsConfiguration; this.fileService = fileService; }
public InspireDatasetsController(IInspireDatasetService inspireDatasetService, IAccessControlService accessControllService, IRegisterService registerService, IDatasetDeliveryService datasetDeliveryService, IRegisterItemService registerItemService) { _inspireDatasetService = inspireDatasetService; _accessControlService = accessControllService; _metadataService = new MetadataService(_db); _registerService = registerService; _datasetDeliveryService = datasetDeliveryService; _registerItemService = registerItemService; }
public DefaultBlogSaveService(ICmsConfiguration configuration, IUrlService urlService, IRepository repository, IOptionService blogOptionService, IAccessControlService accessControlService, ISecurityService securityService, IContentService contentService, ITagService tagService, IPageService pageService, IRedirectService redirectService, IMasterPageService masterPageService, IUnitOfWork unitOfWork, RootOptionService optionService, ICategoryService categoryService) : base(configuration, urlService, repository, blogOptionService, accessControlService, securityService, contentService, tagService, pageService, redirectService, masterPageService, unitOfWork, optionService, categoryService) { }
public UploadFileService(IRepository repository, IMediaFileService mediaFileService, IAccessControlService accessControlService, ICmsConfiguration configuration) { this.repository = repository; this.mediaFileService = mediaFileService; this.accessControlService = accessControlService; this.configuration = configuration; }
public GatekeeperService(IConfigSource config, ISimulationService simService) { if (!m_Initialized) { m_Initialized = true; IConfig serverConfig = config.Configs["GatekeeperService"]; if (serverConfig == null) { throw new Exception(String.Format("No section GatekeeperService in config file")); } string accountService = serverConfig.GetString("UserAccountService", string.Empty); string homeUsersService = serverConfig.GetString("UserAgentService", string.Empty); string gridService = serverConfig.GetString("GridService", string.Empty); string presenceService = serverConfig.GetString("PresenceService", string.Empty); string simulationService = serverConfig.GetString("SimulationService", string.Empty); string gridUserService = serverConfig.GetString("GridUserService", string.Empty); string bansService = serverConfig.GetString("BansService", string.Empty); string accessControlService = serverConfig.GetString("AccessControlService", string.Empty); // These are mandatory, the others aren't if (gridService == string.Empty || presenceService == string.Empty) { throw new Exception("Incomplete specifications, Gatekeeper Service cannot function."); } string scope = serverConfig.GetString("ScopeID", UUID.Zero.ToString()); UUID.TryParse(scope, out m_ScopeID); //m_WelcomeMessage = serverConfig.GetString("WelcomeMessage", "Welcome to OpenSim!"); m_AllowTeleportsToAnyRegion = serverConfig.GetBoolean("AllowTeleportsToAnyRegion", true); string[] sections = new string[] { "Const, Startup", "Hypergrid", "GatekeeperService" }; string externalName = Util.GetConfigVarFromSections <string>(config, "GatekeeperURI", sections, string.Empty); if (string.IsNullOrEmpty(externalName)) { externalName = serverConfig.GetString("ExternalName", string.Empty); } m_gatekeeperHost = new OSHHTPHost(externalName, true); if (!m_gatekeeperHost.IsResolvedHost) { m_log.Error((m_gatekeeperHost.IsValidHost ? "Could not resolve GatekeeperURI" : "GatekeeperURI is a invalid host ") + externalName ?? ""); throw new Exception("GatekeeperURI is invalid"); } m_gatekeeperURL = m_gatekeeperHost.URIwEndSlash; string gatekeeperURIAlias = Util.GetConfigVarFromSections <string>(config, "GatekeeperURIAlias", sections, string.Empty); if (!string.IsNullOrWhiteSpace(gatekeeperURIAlias)) { string[] alias = gatekeeperURIAlias.Split(','); for (int i = 0; i < alias.Length; ++i) { OSHHTPHost tmp = new OSHHTPHost(alias[i].Trim(), false); if (tmp.IsValidHost) { if (m_gateKeeperAlias == null) { m_gateKeeperAlias = new HashSet <OSHHTPHost>(); } m_gateKeeperAlias.Add(tmp); } } } object[] args = new object[] { config }; m_GridService = ServerUtils.LoadPlugin <IGridService>(gridService, args); m_PresenceService = ServerUtils.LoadPlugin <IPresenceService>(presenceService, args); if (accountService != string.Empty) { m_UserAccountService = ServerUtils.LoadPlugin <IUserAccountService>(accountService, args); } if (homeUsersService != string.Empty) { m_UserAgentService = ServerUtils.LoadPlugin <IUserAgentService>(homeUsersService, args); } if (gridUserService != string.Empty) { m_GridUserService = ServerUtils.LoadPlugin <IGridUserService>(gridUserService, args); } //if (bansService != string.Empty) // m_BansService = ServerUtils.LoadPlugin<IBansService>(bansService, args); if (accessControlService != string.Empty) { m_AccessControlService = ServerUtils.LoadPlugin <IAccessControlService>(accessControlService, args); } if (simService != null) { m_SimulationService = simService; } else if (simulationService != string.Empty) { m_SimulationService = ServerUtils.LoadPlugin <ISimulationService>(simulationService, args); } string[] possibleAccessControlConfigSections = new string[] { "AccessControl", "GatekeeperService" }; m_AllowedClients = Util.GetConfigVarFromSections <string>( config, "AllowedClients", possibleAccessControlConfigSections, string.Empty); m_DeniedClients = Util.GetConfigVarFromSections <string>( config, "DeniedClients", possibleAccessControlConfigSections, string.Empty); m_DeniedMacs = Util.GetConfigVarFromSections <string>( config, "DeniedMacs", possibleAccessControlConfigSections, string.Empty); m_ForeignAgentsAllowed = serverConfig.GetBoolean("ForeignAgentsAllowed", true); LoadDomainExceptionsFromConfig(serverConfig, "AllowExcept", m_ForeignsAllowedExceptions); LoadDomainExceptionsFromConfig(serverConfig, "DisallowExcept", m_ForeignsDisallowedExceptions); if (m_GridService == null || m_PresenceService == null || m_SimulationService == null) { throw new Exception("Unable to load a required plugin, Gatekeeper Service cannot function."); } IConfig presenceConfig = config.Configs["PresenceService"]; if (presenceConfig != null) { m_allowDuplicatePresences = presenceConfig.GetBoolean("AllowDuplicatePresences", m_allowDuplicatePresences); } IConfig messagingConfig = config.Configs["Messaging"]; if (messagingConfig != null) { m_messageKey = messagingConfig.GetString("MessageKey", String.Empty); } m_log.Debug("[GATEKEEPER SERVICE]: Starting..."); } }
public AlertsController(IRegisterItemService registerItemServive, IRegisterService registerService, IAccessControlService accessControlService, IVersioningService versioningService) { _registerItemService = registerItemServive; _registerService = registerService; _accessControlService = accessControlService; _versioningService = versioningService; }
public DefaultBlogSaveService(ICmsConfiguration configuration, IUrlService urlService, IRepository repository, IOptionService optionService, IAccessControlService accessControlService, ISecurityService securityService, IContentService contentService, ITagService tagService, IPageService pageService, IRedirectService redirectService, IMasterPageService masterPageService, IUnitOfWork unitOfWork) : base(configuration, urlService, repository, optionService, accessControlService, securityService, contentService, tagService, pageService, redirectService, masterPageService, unitOfWork) { }
// *** HJELPEMETODER private DatasetsController CreateController(RegisterDbContext dbContext, IRegisterService registerService, IRegisterItemService registerItemService, IAccessControlService accessControlService, IDatasetDeliveryService datasetDeliveryService, ITranslationService translationService) { var controller = new DatasetsController(dbContext, registerItemService, registerService, accessControlService, datasetDeliveryService, translationService, null, null); return(controller); }
/// <summary> /// Initializes a new instance of the <see cref="DownloadFileCommand" /> class. /// </summary> /// <param name="storageService">The storage service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="accessControlService">The access control service.</param> public DownloadFileCommand(IStorageService storageService, ICmsConfiguration cmsConfiguration, IAccessControlService accessControlService) { this.storageService = storageService; this.cmsConfiguration = cmsConfiguration; this.accessControlService = accessControlService; }
/// <summary> /// Initializes a new instance of the <see cref="SuggestPagesCommand" /> class. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="accessControlService">The access control service.</param> public SuggestPagesCommand(ICmsConfiguration configuration, IAccessControlService accessControlService) { this.configuration = configuration; this.accessControlService = accessControlService; }
/// <summary> /// Initializes a new instance of the <see cref="SitemapService" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="unitOfWork">The unit of work.</param> /// <param name="treeService">The tree service.</param> /// <param name="nodeService">The node service.</param> /// <param name="nodesService">The nodes service.</param> /// <param name="tagService">The tag service.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="securityService">The security service.</param> /// <param name="sitemapService">The sitemap service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> public SitemapService( IRepository repository, IUnitOfWork unitOfWork, ISitemapTreeService treeService, INodeService nodeService, INodesService nodesService, ITagService tagService, IAccessControlService accessControlService, ISecurityService securityService, Module.Pages.Services.ISitemapService sitemapService, ICmsConfiguration cmsConfiguration) { this.repository = repository; this.unitOfWork = unitOfWork; this.treeService = treeService; this.nodeService = nodeService; this.nodesService = nodesService; this.tagService = tagService; this.accessControlService = accessControlService; this.securityService = securityService; this.sitemapService = sitemapService; this.cmsConfiguration = cmsConfiguration; }
public LoginViewModel() { this.accessControlService = this.GetService<IAccessControlService>(); this.LoadIdentityProviders(); }
public UserController(IAccessControlService accessControlService, IUserServices userServices) { _iAccessControlService = accessControlService; _userService = userServices; }
/// <summary> /// Initializes a new instance of the <see cref="CmsController" /> class. /// </summary> /// <param name="cmsConfiguration">The configuration loader.</param> /// <param name="cacheService">The cache service.</param> /// <param name="accessControlService">The access control service.</param> public CmsController(ICmsConfiguration cmsConfiguration, ICacheService cacheService, IAccessControlService accessControlService) { this.cmsConfiguration = cmsConfiguration; this.cacheService = cacheService; this.accessControlService = accessControlService; }
public void SetUp() { dbContext = _serviceProvider.GetService <IDbContext>(); accessControlService = _serviceProvider.GetService <IAccessControlService>(); userService = _serviceProvider.GetService <IUserServices>(); }
/// <summary> /// Initializes a new instance of the <see cref="PagePropertiesService" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="urlService">The URL service.</param> /// <param name="optionService">The option service.</param> /// <param name="fileUrlResolver">The file URL resolver.</param> /// <param name="masterPageService">The master page service.</param> /// <param name="tagService">The tag service.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="unitOfWork">The unit of work.</param> /// <param name="pageService">The page service.</param> /// <param name="securityService">The security service.</param> public PagePropertiesService( IRepository repository, IUrlService urlService, IOptionService optionService, IMediaFileUrlResolver fileUrlResolver, IMasterPageService masterPageService, Module.Pages.Services.ITagService tagService, IAccessControlService accessControlService, IUnitOfWork unitOfWork, Module.Pages.Services.IPageService pageService, ISecurityService securityService, ICategoryService categoryService) { this.repository = repository; this.urlService = urlService; this.optionService = optionService; this.fileUrlResolver = fileUrlResolver; this.masterPageService = masterPageService; this.tagService = tagService; this.accessControlService = accessControlService; this.unitOfWork = unitOfWork; this.securityService = securityService; this.pageService = pageService; this.categoryService = categoryService; }
public UploadFileService(IRepository repository, IMediaFileService mediaFileService, IAccessControlService accessControlService) { this.repository = repository; this.mediaFileService = mediaFileService; this.accessControlService = accessControlService; }
/// <summary> /// Initializes a new instance of the <see cref="CmsController" /> class. /// </summary> /// <param name="cmsConfiguration">The configuration loader.</param> /// <param name="cacheService">The cache service.</param> /// <param name="accessControlService">The access control service.</param> public CmsController(ICmsConfiguration cmsConfiguration, ICacheService cacheService, IAccessControlService accessControlService) { this.cmsConfiguration = cmsConfiguration; this.cacheService = cacheService; this.accessControlService = accessControlService; }
public InspireDataServiceController(IInspireDatasetService inspireDatasetService, IAccessControlService accessControllService, IDatasetDeliveryService datasetDeliveryService) { _inspireDatasetService = inspireDatasetService; _accessControlService = accessControllService; _datasetDeliveryService = datasetDeliveryService; }
public DatasetsController(RegisterDbContext dbContext, IRegisterItemService registerItemService, IRegisterService registerService, IAccessControlService accessControllService, IDatasetDeliveryService datasetDeliveryService, ITranslationService translationService, IDatasetService datasetService, IStatusReportService statusReportService) { db = dbContext; _registerItemService = registerItemService; _registerService = registerService; _accessControlService = accessControllService; _datasetDeliveryService = datasetDeliveryService; _translationService = translationService; _datasetService = datasetService; _statusReportService = statusReportService; }
public UploadFileService(IRepository repository, IMediaFileService mediaFileService, IAccessControlService accessControlService) { this.repository = repository; this.mediaFileService = mediaFileService; this.accessControlService = accessControlService; }
public PublicController(IUserServices userServices, IAccessControlService accessControlService) { _userServices = userServices; _accessService = accessControlService; }
/// <summary> /// Initializes a new instance of the <see cref="SaveFileDataCommand" /> class. /// </summary> /// <param name="tagService">The tag service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="accessControlService">The access control service.</param> public SaveFileDataCommand(ITagService tagService, ICmsConfiguration cmsConfiguration, IAccessControlService accessControlService, ICategoryService categoryService) { this.tagService = tagService; this.cmsConfiguration = cmsConfiguration; this.accessControlService = accessControlService; this.categoryService = categoryService; }
public OrganizationsController(RegisterDbContext dbContext, IRegisterService registerService, IRegisterItemService registerItemService, IAccessControlService accessControlService, ITranslationService translationService) { _dbContext = dbContext; _registerService = registerService; _registerItemService = registerItemService; _accessControlService = accessControlService; _translationService = translationService; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultSitemapService" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="unitOfWork">The unit of work.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="accessControlService">The access control service.</param> public DefaultSitemapService(IRepository repository, IUnitOfWork unitOfWork, ICmsConfiguration cmsConfiguration, IAccessControlService accessControlService) { this.repository = repository; this.unitOfWork = unitOfWork; this.cmsConfiguration = cmsConfiguration; this.accessControlService = accessControlService; }
public AlertsController(RegisterDbContext dbContext, IRegisterItemService registerItemServive, IRegisterService registerService, IAccessControlService accessControlService) { _dbContext = dbContext; _registerItemService = registerItemServive; _registerService = registerService; _accessControlService = accessControlService; }