Class FieldValueConversionRuleService
- Namespace
- Dynamicweb.Ecommerce.Products.FieldValueConversions
- Assembly
- Dynamicweb.Ecommerce.dll
Provides an abstract base class for managing FieldValueConversionRule objects.
[Experimental("DWEX100002")]
public abstract class FieldValueConversionRuleService : ICacheStorage<int, FieldValueConversionRule>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
FieldValueConversionRuleService
- Implements
- Inherited Members
Properties
Info
Information about the object cache
public abstract CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public abstract void ClearCache()
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
public abstract 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 abstract void ClearCache(int key)
Parameters
keyintKey to reset
Delete(FieldValueConversionRule)
Deletes a FieldValueConversionRule object.
public abstract void Delete(FieldValueConversionRule rule)
Parameters
Exceptions
- ArgumentNullException
Thrown when
ruleis null.
DeleteByField(string)
Deletes all FieldValueConversionRule objects associated with a specific Field ID.
public abstract void DeleteByField(string fieldId)
Parameters
fieldIdstringThe Field ID
DeleteByFieldValueConversionId(int)
Deletes all FieldValueConversionRule objects associated with a specific Field Value Conversion ID.
public abstract void DeleteByFieldValueConversionId(int fieldValueConversionId)
Parameters
fieldValueConversionIdintThe Field Value Conversion ID
DeleteByIds(IEnumerable<int>?)
Deletes a collection of FieldValueConversionRule objects that matches the provided rule ids.
public abstract void DeleteByIds(IEnumerable<int>? ruleIds)
Parameters
ruleIdsIEnumerable<int>
Exceptions
- ArgumentNullException
Thrown when
ruleIdsis null.
GetAllByField(string)
Retrieves all rules associated with a specific field.
public abstract IEnumerable<FieldValueConversionRule> GetAllByField(string fieldId)
Parameters
fieldIdstringThe Field ID.
Returns
GetByField(string, FieldValueConversionContext)
Retrieves a rule for a specific FieldValueConversionContext.
public abstract FieldValueConversionRule? GetByField(string fieldId, FieldValueConversionContext context)
Parameters
fieldIdstringThe Field ID.
contextFieldValueConversionContextThe FieldValueConversionContext to provide additional context for the retrieval.
Returns
GetById(int)
Retrieves all rules associated with a specific field.
public abstract FieldValueConversionRule? GetById(int id)
Parameters
idintThe rule ID.
Returns
Save(FieldValueConversionRule)
Saves a FieldValueConversionRule object.
public abstract void Save(FieldValueConversionRule rule)
Parameters
Exceptions
- ArgumentNullException
Thrown when
ruleis null.
SetCacheType<TObjectCache>()
Changes the storage container
public abstract void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<int, FieldValueConversionRule>
Type Parameters
TObjectCache