Table of Contents

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

itemType string

The item type

systemName string

The preset system name

GetByItem(string)

Get presets

public IEnumerable<Preset> GetByItem(string itemType)

Parameters

itemType string

The item type

Returns

IEnumerable<Preset>

The preset collection

GetByName(string, string)

Gets by name

public Preset? GetByName(string itemType, string systemName)

Parameters

itemType string

The item type

systemName string

The preset system name

Returns

Preset

The analytic report

GetNewSystemName(string, string)

Get new system name

public string GetNewSystemName(string itemType, string name)

Parameters

itemType string

The item type

name string

The preset name

Returns

string

Save(string, Preset, string)

Saves the specified preset

public void Save(string itemType, Preset preset, string systemName)

Parameters

itemType string

The item type

preset Preset

The preset

systemName string

The preset system name

SetSelected(string, string, string, bool)

Set selected preset

public void SetSelected(string itemType, string itemId, string systemName, bool isModified)

Parameters

itemType string

The item type

itemId string

The item id

systemName string

The preset system name

isModified bool

Is the preset was modified

TryGetSelected(string, string, out SelectedInformation)

Get selected preset

public bool TryGetSelected(string itemType, string itemId, out SelectedInformation selectedInfo)

Parameters

itemType string

The item type

itemId string

The item id

selectedInfo SelectedInformation

The selected preset

Returns

bool
To top