Table of Contents

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 string

Key to reset

Delete(string)

Deletes the related groups with the specified id.

public void Delete(string groupId)

Parameters

groupId string

The related group id.

GetAllRelatedGroups()

Gets all related groups.

public IEnumerable<ProductRelatedGroup> GetAllRelatedGroups()

Returns

IEnumerable<ProductRelatedGroup>

The IEnumerable<T>.

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 string

The product group id.

languageId string

The product group language id.

relatedGroupId string

The related group id. This is used to filter the relations and return only relations that belong to this group.

Returns

IEnumerable<GroupRelatedProductKey>

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 string

Product group id.

languageId string

Language id.

doRefactor bool

if set to true removes not used items from collection.

Returns

IEnumerable<ProductRelation>

GetProductRelatedGroup(string)

Gets the related group.

public ProductRelatedGroup GetProductRelatedGroup(string groupId)

Parameters

groupId string

The related group id.

Returns

ProductRelatedGroup

The ProductRelatedGroup.

GetProductRelations(string, bool)

Gets the related groups with products.

public IEnumerable<ProductRelation> GetProductRelations(string productId, bool doRefactor)

Parameters

productId string

The product id.

doRefactor bool

if set to true removes not used items from collection.

Returns

IEnumerable<ProductRelation>

Save(ProductRelatedGroup)

Saves the related group.

public void Save(ProductRelatedGroup group)

Parameters

group ProductRelatedGroup

The related group.

To top