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
GetAllRelatedGroups()
Gets all related groups.
public IEnumerable<ProductRelatedGroup> GetAllRelatedGroups()
Returns
GetProductRelatedGroup(string)
Gets the related group.
public ProductRelatedGroup GetProductRelatedGroup(string groupId)
Parameters
groupId
string- The related group id.
Returns
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
Returns
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
GetProductRelations(string, bool)
Gets the related groups with products.
public IEnumerable<ProductRelation> GetProductRelations(string productId, bool doRefactor)
Parameters
Returns
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
stringlanguageId
string- The language id.
doRefactor
bool- if set to
true
removes not used items from collection.
Returns
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
GetRelatedGroupsByLanguage(string, bool)
Gets the related groups by language.
[Obsolete("Use GetAllRelatedGroups instead")]
public IEnumerable<ProductRelatedGroup> GetRelatedGroupsByLanguage(string languageId, bool showUnTranslated)
Parameters
Returns
GetRelatedGroupsWithProducts(Product, bool)
Gets the related groups with products.
[Obsolete("Use GetProductRelations instead")]
public IEnumerable<ProductRelatedGroup> GetRelatedGroupsWithProducts(Product product, bool isFrontend)
Parameters
Returns
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
Save(ProductRelatedGroup)
Saves the related group.
public void Save(ProductRelatedGroup group)
Parameters
group
ProductRelatedGroup- The related group.