Class SettingsManager
Inheritance
System.Object
SettingsManager
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()
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
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
SettingsManager(IVisitorGroupRepository, DynamicDataStoreFactory, LocalizationService, IVisitorGroupEvents, EPiServerFrameworkSection, IVisitorGroupsStatisticsLoggerRegistry)
Declaration
public SettingsManager(IVisitorGroupRepository visitorGroupStore, DynamicDataStoreFactory storeFactory, LocalizationService localizationService, IVisitorGroupEvents visitorGroupEvents, EPiServerFrameworkSection configuration, IVisitorGroupsStatisticsLoggerRegistry visitorGroupsStatisticsLoggerRegistry)
Parameters
Properties
CacheTime
Declaration
public DateTime CacheTime { get; }
Property Value
Type |
Description |
System.DateTime |
|
SettingsStore
Declaration
public DynamicDataStore SettingsStore { get; }
Property Value
StoreFactory
Declaration
public DynamicDataStoreFactory StoreFactory { get; set; }
Property Value
Methods
AddStatisticToCache(String, IVisitorGroupStatisitcViewResult)
Declaration
public void AddStatisticToCache(string cacheKey, IVisitorGroupStatisitcViewResult statisticsResult)
Parameters
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
GetSetting(String)
Declaration
public VisitorGroupStatisticSetting GetSetting(string viewName)
Parameters
Type |
Name |
Description |
System.String |
viewName |
|
Returns
GetStatistic(String, VisitorGroupStatisticSetting)
Declaration
public IVisitorGroupStatisitcViewResult GetStatistic(string viewName, VisitorGroupStatisticSetting settings)
Parameters
Returns
GetStatistics(String, VisitorGroupStatisticSetting)
Declaration
public IVisitorGroupStatisitcViewResult GetStatistics(string viewName, VisitorGroupStatisticSetting settings)
Parameters
Returns
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
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
Implements
Extension Methods