コード例 #1
0
        public void PersistChartSettings(EpmChartUserSettings chartSettings)
        {
            var personalizationData  = EpmChartUserSettingsToPersonalizationDataMapper.GetPersonalizationData(chartSettings);
            var personalizationsRepo = new PersonalizationDataRepository(_web, EpmChartUserSettings.Key);

            personalizationsRepo.PersistUserSettings(personalizationData);
        }
コード例 #2
0
        public EpmChartUserSettings GetChartSettings(PersonalizationSearchCriteria searchCriteria)
        {
            var personalizationsRepo = new PersonalizationDataRepository(_web, EpmChartUserSettings.Key);
            var personalizationsData = personalizationsRepo.GetUserSettings(searchCriteria);

            var chartSettingsToReturn = new EpmChartUserSettings();

            chartSettingsToReturn.Hydrate(personalizationsData);
            return(chartSettingsToReturn);
        }