Class ShopService
- Namespace
- Dynamicweb.Ecommerce.Shops
- Assembly
- Dynamicweb.Ecommerce.dll
The ShopService class providing methods for querying and saving The Shop Aggregate to and from persistence.
- Inheritance
-
Shop
Service
- Implements
- Inherited Members
Properties
Info
Information about the object cache
Property Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object 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 shop.
Parameters
shopId
stringThe shop ID.
GetDefaultLanguageId(string)
Gets the default shop.
Parameters
shopId
stringThe shop ID.
Returns
GetDefaultShop()
Returns
GetProductCountByShopsForBackendTree(string)
Gets product count in all shops for current language, without variants.
Parameters
languageId
string
Returns
- Dictionary<string, int>
The count of products in all shops for current language, without variants.
GetProductCountForBackendTree(string, string)
Gets product count in shop for current language, without variants.
Parameters
Returns
- int
The count of products in shop for current language, without variants.
GetShop(string)
Gets the shop.
Parameters
shopId
stringThe shop ID.
Returns
GetShopRelatedLanguages(string)
Gets the shop languages.
Parameters
shopId
stringThe shop ID.
Returns
- IEnumerable<Language>
The languages for the shop.
GetShops()
Gets all shops in solution.
Returns
- IEnumerable<Shop>
The collection of the Shop.
GetShops(IEnumerable<string>)
Gets all shops in solution matching the provided IDs.
Parameters
shopIds
IEnumerable<string>
Returns
- IEnumerable<Shop>
The collection of the Shop.
HasGroups(Shop)
Gets the value indicating whether shop has groups.
Parameters
shop
ShopThe shop.
Returns
Save(Shop)
Saves the shop.
Parameters
shop
ShopThe shop.
Returns
- Shop
The shop after saving.
SetCacheType<TObjectCache>()
Changes the storage container
Type Parameters
TObjectCache