Class PresetRepository
- Namespace
- Dynamicweb.Content.Items.Presets
- Assembly
- Dynamicweb.dll
public class PresetRepository
- Inheritance
-
PresetRepository
- Inherited Members
Methods
Delete(string, string?)
Delete the specified preset
public void Delete(string itemType, string? systemName)
Parameters
GetByItem(string)
Get presets
public IEnumerable<Preset> GetByItem(string itemType)
Parameters
itemTypestringThe item type
Returns
- IEnumerable<Preset>
The preset collection
GetByName(string, string)
Gets by name
public Preset? GetByName(string itemType, string systemName)
Parameters
Returns
- Preset
The analytic report
GetNewSystemName(string, string)
Get new system name
public string GetNewSystemName(string itemType, string name)
Parameters
Returns
Save(string, Preset, string)
Saves the specified preset
public void Save(string itemType, Preset preset, string systemName)
Parameters
SetSelected(string, string, string, bool)
Set selected preset
public void SetSelected(string itemType, string itemId, string systemName, bool isModified)
Parameters
itemTypestringThe item type
itemIdstringThe item id
systemNamestringThe preset system name
isModifiedboolIs the preset was modified
TryGetSelected(string, string, out SelectedInformation)
Get selected preset
public bool TryGetSelected(string itemType, string itemId, out SelectedInformation selectedInfo)
Parameters
itemTypestringThe item type
itemIdstringThe item id
selectedInfoSelectedInformationThe selected preset