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
keyint- Key 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
fieldPresetIdint- The 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
GetBackendDisplayGroups()
Gets field presets available in backend product editing.
public IEnumerable<FieldDisplayGroup> GetBackendDisplayGroups()
Returns
Remarks
Whether to include in result field display settings with "Use in frontend" enabled controlled by global setting '/Globalsettings/Ecom/PIM/ShowFrontendFieldDisplayGroupsInProductEdit'
GetById(int)
Gets the visible field preset by id.
public FieldDisplayGroup GetById(int fieldPresetId)
Parameters
fieldPresetIdint- The visible field preset id
Returns
GetBySystemName(string)
Gets the visible field preset by system name.
public FieldDisplayGroup GetBySystemName(string fieldPresetSystemName)
Parameters
fieldPresetSystemNamestring- The 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
fieldPresetFieldDisplayGroup- The field preset