Class FieldDisplayGroupService
- Namespace
- Dynamicweb.Ecommerce.Products.FieldDisplayGroups
- Assembly
- Dynamicweb.Ecommerce.dll
The class FieldDisplayGroupService provids different methods for visible field presets.
public class FieldDisplayGroupService : ICacheStorage<int, FieldDisplayGroup>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
FieldDisplayGroupService
- Implements
- Inherited Members
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
public void ClearCache(IEnumerable<int> keys)
Parameters
keysIEnumerable<int>Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
public void ClearCache(int key)
Parameters
keyintKey to reset
Delete(IEnumerable<int>)
Delete the visible field preset.
public void Delete(IEnumerable<int> fieldPresetIds)
Parameters
fieldPresetIdsIEnumerable<int>The visible field presets
Delete(int)
Delete the visible field preset.
public void Delete(int fieldPresetId)
Parameters
fieldPresetIdintThe visible field preset
DeleteTranslation(IEnumerable<int>, string)
Delete the visible field preset.
public void DeleteTranslation(IEnumerable<int> fieldPresetIds, string languageId)
Parameters
fieldPresetIdsIEnumerable<int>The visible field presets
languageIdstring
GetAll()
Gets all visible field presets sorted by index.
public IEnumerable<FieldDisplayGroup> GetAll()
Returns
GetById(int)
Gets the visible field preset by id.
public FieldDisplayGroup? GetById(int fieldPresetId)
Parameters
fieldPresetIdintThe visible field preset id
Returns
GetBySystemName(string)
Gets the visible field preset by system name.
public FieldDisplayGroup? GetBySystemName(string fieldPresetSystemName)
Parameters
fieldPresetSystemNamestringThe visible field preset system name
Returns
GetFrontendDisplayGroups()
Gets all visible field presets available in frontend.
public IEnumerable<FieldDisplayGroup> GetFrontendDisplayGroups()
Returns
Save(FieldDisplayGroup)
Saves the visible field preset.
public void Save(FieldDisplayGroup fieldPreset)
Parameters
fieldPresetFieldDisplayGroupThe field preset