Class GroupRelationService
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
public abstract class GroupRelationService : ICacheStorage<GroupRelationKey, GroupRelation>, ICacheStorage<GroupRelationKey>, ICacheStorage
- Inheritance
-
GroupRelationService
- Implements
- Inherited Members
Properties
Info
Information about the object cache
public abstract CacheInformation Info { get; }
Property Value
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
public abstract void ClearCache()
ClearCache(GroupRelationKey)
Resets the specified key to the default value for objects stored in the object cache
public abstract void ClearCache(GroupRelationKey key)
Parameters
keyGroupRelationKeyKey to reset
ClearCache(IEnumerable<GroupRelationKey>)
Resets the specified keys to the default value for objects stored in the object cache
public abstract void ClearCache(IEnumerable<GroupRelationKey> keys)
Parameters
keysIEnumerable<GroupRelationKey>Keys to reset
Delete(string, string)
Deletes the specified group and its associated parent entity.
public abstract void Delete(string groupId, string parentId)
Parameters
groupIdstringThe unique identifier of the group to be deleted.
parentIdstringThe unique identifier of the parent entity associated with the group.
DeleteByGroup(string)
Deletes all items associated with the specified group identifier.
public abstract void DeleteByGroup(string groupId)
Parameters
groupIdstringThe unique identifier of the group whose items are to be deleted.
GetGroupRelationsByChildId(string)
Get all group relations for given childId.
public abstract GroupRelationCollection GetGroupRelationsByChildId(string childId)
Parameters
childIdstringChild group ID
Returns
GetGroupRelationsByParentId(string)
Get all group relations for given parentId.
public abstract GroupRelationCollection GetGroupRelationsByParentId(string parentId)
Parameters
parentIdstringParent group ID
Returns
Save(GroupRelation)
Saves the specified groupRelation to the underlying data store.
public abstract void Save(GroupRelation groupRelation)
Parameters
groupRelationGroupRelationThe group relation to be saved.
Exceptions
- ArgumentNullException
Thrown if
groupRelationis null.
SetCacheType<TObjectCache>()
Changes the storage container
public abstract void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<GroupRelationKey, GroupRelation>
Type Parameters
TObjectCache