Table of Contents

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

string

GroupNumberStandardFieldName

public const string GroupNumberStandardFieldName = "GroupNumber"

Field Value

string

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

ProductAssignmentRule

GetRules()

public IEnumerable<ProductAssignmentRule> GetRules()

Returns

IEnumerable<ProductAssignmentRule>

Save(ProductAssignmentRule)

public void Save(ProductAssignmentRule rule)

Parameters

rule ProductAssignmentRule
To top