Class FieldValueConversionGroupService
- Namespace
- Dynamicweb.Ecommerce.Products.FieldValueConversions
- Assembly
- Dynamicweb.Ecommerce.dll
The service provides methods for fetching, adding, updating and removing field value conversion group data.
public sealed class FieldValueConversionGroupService : ICacheStorage<int, FieldValueConversionGroup>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
FieldValueConversionGroupService
- Implements
- Inherited Members
Constructors
FieldValueConversionGroupService()
public FieldValueConversionGroupService()
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(int)
Delete the field value conversion group.
public void Delete(int fieldValueConversionGroupId)
Parameters
fieldValueConversionGroupIdintThe field value conversion group id
GetAll()
Gets all field value conversion groups.
public IEnumerable<FieldValueConversionGroup> GetAll()
Returns
GetBaseUnit(int)
Gets the base field value conversion unit for a group.
public FieldValueConversion? GetBaseUnit(int parentGroupId)
Parameters
parentGroupIdintThe id of field value conversion parent group
Returns
GetById(int)
Gets the field value conversion group by id.
public FieldValueConversionGroup? GetById(int fieldValueConversionGroupId)
Parameters
fieldValueConversionGroupIdintThe field value conversion group id
Returns
GetBySystemName(string)
Gets the field value conversion group by system name.
public FieldValueConversionGroup? GetBySystemName(string systemName)
Parameters
systemNamestringThe field value conversion group system name
Returns
GetUsages(IEnumerable<int>)
public IEnumerable<FieldValueConversionUsage> GetUsages(IEnumerable<int> fieldValueConversionGroupIds)
Parameters
fieldValueConversionGroupIdsIEnumerable<int>
Returns
Save(FieldValueConversionGroup)
Saves the field value conversion group.
public void Save(FieldValueConversionGroup fieldValueConversionGroup)
Parameters
fieldValueConversionGroupFieldValueConversionGroupThe value conversion group