Class ProductRelatedGroupService
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
public class ProductRelatedGroupService : ICacheStorage<string, ProductRelatedGroup>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
Product
Related Group Service
- Implements
- Inherited Members
Methods
ClearCache()
Clears the related groups cache
ClearCache(IEnumerable<string>)
Resets the specified keys to the default value for objects stored in the object cache
Parameters
keys
IEnumerable<string>Keys to reset
ClearCache(string)
Resets the specified key to the default value for objects stored in the object cache
Parameters
key
stringKey to reset
Delete(string)
Deletes the related groups with the specified id.
Parameters
groupId
stringThe related group id.
GetAllRelatedGroups()
Gets all related groups.
Returns
GetGroupRelatedProductKeys(string, string, string)
Gets the collection of group related product keys. The key is a combination of product group, related group and related product information.
public IEnumerable<GroupRelatedProductKey> GetGroupRelatedProductKeys(string groupId, string languageId, string relatedGroupId)
Parameters
groupId
stringThe product group id.
languageId
stringThe product group language id.
relatedGroupId
stringThe related group id. This is used to filter the relations and return only relations that belong to this group.
Returns
GetProductGroupRelations(string, string, bool)
Gets the related groups with products for product group.
public IEnumerable<ProductRelation> GetProductGroupRelations(string groupId, string languageId, bool doRefactor)
Parameters
groupId
stringProduct group id.
languageId
stringLanguage id.
doRefactor
boolif set to
true
removes not used items from collection.
Returns
GetProductRelatedGroup(string)
Gets the related group.
Parameters
groupId
stringThe related group id.
Returns
GetProductRelations(string, bool)
Gets the related groups with products.
Parameters
productId
stringThe product id.
doRefactor
boolif set to
true
removes not used items from collection.
Returns
Save(ProductRelatedGroup)
Saves the related group.
Parameters
group
ProductRelated Group The related group.