Table of Contents

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

CacheInformation

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

key GroupRelationKey

Key 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

keys IEnumerable<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

groupId string

The unique identifier of the group to be deleted.

parentId string

The 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

groupId string

The 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

childId string

Child group ID

Returns

GroupRelationCollection

GetGroupRelationsByParentId(string)

Get all group relations for given parentId.

public abstract GroupRelationCollection GetGroupRelationsByParentId(string parentId)

Parameters

parentId string

Parent group ID

Returns

GroupRelationCollection

Save(GroupRelation)

Saves the specified groupRelation to the underlying data store.

public abstract void Save(GroupRelation groupRelation)

Parameters

groupRelation GroupRelation

The group relation to be saved.

Exceptions

ArgumentNullException

Thrown if groupRelation is null.

SetCacheType<TObjectCache>()

Changes the storage container

public abstract void SetCacheType<TObjectCache>() where TObjectCache : ServiceCache<GroupRelationKey, GroupRelation>

Type Parameters

TObjectCache
To top