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
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
GetMatrixFieldValues(ProductKey, string)
Gets matrix cell values for a product, ordered by row index (SortOrder).
Each value's ColumnId is the fully-qualified
column identifier (ProductCategory|{categoryId}|{fieldId}).
public virtual IReadOnlyList<MatrixFieldValue> GetMatrixFieldValues(ProductKey productKey, string matrixCategoryId)
Parameters
productKeyProductKeymatrixCategoryIdstring
Returns
GetProductCategoryFieldValue(Product, string, Field)
public virtual object? GetProductCategoryFieldValue(Product product, string categoryId, Field field)
Parameters
Returns
GetProductCategoryFieldValue(Product, string, Field, bool)
public virtual object? GetProductCategoryFieldValue(Product product, string categoryId, Field field, bool useFieldValueConversions)
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>
SaveMatrixFieldValues(ProductKey, string, string, string, IReadOnlyList<MatrixFieldRowData>)
Replaces all matrix cell values for a product.
public virtual void SaveMatrixFieldValues(ProductKey productKey, string matrixCategoryId, string parentCategoryId, string parentFieldId, IReadOnlyList<MatrixFieldRowData> rows)
Parameters
productKeyProductKeymatrixCategoryIdstringparentCategoryIdstringparentFieldIdstringrowsIReadOnlyList<MatrixFieldRowData>
UpdatePropertyFields(Product, IList<Field>)
public virtual void UpdatePropertyFields(Product product, IList<Field> propertiesFields)