Class SettingsManager

Inheritance
System.Object
SettingsManager
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.UI.Models.VisitorGroupsStatistics
Assembly: EPiServer.Shell.UI.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(ISettingsManager), Lifecycle = ServiceInstanceScope.Singleton)]
[Obsolete("The Episerver gadget framework has been deprecated so the Visitor Group Statistics gadget will be removed after the upcoming major release.")]
public class SettingsManager : ISettingsManager

Constructors

SettingsManager(IVisitorGroupRepository, DynamicDataStoreFactory, LocalizationService)

Declaration
[Obsolete("Will remain at least until june 2017.")]
public SettingsManager(IVisitorGroupRepository visitorGroupStore, DynamicDataStoreFactory storeFactory, LocalizationService localizationService)
Parameters
Type Name Description
IVisitorGroupRepository visitorGroupStore
DynamicDataStoreFactory storeFactory
LocalizationService localizationService

SettingsManager(IVisitorGroupRepository, DynamicDataStoreFactory, LocalizationService, IVisitorGroupEvents, EPiServerFrameworkSection)

Declaration
[Obsolete("Will remain at least until july 2017.")]
public SettingsManager(IVisitorGroupRepository visitorGroupStore, DynamicDataStoreFactory storeFactory, LocalizationService localizationService, IVisitorGroupEvents visitorGroupEvents, EPiServerFrameworkSection configuration)
Parameters
Type Name Description
IVisitorGroupRepository visitorGroupStore
DynamicDataStoreFactory storeFactory
LocalizationService localizationService
IVisitorGroupEvents visitorGroupEvents
EPiServerFrameworkSection configuration

SettingsManager(IVisitorGroupRepository, DynamicDataStoreFactory, LocalizationService, IVisitorGroupEvents, EPiServerFrameworkSection, IVisitorGroupsStatisticsLoggerRegistry)

Declaration
public SettingsManager(IVisitorGroupRepository visitorGroupStore, DynamicDataStoreFactory storeFactory, LocalizationService localizationService, IVisitorGroupEvents visitorGroupEvents, EPiServerFrameworkSection configuration, IVisitorGroupsStatisticsLoggerRegistry visitorGroupsStatisticsLoggerRegistry)
Parameters
Type Name Description
IVisitorGroupRepository visitorGroupStore
DynamicDataStoreFactory storeFactory
LocalizationService localizationService
IVisitorGroupEvents visitorGroupEvents
EPiServerFrameworkSection configuration
IVisitorGroupsStatisticsLoggerRegistry visitorGroupsStatisticsLoggerRegistry

Properties

CacheTime

Declaration
public DateTime CacheTime { get; }
Property Value
Type Description
System.DateTime

SettingsStore

Declaration
public DynamicDataStore SettingsStore { get; }
Property Value
Type Description
DynamicDataStore

StoreFactory

Declaration
public DynamicDataStoreFactory StoreFactory { get; set; }
Property Value
Type Description
DynamicDataStoreFactory

Methods

AddStatisticToCache(String, IVisitorGroupStatisitcViewResult)

Declaration
public void AddStatisticToCache(string cacheKey, IVisitorGroupStatisitcViewResult statisticsResult)
Parameters
Type Name Description
System.String cacheKey
IVisitorGroupStatisitcViewResult statisticsResult

Delete(Guid)

Declaration
public void Delete(Guid gadgetId)
Parameters
Type Name Description
System.Guid gadgetId

GetAllStatisticViews(String)

Declaration
public IEnumerable<SelectListItem> GetAllStatisticViews(string selectedView)
Parameters
Type Name Description
System.String selectedView
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem>

GetChartDetails(String)

Declaration
public IVisitorGroupStatisticChartDetails GetChartDetails(string viewName)
Parameters
Type Name Description
System.String viewName
Returns
Type Description
IVisitorGroupStatisticChartDetails

GetSetting(String)

Declaration
public VisitorGroupStatisticSetting GetSetting(string viewName)
Parameters
Type Name Description
System.String viewName
Returns
Type Description
VisitorGroupStatisticSetting

GetStatistic(String, VisitorGroupStatisticSetting)

Declaration
public IVisitorGroupStatisitcViewResult GetStatistic(string viewName, VisitorGroupStatisticSetting settings)
Parameters
Type Name Description
System.String viewName
VisitorGroupStatisticSetting settings
Returns
Type Description
IVisitorGroupStatisitcViewResult

GetStatistics(String, VisitorGroupStatisticSetting)

Declaration
public IVisitorGroupStatisitcViewResult GetStatistics(string viewName, VisitorGroupStatisticSetting settings)
Parameters
Type Name Description
System.String viewName
VisitorGroupStatisticSetting settings
Returns
Type Description
IVisitorGroupStatisitcViewResult

GetTranslatedView(String)

Declaration
public string GetTranslatedView(string viewName)
Parameters
Type Name Description
System.String viewName
Returns
Type Description
System.String

GetVisitorGroups(Boolean)

Declaration
public IEnumerable<VisitorGroup> GetVisitorGroups(bool useVisitorGroupCache)
Parameters
Type Name Description
System.Boolean useVisitorGroupCache
Returns
Type Description
System.Collections.Generic.IEnumerable<VisitorGroup>

IsValid(Settings, out IDictionary<String, String>)

Declaration
public bool IsValid(Settings settings, out IDictionary<string, string> errors)
Parameters
Type Name Description
Settings settings
System.Collections.Generic.IDictionary<System.String, System.String> errors
Returns
Type Description
System.Boolean

Load(Guid, Boolean)

Declaration
public Settings Load(Guid gadgetId, bool useVisitorGroupCache)
Parameters
Type Name Description
System.Guid gadgetId
System.Boolean useVisitorGroupCache
Returns
Type Description
Settings

RemoveAllStatisticsFromCache()

Declaration
public void RemoveAllStatisticsFromCache()

RemoveStatisticsFromCache(String)

Declaration
public void RemoveStatisticsFromCache(string cacheKey)
Parameters
Type Name Description
System.String cacheKey

Save(Settings)

Declaration
public void Save(Settings settings)
Parameters
Type Name Description
Settings settings

Implements

Extension Methods