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
keys
IEnumerable<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
key
intKey to reset
Delete(IEnumerable<int>)
Delete the visible field preset.
public void Delete(IEnumerable<int> fieldPresetIds)
Parameters
fieldPresetIds
IEnumerable<int>The visible field presets
Delete(int)
Delete the visible field preset.
public void Delete(int fieldPresetId)
Parameters
fieldPresetId
intThe visible field preset
DeleteTranslation(IEnumerable<int>, string)
Delete the visible field preset.
public void DeleteTranslation(IEnumerable<int> fieldPresetIds, string languageId)
Parameters
fieldPresetIds
IEnumerable<int>The visible field presets
languageId
string
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
fieldPresetId
intThe visible field preset id
Returns
GetBySystemName(string)
Gets the visible field preset by system name.
public FieldDisplayGroup GetBySystemName(string fieldPresetSystemName)
Parameters
fieldPresetSystemName
stringThe 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
fieldPreset
FieldDisplayGroupThe field preset