Class ProductAssignmentService
- Namespace
- Dynamicweb.Ecommerce.Products.ProductAssignment
- Assembly
- Dynamicweb.Ecommerce.dll
public class ProductAssignmentService : ICacheStorage<string, ProductAssignmentRule>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
ProductAssignmentService
- Implements
- Inherited Members
Fields
GroupNameStandardFieldName
public const string GroupNameStandardFieldName = "GroupName"
Field Value
GroupNumberStandardFieldName
public const string GroupNumberStandardFieldName = "GroupNumber"
Field Value
Methods
AssignProductsToGroups(IEnumerable<string>)
public void AssignProductsToGroups(IEnumerable<string> ruleIds)
Parameters
ruleIds
IEnumerable<string>
AssignProductsToGroups(IEnumerable<string>, bool)
public void AssignProductsToGroups(IEnumerable<string> ruleIds, bool doNotDetachProducts)
Parameters
ruleIds
IEnumerable<string>doNotDetachProducts
bool
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
keys
IEnumerable<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
key
string- Key to reset
Delete(IEnumerable<string>)
public void Delete(IEnumerable<string> rulesIds)
Parameters
rulesIds
IEnumerable<string>
Delete(string)
public void Delete(string ruleId)
Parameters
ruleId
string
GetById(string)
public ProductAssignmentRule GetById(string ruleId)
Parameters
ruleId
string
Returns
GetRules()
public IEnumerable<ProductAssignmentRule> GetRules()
Returns
Save(ProductAssignmentRule)
public void Save(ProductAssignmentRule rule)