Class ProductRelatedGroupService
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
public class ProductRelatedGroupService : ICacheStorage<string, ProductRelatedGroup>, ICacheStorage<string>, ICacheStorage
- Inheritance
-
ProductRelatedGroupService
- Implements
- Inherited Members
Methods
ClearCache()
Clears the related groups 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
stringKey to reset
Delete(string)
Deletes the related groups with the specified id.
public void Delete(string groupId)
Parameters
groupId
stringThe related group id.
GetAllRelatedGroups()
Gets all related groups.
public IEnumerable<ProductRelatedGroup> GetAllRelatedGroups()
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.
public ProductRelatedGroup GetProductRelatedGroup(string groupId)
Parameters
groupId
stringThe related group id.
Returns
GetProductRelations(string, bool)
Gets the related groups with products.
public IEnumerable<ProductRelation> GetProductRelations(string productId, bool doRefactor)
Parameters
productId
stringThe product id.
doRefactor
boolif set to
true
removes not used items from collection.
Returns
Save(ProductRelatedGroup)
Saves the related group.
public void Save(ProductRelatedGroup group)
Parameters
group
ProductRelatedGroupThe related group.