Class DetailsGroupService
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
The DetailsGroupService class providing methods for querying and saving the DetailsGroup data.
public class DetailsGroupService : ICacheStorage<int, DetailsGroup>, ICacheStorage<int>, ICacheStorage
- Inheritance
-
DetailsGroupService
- Implements
- Inherited Members
Methods
ClearCache()
Clear details groups cache.
public void ClearCache()
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
public void ClearCache(IEnumerable<int> keys)
Parameters
keys
IEnumerable<int>- Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
public void ClearCache(int key)
Parameters
key
int- Key to reset
Delete(IEnumerable<int>)
Delete the details groups.
public void Delete(IEnumerable<int> groupIds)
Parameters
groupIds
IEnumerable<int>- The details groups
Delete(int)
Delete the details group.
public void Delete(int groupId)
Parameters
groupId
int- The details group
DeleteTexts(IEnumerable<DetailsGroup>, string)
Delete the details group texts.
public void DeleteTexts(IEnumerable<DetailsGroup> groups, string languageId)
Parameters
groups
IEnumerable<DetailsGroup>- The details groups
languageId
string- The language id
GetById(int)
Gets the details group by id.
public DetailsGroup GetById(int groupId)
Parameters
groupId
int- The details group id
Returns
GetDetailExtensions()
Gets extensions alowed for details group
public IEnumerable<string> GetDetailExtensions()
Returns
Remarks
The extensions stored in global settings by key DetailExtensionsGlobalSettingsKey.
GetGroups()
Gets all details groups.
public IEnumerable<DetailsGroup> GetGroups()
Returns
Save(DetailsGroup)
Saves the details group.
public void Save(DetailsGroup group)
Parameters
group
DetailsGroup- The details group
UpdateCategoryPrimaryImageRule(int)
Updates is primary image rule for specified details group id
public void UpdateCategoryPrimaryImageRule(int groupId)
Parameters
groupId
int- Group id
Remarks
If detail Id not set - updates all the detail groups so they are not default