/// <summary> /// Constructor /// </summary> /// <param name="userManager">User Manager</param> /// <param name="lockServiceDbAccess">Lock Service Db Access</param> /// <param name="userProjectAccess">User project access</param> /// <param name="configuration">Configuration data</param> public LockServiceApiController(UserManager <GoNorthUser> userManager, ILockServiceDbAccess lockServiceDbAccess, IUserProjectAccess userProjectAccess, IOptions <ConfigurationData> configuration) { _userManager = userManager; _lockServiceDbAccess = lockServiceDbAccess; _userProjectAccess = userProjectAccess; LockTimespan = configuration.Value.Misc.ResourceLockTimespan.HasValue ? configuration.Value.Misc.ResourceLockTimespan.Value : Constants.DefaultResourceLockTimespan; }
/// <summary> /// Constructor /// </summary> /// <param name="questDbAccess">Quest Db Access</param> /// <param name="chapterDetailDbAccess">Chapter Detail Db Access</param> /// <param name="chapterOverviewDbAccess">Chapter Overview Db Access</param> /// <param name="skillDbAccess">Skill Db Access</param> /// <param name="npcDbAccess">Npc Db Access</param> /// <param name="itemDbAccess">Item Db Access</param> /// <param name="exportTemplateDbAccess">Export template Db access</param> /// <param name="mapDbAccess">Map Db Access</param> /// <param name="pageDbAccess">Page Db Access</param> /// <param name="pageVersionDbAccess">Page Version Db Access</param> /// <param name="taleConfigDbAccess">Tale Config Db Access</param> /// <param name="taleDbAccess">Tale Db Access</param> /// <param name="taskBoardDbAccess">Task Bord Db Access</param> /// <param name="taskGroupTypeDbAccess">Task Group Type Db Access</param> /// <param name="taskTypeDbAccess">Task Type Db Access</param> /// <param name="userTaskBoardHistoryDbAccess">User Task Board History Db Access</param> /// <param name="projectDbAccess">Project Db Access</param> /// <param name="timelineDbAccess">Timeline Db Access</param> /// <param name="lockDbAccess">Lock Db Access</param> /// <param name="userManager">User manager</param> /// <param name="signInManager">Signin Manager</param> /// <param name="userDeleter">User Deleter</param> public PersonalDataApiController(IAikaQuestDbAccess questDbAccess, IAikaChapterDetailDbAccess chapterDetailDbAccess, IAikaChapterOverviewDbAccess chapterOverviewDbAccess, IEvneSkillDbAccess skillDbAccess, IKortistoNpcDbAccess npcDbAccess, IStyrItemDbAccess itemDbAccess, IExportTemplateDbAccess exportTemplateDbAccess, IKartaMapDbAccess mapDbAccess, IKirjaPageDbAccess pageDbAccess, IKirjaPageVersionDbAccess pageVersionDbAccess, ITaleDbAccess taleDbAccess, ITaleConfigDbAccess taleConfigDbAccess, ITaskBoardDbAccess taskBoardDbAccess, ITaskGroupTypeDbAccess taskGroupTypeDbAccess, ITaskTypeDbAccess taskTypeDbAccess, IUserTaskBoardHistoryDbAccess userTaskBoardHistoryDbAccess, IProjectDbAccess projectDbAccess, ITimelineDbAccess timelineDbAccess, ILockServiceDbAccess lockDbAccess, UserManager <GoNorthUser> userManager, SignInManager <GoNorthUser> signInManager, IUserDeleter userDeleter) { _questDbAccess = questDbAccess; _chapterDetailDbAccess = chapterDetailDbAccess; _chapterOverviewDbAccess = chapterOverviewDbAccess; _skillDbAccess = skillDbAccess; _npcDbAccess = npcDbAccess; _itemDbAccess = itemDbAccess; _exportTemplateDbAccess = exportTemplateDbAccess; _mapDbAccess = mapDbAccess; _pageDbAccess = pageDbAccess; _pageVersionDbAccess = pageVersionDbAccess; _taleDbAccess = taleDbAccess; _taleConfigDbAccess = taleConfigDbAccess; _taskBoardDbAccess = taskBoardDbAccess; _taskGroupTypeDbAccess = taskGroupTypeDbAccess; _taskTypeDbAccess = taskTypeDbAccess; _userTaskBoardHistoryDbAccess = userTaskBoardHistoryDbAccess; _projectDbAccess = projectDbAccess; _timelineDbAccess = timelineDbAccess; _lockDbAccess = lockDbAccess; _userManager = userManager; _signInManager = signInManager; _userDeleter = userDeleter; }
/// <summary> /// Constructor /// </summary> /// <param name="projectDbAccess">Project Db Access</param> /// <param name="npcTagDbAccess">Npc Tag Db Access</param> /// <param name="itemTagDbAccess">Item Tag Db Access</param> /// <param name="skillTagDbAccess">Skill Tag Db Access</param> /// <param name="timelineDbAccess">Timeline Db Access</param> /// <param name="lockServiceDbAccess">Lock Service Db Access</param> /// <param name="configuration">Configuration</param> public MongoDbSetup(IProjectDbAccess projectDbAccess, IKortistoNpcTagDbAccess npcTagDbAccess, IStyrItemTagDbAccess itemTagDbAccess, IEvneSkillTagDbAccess skillTagDbAccess, ITimelineDbAccess timelineDbAccess, ILockServiceDbAccess lockServiceDbAccess, IOptions <ConfigurationData> configuration) : base(configuration) { _projectDbAccess = projectDbAccess; _npcTagDbAccess = npcTagDbAccess; _itemTagDbAccess = itemTagDbAccess; _skillTagDbAccess = skillTagDbAccess; _timelineDbAccess = timelineDbAccess; _lockServiceDbAccess = lockServiceDbAccess; }
/// <summary> /// Constructor /// </summary> /// <param name="userManager">User Manager</param> /// <param name="lockServiceDbAccess">Lock Service Db Access</param> /// <param name="userProjectAccess">User project access</param> /// <param name="kirjaReviewDbAccess">Kirja Page Review Db Access</param> /// <param name="localizerFactory">Localizer Factory</param> /// <param name="configuration">Configuration data</param> public LockServiceApiController(UserManager <GoNorthUser> userManager, ILockServiceDbAccess lockServiceDbAccess, IUserProjectAccess userProjectAccess, IKirjaPageReviewDbAccess kirjaReviewDbAccess, IStringLocalizerFactory localizerFactory, IOptions <ConfigurationData> configuration) { _userManager = userManager; _lockServiceDbAccess = lockServiceDbAccess; _userProjectAccess = userProjectAccess; _kirjaReviewDbAccess = kirjaReviewDbAccess; _localizer = localizerFactory.Create(typeof(LockServiceApiController)); LockTimespan = configuration.Value.Misc.ResourceLockTimespan.HasValue ? configuration.Value.Misc.ResourceLockTimespan.Value : Constants.DefaultResourceLockTimespan; }
/// <summary> /// Constructor /// </summary> /// <param name="questDbAccess">Quest Db Access</param> /// <param name="questImplementationSnapshotDbAccess">Quest Implementation Snapshot Db Access</param> /// <param name="chapterDetailDbAccess">Chapter Detail Db Access</param> /// <param name="chapterOverviewDbAccess">Chapter Overview Db Access</param> /// <param name="skillDbAccess">Skill Db Access</param> /// <param name="skillTemplateDbAccess">Skill Template Db Access</param> /// <param name="skillImplementationSnapshotDbAccess">Skill Implementation Snapshot Db Access</param> /// <param name="skillImportFieldValuesLogDbAccess">Skill import field values log Db access</param> /// <param name="npcDbAccess">Npc Db Access</param> /// <param name="npcTemplateDbAccess">Npc Template Db Access</param> /// <param name="npcImplementationSnapshotDbAccess">Npc Implementation Snapshot Db Access</param> /// <param name="npcImportFieldValuesLogDbAccess">Npc import field values log Db access</param> /// <param name="itemDbAccess">Item Db Access</param> /// <param name="itemTemplateDbAccess">Item Template Db Access</param> /// <param name="itemImplementationSnapshotDbAccess">Item Implementation Snapshot Db Access</param> /// <param name="itemImportFieldValuesLogDbAccess">Item import field values log Db access</param> /// <param name="exportTemplateDbAccess">Export template Db access</param> /// <param name="includeExportTemplateDbAccess">Include export template Db Access</param> /// <param name="objectExportSnippetDbAccess">Object Export snippet Db Access</param> /// <param name="mapDbAccess">Map Db Access</param> /// <param name="pageDbAccess">Page Db Access</param> /// <param name="pageReviewDbAccess">Page Review Db Access</param> /// <param name="pageVersionDbAccess">Page Version Db Access</param> /// <param name="taleDbAccess">Tale Db Access</param> /// <param name="taleImplementationSnapshotDbAccess">Tale Implementation Snapshot Db Access</param> /// <param name="projectConfigDbAccess">Project Config Db Access</param> /// <param name="stateMachineDbAccess">State Machine Db Access</param> /// <param name="stateMachineSnapsshotDbAccess">State Machine Implementation Snapshot Db Access</param> /// <param name="taskBoardDbAccess">Task Bord Db Access</param> /// <param name="taskGroupTypeDbAccess">Task Group Type Db Access</param> /// <param name="taskTypeDbAccess">Task Type Db Access</param> /// <param name="userTaskBoardHistoryDbAccess">User Task Board History Db Access</param> /// <param name="projectDbAccess">Project Db Access</param> /// <param name="timelineDbAccess">Timeline Db Access</param> /// <param name="lockDbAccess">Lock Db Access</param> /// <param name="userManager">User manager</param> /// <param name="signInManager">Signin Manager</param> /// <param name="userDeleter">User Deleter</param> public PersonalDataApiController(IAikaQuestDbAccess questDbAccess, IAikaQuestImplementationSnapshotDbAccess questImplementationSnapshotDbAccess, IAikaChapterDetailDbAccess chapterDetailDbAccess, IAikaChapterOverviewDbAccess chapterOverviewDbAccess, IEvneSkillDbAccess skillDbAccess, IEvneSkillTemplateDbAccess skillTemplateDbAccess, IEvneSkillImplementationSnapshotDbAccess skillImplementationSnapshotDbAccess, IEvneImportFieldValuesLogDbAccess skillImportFieldValuesLogDbAccess, IKortistoNpcDbAccess npcDbAccess, IKortistoNpcTemplateDbAccess npcTemplateDbAccess, IKortistoNpcImplementationSnapshotDbAccess npcImplementationSnapshotDbAccess, IKortistoImportFieldValuesLogDbAccess npcImportFieldValuesLogDbAccess, IStyrItemDbAccess itemDbAccess, IStyrItemTemplateDbAccess itemTemplateDbAccess, IStyrItemImplementationSnapshotDbAccess itemImplementationSnapshotDbAccess, IStyrImportFieldValuesLogDbAccess itemImportFieldValuesLogDbAccess, IExportTemplateDbAccess exportTemplateDbAccess, IIncludeExportTemplateDbAccess includeExportTemplateDbAccess, IObjectExportSnippetDbAccess objectExportSnippetDbAccess, IKartaMapDbAccess mapDbAccess, IKirjaPageDbAccess pageDbAccess, IKirjaPageVersionDbAccess pageVersionDbAccess, IKirjaPageReviewDbAccess pageReviewDbAccess, ITaleDbAccess taleDbAccess, ITaleDialogImplementationSnapshotDbAccess taleImplementationSnapshotDbAccess, IStateMachineDbAccess stateMachineDbAccess, IStateMachineImplementationSnapshotDbAccess stateMachineSnapsshotDbAccess, IProjectConfigDbAccess projectConfigDbAccess, ITaskBoardDbAccess taskBoardDbAccess, ITaskGroupTypeDbAccess taskGroupTypeDbAccess, ITaskTypeDbAccess taskTypeDbAccess, IUserTaskBoardHistoryDbAccess userTaskBoardHistoryDbAccess, IProjectDbAccess projectDbAccess, ITimelineDbAccess timelineDbAccess, ILockServiceDbAccess lockDbAccess, UserManager <GoNorthUser> userManager, SignInManager <GoNorthUser> signInManager, IUserDeleter userDeleter) { _questDbAccess = questDbAccess; _questImplementationSnapshotDbAccess = questImplementationSnapshotDbAccess; _chapterDetailDbAccess = chapterDetailDbAccess; _chapterOverviewDbAccess = chapterOverviewDbAccess; _skillDbAccess = skillDbAccess; _skillTemplateDbAccess = skillTemplateDbAccess; _skillImplementationSnapshotDbAccess = skillImplementationSnapshotDbAccess; _skillImportFieldValuesLogDbAccess = skillImportFieldValuesLogDbAccess; _npcDbAccess = npcDbAccess; _npcTemplateDbAccess = npcTemplateDbAccess; _npcImplementationSnapshotDbAccess = npcImplementationSnapshotDbAccess; _npcImportFieldValuesLogDbAccess = npcImportFieldValuesLogDbAccess; _itemDbAccess = itemDbAccess; _itemTemplateDbAccess = itemTemplateDbAccess; _itemImplementationSnapshotDbAccess = itemImplementationSnapshotDbAccess; _itemImportFieldValuesLogDbAccess = itemImportFieldValuesLogDbAccess; _exportTemplateDbAccess = exportTemplateDbAccess; _includeExportTemplateDbAccess = includeExportTemplateDbAccess; _objectExportSnippetDbAccess = objectExportSnippetDbAccess; _mapDbAccess = mapDbAccess; _pageDbAccess = pageDbAccess; _pageVersionDbAccess = pageVersionDbAccess; _pageReviewDbAccess = pageReviewDbAccess; _taleDbAccess = taleDbAccess; _taleImplementationSnapshotDbAccess = taleImplementationSnapshotDbAccess; _stateMachineDbAccess = stateMachineDbAccess; _stateMachineSnapsshotDbAccess = stateMachineSnapsshotDbAccess; _projectConfigDbAccess = projectConfigDbAccess; _taskBoardDbAccess = taskBoardDbAccess; _taskGroupTypeDbAccess = taskGroupTypeDbAccess; _taskTypeDbAccess = taskTypeDbAccess; _userTaskBoardHistoryDbAccess = userTaskBoardHistoryDbAccess; _projectDbAccess = projectDbAccess; _timelineDbAccess = timelineDbAccess; _lockDbAccess = lockDbAccess; _userManager = userManager; _signInManager = signInManager; _userDeleter = userDeleter; }
/// <summary> /// Constructor /// </summary> /// <param name="questDbAccess">Quest Db Access</param> /// <param name="questImplementationSnapshotDbAccess">Quest Implementation Snapshot Db Access</param> /// <param name="chapterDetailDbAccess">Chapter Detail Db Access</param> /// <param name="chapterOverviewDbAccess">Chapter Overview Db Access</param> /// <param name="skillDbAccess">Skill Db Access</param> /// <param name="skillTemplateDbAccess">Skill Template Db Access</param> /// <param name="skillImplementationSnapshotDbAccess">Skill Implementation Snapshot Db Access</param> /// <param name="npcDbAccess">Npc Db Access</param> /// <param name="npcTemplateDbAccess">Npc Template Db Access</param> /// <param name="npcImplementationSnapshotDbAccess">Npc Implementation Snapshot Db Access</param> /// <param name="itemDbAccess">Item Db Access</param> /// <param name="itemTemplateDbAccess">Item Template Db Access</param> /// <param name="itemImplementationSnapshotDbAccess">Item Implementation Snapshot Db Access</param> /// <param name="exportTemplateDbAccess">Export template Db access</param> /// <param name="objectExportSnippetDbAccess">Object Export snippet Db Access</param> /// <param name="mapDbAccess">Map Db Access</param> /// <param name="pageDbAccess">Page Db Access</param> /// <param name="pageVersionDbAccess">Page Version Db Access</param> /// <param name="taleDbAccess">Tale Db Access</param> /// <param name="taleImplementationSnapshotDbAccess">Tale Implementation Snapshot Db Access</param> /// <param name="projectConfigDbAccess">Project Config Db Access</param> /// <param name="taskBoardDbAccess">Task Bord Db Access</param> /// <param name="taskGroupTypeDbAccess">Task Group Type Db Access</param> /// <param name="taskTypeDbAccess">Task Type Db Access</param> /// <param name="userTaskBoardHistoryDbAccess">User Task Board History</param> /// <param name="lockDbService">Lock Db Service</param> /// <param name="timelineDbAccess">Timeline Db Access</param> /// <param name="userManager">User manager</param> public UserDeleter(IAikaQuestDbAccess questDbAccess, IAikaQuestImplementationSnapshotDbAccess questImplementationSnapshotDbAccess, IAikaChapterDetailDbAccess chapterDetailDbAccess, IAikaChapterOverviewDbAccess chapterOverviewDbAccess, IEvneSkillDbAccess skillDbAccess, IEvneSkillTemplateDbAccess skillTemplateDbAccess, IEvneSkillImplementationSnapshotDbAccess skillImplementationSnapshotDbAccess, IKortistoNpcDbAccess npcDbAccess, IKortistoNpcTemplateDbAccess npcTemplateDbAccess, IKortistoNpcImplementationSnapshotDbAccess npcImplementationSnapshotDbAccess, IStyrItemDbAccess itemDbAccess, IStyrItemTemplateDbAccess itemTemplateDbAccess, IStyrItemImplementationSnapshotDbAccess itemImplementationSnapshotDbAccess, IExportTemplateDbAccess exportTemplateDbAccess, IObjectExportSnippetDbAccess objectExportSnippetDbAccess, IKartaMapDbAccess mapDbAccess, IKirjaPageDbAccess pageDbAccess, IKirjaPageVersionDbAccess pageVersionDbAccess, ITaleDbAccess taleDbAccess, ITaleDialogImplementationSnapshotDbAccess taleImplementationSnapshotDbAccess, IProjectConfigDbAccess projectConfigDbAccess, ITaskBoardDbAccess taskBoardDbAccess, ITaskGroupTypeDbAccess taskGroupTypeDbAccess, ITaskTypeDbAccess taskTypeDbAccess, IUserTaskBoardHistoryDbAccess userTaskBoardHistoryDbAccess, ILockServiceDbAccess lockDbService, ITimelineDbAccess timelineDbAccess, UserManager <GoNorthUser> userManager) { _questDbAccess = questDbAccess; _questImplementationSnapshotDbAccess = questImplementationSnapshotDbAccess; _chapterDetailDbAccess = chapterDetailDbAccess; _chapterOverviewDbAccess = chapterOverviewDbAccess; _skillDbAccess = skillDbAccess; _skillTemplateDbAccess = skillTemplateDbAccess; _skillImplementationSnapshotDbAccess = skillImplementationSnapshotDbAccess; _npcDbAccess = npcDbAccess; _npcTemplateDbAccess = npcTemplateDbAccess; _npcImplementationSnapshotDbAccess = npcImplementationSnapshotDbAccess; _itemDbAccess = itemDbAccess; _itemTemplateDbAccess = itemTemplateDbAccess; _itemImplementationSnapshotDbAccess = itemImplementationSnapshotDbAccess; _exportTemplateDbAccess = exportTemplateDbAccess; _objectExportSnippetDbAccess = objectExportSnippetDbAccess; _mapDbAccess = mapDbAccess; _pageDbAccess = pageDbAccess; _pageVersionDbAccess = pageVersionDbAccess; _taleDbAccess = taleDbAccess; _taleImplementationSnapshotDbAccess = taleImplementationSnapshotDbAccess; _projectConfigDbAccess = projectConfigDbAccess; _taskBoardDbAccess = taskBoardDbAccess; _taskGroupTypeDbAccess = taskGroupTypeDbAccess; _taskTypeDbAccess = taskTypeDbAccess; _userTaskBoardHistoryDbAccess = userTaskBoardHistoryDbAccess; _lockDbService = lockDbService; _timelineDbAccess = timelineDbAccess; _userManager = userManager; }
/// <summary> /// Constructor /// </summary> /// <param name="timelineDbAccess">Timeline Db Access</param> /// <param name="lockServiceDbAccess">Lock Service Db Access</param> /// <param name="configuration">Configuration</param> public MongoDbSetup(ITimelineDbAccess timelineDbAccess, ILockServiceDbAccess lockServiceDbAccess, IOptions <ConfigurationData> configuration) : base(configuration) { _timelineDbAccess = timelineDbAccess; _lockServiceDbAccess = lockServiceDbAccess; }
/// <summary> /// Constructor /// </summary> /// <param name="userManager">User Manager</param> /// <param name="lockServiceDbAccess">Lock Service Db Access</param> public LockServiceApiController(UserManager <GoNorthUser> userManager, ILockServiceDbAccess lockServiceDbAccess) { _userManager = userManager; _lockServiceDbAccess = lockServiceDbAccess; }
/// <summary> /// Constructor /// </summary> /// <param name="lockDbAccess">Lock Database access</param> public LockCleanupTimerJob(ILockServiceDbAccess lockDbAccess) { _lockDbAccess = lockDbAccess; }