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.

Delete(string, string)

Deletes the related group with the specified id and language id.
[Obsolete("")]
public void Delete(string groupId, string languageId)

Parameters

groupId string
The related group id.
languageId string
The language id.

GetAllRelatedGroups()

Gets all related groups.
public IEnumerable<ProductRelatedGroup> GetAllRelatedGroups()

Returns

IEnumerable<ProductRelatedGroup>
The IEnumerable<T>.

GetProductRelatedGroup(string)

Gets the related group.
public ProductRelatedGroup GetProductRelatedGroup(string groupId)

Parameters

groupId string
The related group id.

Returns

ProductRelatedGroup
The ProductRelatedGroup.

GetProductRelatedGroup(string, string)

Gets the related group.
[Obsolete("Use the overload without languageId and then use Translations on the related group.")]
public ProductRelatedGroup GetProductRelatedGroup(string groupId, string languageId)

Parameters

groupId string
The related group id.
languageId string
The language id.

Returns

ProductRelatedGroup
The ProductRelatedGroup.

GetProductRelations(Product, string, bool)

Gets the related groups with products.
[Obsolete("Use GetProductRelations overload with productId instead")]
public IEnumerable<ProductRelation> GetProductRelations(Product product, string languageId, bool isFrontend)

Parameters

product Product
The product.
languageId string
The language id.
isFrontend bool
if set to true removes not used items from collection.

Returns

IEnumerable<ProductRelation>

GetProductRelations(string, bool)

Gets the related groups with products.
public IEnumerable<ProductRelation> GetProductRelations(string productId, bool doRefactor)

Parameters

productId string
doRefactor bool
if set to true removes not used items from collection.

Returns

IEnumerable<ProductRelation>

GetProductRelations(string, string, bool)

Gets the related groups with products.
[Obsolete("Use GetProductRelations overload without languageId instead")]
public IEnumerable<ProductRelation> GetProductRelations(string productId, string languageId, bool doRefactor)

Parameters

productId string
languageId string
The language id.
doRefactor bool
if set to true removes not used items from collection.

Returns

IEnumerable<ProductRelation>

GetRelatedGroupsByLanguage(string)

Gets the related groups by language.
[Obsolete("Use GetAllRelatedGroups instead")]
public IEnumerable<ProductRelatedGroup> GetRelatedGroupsByLanguage(string languageId)

Parameters

languageId string
The language id.

Returns

IEnumerable<ProductRelatedGroup>
The IEnumerable<T>.

GetRelatedGroupsByLanguage(string, bool)

Gets the related groups by language.
[Obsolete("Use GetAllRelatedGroups instead")]
public IEnumerable<ProductRelatedGroup> GetRelatedGroupsByLanguage(string languageId, bool showUnTranslated)

Parameters

languageId string
The language id.
showUnTranslated bool

Returns

IEnumerable<ProductRelatedGroup>
The IEnumerable<T>.

GetRelatedGroupsWithProducts(Product, bool)

Gets the related groups with products.
[Obsolete("Use GetProductRelations instead")]
public IEnumerable<ProductRelatedGroup> GetRelatedGroupsWithProducts(Product product, bool isFrontend)

Parameters

product Product
The product.
isFrontend bool
if set to true removes not used items from collection.

Returns

IEnumerable<ProductRelatedGroup>

GetRelatedGroupsWithProducts(Product, string, bool)

Gets the related groups with products.
[Obsolete("Use GetProductRelations instead")]
public IEnumerable<ProductRelatedGroup> GetRelatedGroupsWithProducts(Product product, string languageId, bool isFrontend)

Parameters

product Product
The product.
languageId string
The language id.
isFrontend bool
if set to true removes not used items from collection.

Returns

IEnumerable<ProductRelatedGroup>

Save(ProductRelatedGroup)

Saves the related group.
public void Save(ProductRelatedGroup group)

Parameters

group ProductRelatedGroup
The related group.
To top