Class ProductCategoryFieldValueService
- Namespace
- Dynamicweb.Ecommerce.Products.Categories
- Assembly
- Dynamicweb.Ecommerce.dll
public class ProductCategoryFieldValueService : ICacheStorage<string, ProductCategoryValues>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
ProductCategoryFieldValueService
- Implements
- Inherited Members
Constructors
ProductCategoryFieldValueService()
public ProductCategoryFieldValueService()
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public void ClearCache()
ClearCache(IEnumerable<string>)
Resets the specified keys to the default value for objects stored in the object cache
public void ClearCache(IEnumerable<string> keys)
Parameters
keysIEnumerable<string>Keys to reset
ClearCache(string)
Resets the specified key to the default value for objects stored in the object cache
public void ClearCache(string key)
Parameters
keystringKey to reset
GetDefaultCategoryValue(Product, Field)
Gets default product category field value
public virtual object? GetDefaultCategoryValue(Product product, Field field)
Parameters
Returns
- object
Field value
GetProductCategoryFieldValue(Product, string, Field)
public virtual object? GetProductCategoryFieldValue(Product product, string categoryId, Field field)
Parameters
Returns
GetProductCategoryValueSorting(IList<Product>)
public virtual Dictionary<string, List<FieldSortingInfo>> GetProductCategoryValueSorting(IList<Product> products)
Parameters
Returns
PrepareProductValues(IEnumerable<string>)
Requests the values for the given productIds and stores them in the cache
public virtual void PrepareProductValues(IEnumerable<string> productIds)
Parameters
productIdsIEnumerable<string>
UpdatePropertyFields(Product, IList<Field>)
public virtual void UpdatePropertyFields(Product product, IList<Field> propertiesFields)