public void Setup() { _container = new MocksAndStubsContainer(); _applicationSettings = _container.ApplicationSettings; _context = _container.UserContext; _settingsRepository = _container.SettingsRepository; _userRepository = _container.UserRepository; _pageRepository = _container.PageRepository; _settingsService = _container.SettingsService; _userService = _container.UserService; _pageCache = _container.PageViewModelCache; _listCache = _container.ListCache; _siteCache = _container.SiteCache; _cache = _container.MemoryCache; _container.ClearCache(); _pageService = _container.PageService; _wikiImporter = new WikiImporterMock(); _pluginFactory = _container.PluginFactory; _searchService = _container.SearchService; // There's no point mocking WikiExporter (and turning it into an interface) as // a lot of usefulness of these tests would be lost when creating fake Streams and zip files. _wikiExporter = new WikiExporter(_applicationSettings, _pageService, _settingsRepository, _pageRepository, _userRepository, _pluginFactory); _wikiExporter.ExportFolder = AppDomain.CurrentDomain.BaseDirectory; _toolsController = new ToolsController(_applicationSettings, _userService, _settingsService, _pageService, _searchService, _context, _listCache, _pageCache, _wikiImporter, _pluginFactory, _wikiExporter); }
public CapturedMovementFactory(IMovementNumberValidator movementNumberValidator, INotificationAssessmentRepository assessmentRepository, IUserContext userContext) { this.movementNumberValidator = movementNumberValidator; this.assessmentRepository = assessmentRepository; this.userContext = userContext; }
public UpgradeController(ApplicationSettings settings, IRepository repository, UserServiceBase userService, IUserContext context, SettingsService settingsService, ConfigReaderWriter configReaderWriter) : base(settings, userService, context, settingsService) { _repository = repository; _configReaderWriter = configReaderWriter; }
public void Setup() { _container = new MocksAndStubsContainer(); _applicationSettings = _container.ApplicationSettings; _applicationSettings.ConnectionString = "connstring"; _context = _container.UserContext; _repository = _container.Repository; _pluginFactory = _container.PluginFactory; _settingsService = _container.SettingsService; _userService = _container.UserService; _historyService = _container.HistoryService; _pageService = _container.PageService; _listCache = _container.ListCache; _pageViewModelCache = _container.PageViewModelCache; // User setup _editorUser = new User(); _editorUser.Id = Guid.NewGuid(); _editorUser.Email = EditorEmail; _editorUser.Username = EditorUsername; _editorUser.IsAdmin = false; _editorUser.IsEditor = true; _adminUser = new User(); _adminUser.Id = Guid.NewGuid(); _adminUser.Email = AdminEmail; _adminUser.Username = AdminUsername; _adminUser.IsAdmin = true; _adminUser.IsEditor = true; _userService.Users.Add(_editorUser); _userService.Users.Add(_adminUser); SetUserContext(_adminUser); }
public HomeController( IMessageBus messageBus, IUserContext userContext, IActivityViewModelQuery activityViewModelQuery, ISightingViewModelQuery sightingViewModelQuery, IUserViewModelQuery userViewModelQuery, IDocumentSession documentSession, IPostViewModelQuery postViewModelQuery ) { Check.RequireNotNull(messageBus, "messageBus"); Check.RequireNotNull(userContext, "userContext"); Check.RequireNotNull(activityViewModelQuery, "activityViewModelQuery"); Check.RequireNotNull(sightingViewModelQuery, "sightingViewModelQuery"); Check.RequireNotNull(userViewModelQuery, "userViewModelQuery"); Check.RequireNotNull(documentSession, "documentSession"); Check.RequireNotNull(postViewModelQuery, "postViewModelQuery"); _messageBus = messageBus; _userContext = userContext; _activityViewModelQuery = activityViewModelQuery; _sightingViewModelQuery = sightingViewModelQuery; _userViewModelQuery = userViewModelQuery; _documentSession = documentSession; _postViewModelQuery = postViewModelQuery; }
public MenuParser(MarkupConverter markupConverter, ISettingsRepository settingsRepository, SiteCache siteCache, IUserContext userContext) { _markupConverter = markupConverter; _settingsRepository = settingsRepository; _siteCache = siteCache; _userContext = userContext; }
public RoleListConfiguration(IUserContext userContext) : base(typeof(RoleViewModel), null) { this.InterfaceResourceType = typeof(Resources.Interface); this.CanCreate = userContext.HasPermission(MembershipPermissions.AddRole); this.CanEdit = userContext.HasPermission(MembershipPermissions.EditRole); this.CanDelete = userContext.HasPermission(MembershipPermissions.DeleteRole); }
public TestCaseController() { _casesClient = new CasesClient(); _userContext = new UserContext(); _testCaseViewModelBuilder = new TestCaseViewModelBuilder(); _testCaseCoreModelBuilder = new TestCaseCoreModelBuilder(); }
public MenuParser(MarkupConverter markupConverter, IRepository repository, SiteCache siteCache, IUserContext userContext) { _markupConverter = markupConverter; _repository = repository; _siteCache = siteCache; _userContext = userContext; }
public ImportNotificationApplicationAuthorization(IwsContext context, ImportNotificationContext importNotificationContext, IUserContext userContext) { this.context = context; this.importNotificationContext = importNotificationContext; this.userContext = userContext; }
/// <summary> /// Constructor for the file manager. /// </summary> /// <remarks>This action requires editor rights.</remarks> public FileManagerController(ApplicationSettings settings, UserServiceBase userManager, IUserContext context, SettingsService settingsService, AttachmentFileHandler attachment) : base(settings, userManager, context, settingsService) { _attachmentHandler = attachment; _attachmentPathUtil = new AttachmentPathUtil(settings); }
public EnterpriseTesterRaygunMessageBuilderFactory(IUserContext userContext, ILicenseManager licenseManager) { if (userContext == null) throw new ArgumentNullException("userContext"); if (licenseManager == null) throw new ArgumentNullException("licenseManager"); _userContext = userContext; _licenseManager = licenseManager; }
public SubsController(IContextService contextService, ISubDao subDao, IMapper mapper, ICommandBus commandBus, IUserContext userContext, IPostDao postDao, IVoteDao voteDao, ICommentDao commentDao, IPermissionDao permissionDao, ICommentNodeHierarchyBuilder commentNodeHierarchyBuilder, ICommentTreeContextBuilder commentTreeContextBuilder, IPostWrapper postWrapper, ISubWrapper subWrapper, ICommentWrapper commentWrapper) { _contextService = contextService; _subDao = subDao; _mapper = mapper; _commandBus = commandBus; _userContext = userContext; _postDao = postDao; _voteDao = voteDao; _commentDao = commentDao; _permissionDao = permissionDao; _commentNodeHierarchyBuilder = commentNodeHierarchyBuilder; _commentTreeContextBuilder = commentTreeContextBuilder; _postWrapper = postWrapper; _subWrapper = subWrapper; _commentWrapper = commentWrapper; }
public ActivityViewModelQuery( IDocumentSession documentSession, ISightingViewFactory sightingViewFactory, ISightingNoteViewFactory sightingNoteViewFactory, IIdentificationViewFactory identificationViewFactory, IPostViewFactory postViewFactory, IUserContext userContext, IUserViewFactory userViewFactory) { Check.RequireNotNull(documentSession, "documentSession"); Check.RequireNotNull(sightingViewFactory, "sightingViewFactory"); Check.RequireNotNull(sightingNoteViewFactory, "sightingNoteViewFactory"); Check.RequireNotNull(identificationViewFactory, "identificationViewFactory"); Check.RequireNotNull(postViewFactory, "postViewFactory"); Check.RequireNotNull(userContext, "userContext"); Check.RequireNotNull(userViewFactory, "userViewFactory"); _documentSession = documentSession; _sightingViewFactory = sightingViewFactory; _sightingNoteViewFactory = sightingNoteViewFactory; _identificationViewFactory = identificationViewFactory; _postViewFactory = postViewFactory; _userContext = userContext; _userViewFactory = userViewFactory; }
public GroupListConfiguration(IUserContext userContext) : base(typeof(GroupListModel)) { this.InterfaceResourceType = typeof(Resources.Interface); this.CanCreate = userContext.HasPermission(MembershipPermissions.AddGroup); this.CanEdit = userContext.HasPermission(MembershipPermissions.EditGroup); this.CanDelete = userContext.HasPermission(MembershipPermissions.DeleteGroup); }
public UsersController( IMessageBus messageBus, IUserContext userContext, IProjectViewModelQuery projectViewModelQuery, ISightingViewModelQuery sightingViewModelQuery, IActivityViewModelQuery activityViewModelQuery, IPostViewModelQuery postViewModelQuery, IUserViewModelQuery userViewModelQuery, IPermissionManager permissionManager, IDocumentSession documentSession ) { Check.RequireNotNull(messageBus, "messageBus"); Check.RequireNotNull(userContext, "userContext"); Check.RequireNotNull(projectViewModelQuery, "projectViewModelQuery"); Check.RequireNotNull(sightingViewModelQuery, "sightingViewModelQuery"); Check.RequireNotNull(activityViewModelQuery, "activityViewModelQuery"); Check.RequireNotNull(postViewModelQuery, "postViewModelQuery"); Check.RequireNotNull(userViewModelQuery, "userViewModelQuery"); Check.RequireNotNull(permissionManager, "permissionManager"); Check.RequireNotNull(documentSession, "documentSession"); _messageBus = messageBus; _userContext = userContext; _projectViewModelQuery = projectViewModelQuery; _sightingViewModelQuery = sightingViewModelQuery; _activityViewModelQuery = activityViewModelQuery; _postViewModelQuery = postViewModelQuery; _userViewModelQuery = userViewModelQuery; _permissionManager = permissionManager; _documentSession = documentSession; }
public ConfigurationTesterController(ApplicationSettings appSettings, IUserContext userContext, ConfigReaderWriter configReaderWriter, IActiveDirectoryProvider activeDirectoryProvider) { _applicationSettings = appSettings; _userContext = userContext; _configReaderWriter = configReaderWriter; _activeDirectoryProvider = activeDirectoryProvider; }
public void Setup() { // WikiController setup (use WikiController as it's the one typically used by views) _container = new MocksAndStubsContainer(); _applicationSettings = _container.ApplicationSettings; _context = _container.UserContext; _pageRepository = _container.PageRepository; _pluginFactory = _container.PluginFactory; _settingsService = _container.SettingsService; _userService = _container.UserService; _historyService = _container.HistoryService; _pageService = _container.PageService; _wikiController = new WikiController(_applicationSettings, _userService, _pageService, _context, _settingsService); _wikiController.SetFakeControllerContext("~/wiki/index/1"); // HtmlHelper setup var viewDataDictionary = new ViewDataDictionary(); _viewContext = new ViewContext(_wikiController.ControllerContext, new Mock<IView>().Object, viewDataDictionary, new TempDataDictionary(), new StringWriter()); var mockViewDataContainer = new Mock<IViewDataContainer>(); mockViewDataContainer.Setup(v => v.ViewData).Returns(viewDataDictionary); _htmlHelper = new HtmlHelper(_viewContext, mockViewDataContainer.Object); }
public OperatorController(IUserContext userContext, IClientsService clientsService, IClientProfileService clientProfileService) : base(userContext) { Contract.Requires<ArgumentNullException>(clientsService.IsNotNull()); Contract.Requires<ArgumentNullException>(clientProfileService.IsNotNull()); this.clientsService = clientsService; }
private string GetUserDataText(IUserContext uc) { var sb = new StringBuilder(); var data = uc.Data; sb.AppendLine("Data<size=28>"); sb.AppendFormat("RegisterTime: {0}\n", data.RegisterTime); sb.AppendFormat("LastLoginTime: {0}\n", data.LastLoginTime); sb.AppendFormat("LoginCount: {0}\n", data.LoginCount); sb.AppendLine("</size>"); var achivements = uc.Achivements; sb.AppendLine("Achievement<size=28>"); foreach (AchievementKey key in Enum.GetValues(typeof(AchievementKey))) { UserAchievement ach; if (achivements.TryGetValue((int)key, out ach)) { if (ach.AchieveTime.HasValue) sb.AppendFormat("{0}: Achieved({1})\n", key, ach.AchieveTime.Value); else sb.AppendFormat("{0}: Progress({1})\n", key, ach.Value); } } sb.AppendLine("</size>"); return sb.ToString(); }
public OrganisationsController( IMessageBus messageBus, IUserContext userContext, IOrganisationViewModelQuery organisationViewModelQuery, IActivityViewModelQuery activityViewModelQuery, IPostViewModelQuery postViewModelQuery, IUserViewModelQuery userViewModelQuery, IPermissionManager permissionManager, IDocumentSession documentSession ) { Check.RequireNotNull(messageBus, "messageBus"); Check.RequireNotNull(userContext, "userContext"); Check.RequireNotNull(organisationViewModelQuery, "organisationViewModelQuery"); Check.RequireNotNull(activityViewModelQuery, "activityViewModelQuery"); Check.RequireNotNull(postViewModelQuery, "postViewModelQuery"); Check.RequireNotNull(userViewModelQuery, "userViewModelQuery"); Check.RequireNotNull(permissionManager, "permissionManager"); Check.RequireNotNull(documentSession, "documentSession"); _messageBus = messageBus; _userContext = userContext; _organisationViewModelQuery = organisationViewModelQuery; _activityViewModelQuery = activityViewModelQuery; _postViewModelQuery = postViewModelQuery; _userViewModelQuery = userViewModelQuery; _permissionManager = permissionManager; _documentSession = documentSession; }
public ProfileController(IUserProfileBusinessLogic userProfileBusinessLogic, IGenderViewTypeConverter genderTypeConverter, IActivityLevelViewTypeConverter activityLevelViewTypeConverter, IUserContext userContext) { ActivityLevelViewTypeConverter = activityLevelViewTypeConverter; GenderTypeConverter = genderTypeConverter; UserProfileBusinessLogic = userProfileBusinessLogic; UserContext = userContext; }
/// <summary> /// Commits one action of the transaction. /// </summary> /// <param name="userContext">The user context.</param> /// <param name="transac">The transac.</param> /// <param name="index">The index.</param> /// <param name="action">The action.</param> protected override void CommitAction(IUserContext userContext, TransacInfo transac, int index, TransacActionInfo action) { object referenceObject = null; if (action.Type == TransacActionType.Insert) { referenceObject = action.TargetInstance; } else { referenceObject = action.SourceInstance; } IMetamodelEntity metamodelEntity = IoC.Get<ISecurityManager>().MetamodelManager.GetEntity(referenceObject.GetType()); if (metamodelEntity != null) { if (metamodelEntity.AuditType == AuditType.Simple) { AuditTransacAction actionEntity = new AuditTransacAction(); actionEntity.AuditTransacId = Convert.ToInt32(transac.TransacId); actionEntity.AuditTransacActionIx = index + 1; actionEntity.EntityId = metamodelEntity.EntId; actionEntity.PrimaryKey = metamodelEntity.GetStringKey(referenceObject); userContext.Context.Add(actionEntity); } } }
public HomeController(ApplicationSettings settings, UserServiceBase userManager, MarkupConverter markupConverter, PageService pageService, SearchService searchService, IUserContext context, SettingsService settingsService) : base(settings, userManager, context, settingsService) { _markupConverter = markupConverter; _searchService = searchService; PageService = pageService; }
public WeeeAuthorization(WeeeContext context, IUserContext userContext) { Guard.ArgumentNotNull(() => context, context); Guard.ArgumentNotNull(() => userContext, userContext); this.context = context; this.userContext = userContext; }
public ControllerBase(ApplicationSettings settings, UserServiceBase userService, IUserContext context, SettingsService settingsService) { ApplicationSettings = settings; UserService = userService; Context = context; SettingsService = settingsService; }
public UserController(ApplicationSettings settings, UserServiceBase userManager, IUserContext context, SettingsService settingsService, SignupEmail signupEmail, ResetPasswordEmail resetPasswordEmail) : base(settings, userManager, context, settingsService) { _signupEmail = signupEmail; _resetPasswordEmail = resetPasswordEmail; }
public RegistrationController(ApplicationUserManager userManager, IUserContext userContext, IEmailService emailService) { this.userContext = userContext; this.emailService = emailService; this.userManager = userManager; }
public SettingsController(ApplicationSettings settings, UserServiceBase userManager, SettingsService settingsService, IUserContext context, SiteCache siteCache, ConfigReaderWriter configReaderWriter) : base(settings, userManager, context, settingsService) { _settingsService = settingsService; _siteCache = siteCache; _configReaderWriter = configReaderWriter; }
public PageHistoryService(ApplicationSettings settings, IRepository repository, IUserContext context, PageViewModelCache pageViewModelCache, IPluginFactory pluginFactory) : base(settings, repository) { _markupConverter = new MarkupConverter(settings, repository, pluginFactory); _context = context; _pageViewModelCache = pageViewModelCache; }
/// <summary> /// Get all periods of a certain period type. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="periodTypeId">Period type id.</param> /// <returns>All periods of a certain period type.</returns> public virtual PeriodList GetPeriods(IUserContext userContext, PeriodTypeId periodTypeId) { return(GetPeriods(userContext).GetPeriods(periodTypeId)); }
/// <summary> /// Get information about default organism groups. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <returns>Information about default organism groups.</returns> public virtual OrganismGroupList GetDefaultOrganismGroups(IUserContext userContext) { return(GetOrganismGroups(userContext, OrganismGroupType.Standard)); }
/// <summary> /// Get factor with specified id. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="factorId">Factor id.</param> /// <returns>Factor with specified id.</returns> public virtual IFactor GetFactor(IUserContext userContext, FactorId factorId) { return(GetFactor(userContext, (Int32)factorId)); }
public static CompanyDetailsService CreateWithDefaultsSetupForEdit( ICompanyDetailsRepository companyDetailsRepository, Guid defaultBankDetailsId, Guid defaultCurrencyId, Guid defaultPaymentTermsId, Guid defaultTaxCodeId, IUserContext userContext) { companyDetailsRepository.Stub(x => x.GetCompany()).Return(GetCompanyDetails(defaultBankDetailsId, defaultTaxCodeId, defaultCurrencyId, defaultPaymentTermsId)); var bankDetailsRepositoryStub = GetBankDetailsRepository(defaultBankDetailsId); var taxCodeRepositoryStub = GetTaxCodeRepository(defaultTaxCodeId); var currencyRepositoryStub = GetCurrencyRepository(defaultCurrencyId); var listItemsRepositoryStub = GetDefaultListItemRepository(defaultPaymentTermsId); return(new CompanyDetailsService( userContext, companyDetailsRepository, bankDetailsRepositoryStub, currencyRepositoryStub, listItemsRepositoryStub, taxCodeRepositoryStub, MockRepository.GenerateStub <IQueueDispatcher <IMessage> >())); }
/// <summary> /// Get specified factor tree node. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="factorId">Factor id.</param> /// <returns>All factor trees.</returns> public virtual IFactorTreeNode GetFactorTree(IUserContext userContext, FactorId factorId) { return(GetFactorTree(userContext, (Int32)factorId)); }
public void InitContext(IEntityContext entityContext, IStyleContext styleContext, IUserContext userContext) { EntityContext = entityContext; StyleContext = styleContext; UserContext = userContext; }
/// <summary> /// Get individual category with specified id. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="individualCategoryId">Individual category id.</param> /// <returns>Individual category with specified id.</returns> public virtual IIndividualCategory GetIndividualCategory(IUserContext userContext, IndividualCategoryId individualCategoryId) { return(GetIndividualCategory(userContext, (Int32)individualCategoryId)); }
public UserUow(IUserContext context, IRepositoryProvider repositoryProvider) : base(context, repositoryProvider) { }
/// <summary> /// Get all public periods for specified period type. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="periodTypeId">Period type id.</param> /// <returns>All public periods for specified period type.</returns> public virtual PeriodList GetPublicPeriods(IUserContext userContext, PeriodTypeId periodTypeId) { return(GetPublicPeriods(userContext, (Int32)periodTypeId)); }
protected EngineBase(IUserContext userContext, ILogger logger, IConfiguration configuration) : base(userContext, logger, configuration) { AccessorServiceProvider = new AccessorServiceProvider(userContext, logger, configuration); }
public CartStorage(IHttpContextAccessor accessor, IUserContext userContext) { _accessor = accessor; _userContext = userContext; }
/// <summary> /// Get period with specified id. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="periodId">Id for requested period.</param> /// <returns>Period with specified id.</returns> public virtual IPeriod GetPeriod(IUserContext userContext, PeriodId periodId) { return(GetPeriod(userContext, (Int32)periodId)); }
/// <summary> /// Get period with specified id. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="periodId">Id for requested period.</param> /// <returns>Period with specified id.</returns> public virtual IPeriod GetPeriod(IUserContext userContext, Int32 periodId) { return(GetPeriods(userContext).Get(periodId)); }
/// <summary> /// Get factors that match the search criteria. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="searchCriteria">The factor search criteria.</param> /// <returns>All factors.</returns> public virtual FactorList GetFactors(IUserContext userContext, IFactorSearchCriteria searchCriteria) { return(DataSource.GetFactors(userContext, searchCriteria)); }
/// <summary> /// Constructor. /// </summary> /// /// <param name="userContext"> /// User context. /// </param> public ExecutionTraceCrud(IUserContext userContext) : base(userContext) { base.Initialize(); }
/// <summary> /// Get factor data type with specified id. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="factorDataTypeId">Factor data type id.</param> /// <returns>Factor data type with specified id.</returns> public virtual IFactorDataType GetFactorDataType(IUserContext userContext, Int32 factorDataTypeId) { return(GetFactorDataTypes(userContext).Get(factorDataTypeId)); }
/// <summary> /// Get all factor trees. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <returns>All factor trees.</returns> public virtual FactorTreeNodeList GetFactorTrees(IUserContext userContext) { return(DataSource.GetFactorTrees(userContext)); }
public PDFReportsController(IPermissionService permissionService, IUserContext userContext, IExportHelper pdfService) : base(userContext, permissionService) { this.pdfReportService = pdfService; }
/// <summary> /// Get factor with specified id. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="factorId">Id for requested factor.</param> /// <returns>Factor with specified id.</returns> public virtual IFactor GetFactor(IUserContext userContext, Int32 factorId) { return(GetFactors(userContext).Get(factorId)); }
/// <summary> /// Get all public periods. /// This method selects all public periods of the /// default period type corresponding to Swedish Red List. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <returns>All public periods.</returns> public virtual PeriodList GetPublicPeriods(IUserContext userContext) { return(GetPublicPeriods(userContext, PeriodTypeId.SwedishRedList)); }
/// <summary> /// Get all period types. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <returns>All period types.</returns> public virtual PeriodTypeList GetPeriodTypes(IUserContext userContext) { return(DataSource.GetPeriodTypes(userContext)); }
/// <summary> /// Get period type with specified id. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="periodTypeId">Id for requested period type.</param> /// <returns>Period type with specified id.</returns> public virtual IPeriodType GetPeriodType(IUserContext userContext, PeriodTypeId periodTypeId) { return(GetPeriodType(userContext, (Int32)periodTypeId)); }
/// <summary> /// Get individual category with specified id. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="individualCategoryId">Individual category id.</param> /// <returns>Individual category with specified id.</returns> public virtual IIndividualCategory GetIndividualCategory(IUserContext userContext, Int32 individualCategoryId) { return(GetIndividualCategories(userContext).Get(individualCategoryId)); }
/// <summary> /// Get period type with specified id. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="periodTypeId">Id for requested period type.</param> /// <returns>Period type with specified id.</returns> public virtual IPeriodType GetPeriodType(IUserContext userContext, Int32 periodTypeId) { return(GetPeriodTypes(userContext).Get(periodTypeId)); }
/// <summary> /// Get all factor update modes. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <returns>All factor update modes.</returns> public virtual FactorUpdateModeList GetFactorUpdateModes(IUserContext userContext) { return(DataSource.GetFactorUpdateModes(userContext)); }
/// <summary> /// Get default individual category object. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <returns>Default individual category.</returns> public virtual IIndividualCategory GetDefaultIndividualCategory(IUserContext userContext) { return(GetIndividualCategory(userContext, IndividualCategoryId.Default)); }
/// <summary> /// Initializes a new instance of the <see cref="SqlDatabase"/> class. /// </summary> /// <param name="nameOrConnectionString">The name or connection string.</param> public SqlDatabase(string nameOrConnectionString, IUserContext userContext) : base(nameOrConnectionString, userContext) { }
/// <summary> /// Get all individual categories. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <returns>All individual categories.</returns> public virtual IndividualCategoryList GetIndividualCategories(IUserContext userContext) { return(DataSource.GetIndividualCategories(userContext)); }
/// <summary> /// Initializes a new instance of the <see cref="SettingsReportExcelXlsx"/> class. /// </summary> /// <param name="currentUser">Current user context</param> public SettingsReportExcelXlsx(IUserContext currentUser) { IsColumnHeaderBackgroundUsed = true; base.currentUser = currentUser; }
/// <summary> /// Get factor update mode with specified id. /// </summary> /// <param name="userContext"> /// Information about the user that makes this method call. /// </param> /// <param name="factorUpdateModeId">Id for requested factor update mode.</param> /// <returns>All factor update modes.</returns> public virtual IFactorUpdateMode GetFactorUpdateMode(IUserContext userContext, Int32 factorUpdateModeId) { return(GetFactorUpdateModes(userContext).Get(factorUpdateModeId)); }