November Happy Hour will be moved to Thursday December 5th.

Class CatalogItemChangeManager

Handles changes regarding catalog items.

Inheritance
System.Object
CatalogItemChangeManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce
Assembly: Mediachase.Commerce.dll
Version: 13.30.0
Syntax
public class CatalogItemChangeManager : CatalogItemChangeHandlerBase

Constructors

CatalogItemChangeManager(IChangeNotificationManager, EntryIdentityResolver)

Initializes a new instance of the CatalogItemChangeManager class.

Declaration
public CatalogItemChangeManager(IChangeNotificationManager changeNotificationManager, EntryIdentityResolver entryIdentityResolver)
Parameters
Type Name Description
EPiServer.Events.ChangeNotification.IChangeNotificationManager changeNotificationManager

The change notification manager.

EntryIdentityResolver entryIdentityResolver

The entry identity resolver.

Fields

DisableCatalogEventDrivenIndexingSettingKey

Declaration
public const string DisableCatalogEventDrivenIndexingSettingKey = "episerver:DisableCatalogEventDrivenIndexing"
Field Value
Type Description
System.String

Properties

BatchSize

Gets or sets the batch size of catalog index.

Declaration
public int BatchSize { get; set; }
Property Value
Type Description
System.Int32

Methods

ClearChanges()

Clears the changes.

Declaration
public void ClearChanges()
Remarks

Should only be used for rebuilding index.

DeleteChanges(IEnumerable<Int32>)

Deletes changes which were indexed.

Declaration
public void DeleteChanges(IEnumerable<int> ids)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Int32> ids

The list of id to remove.

GetChangesCount(Int32)

Gets total number count of changes.

Declaration
public int GetChangesCount(int catalogId)
Parameters
Type Name Description
System.Int32 catalogId
Returns
Type Description
System.Int32

Number of changed entries.

GetChangesFragment(Int32)

Gets the changes by batch.

Declaration
public IEnumerable<int> GetChangesFragment(int catalogId)
Parameters
Type Name Description
System.Int32 catalogId
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Int32>

List of catalog entry ids which were changed.

InsertChanges(IEnumerable<Int32>)

Inserts changes regarding catalog entries.

Declaration
public override void InsertChanges(IEnumerable<int> entryIds)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Int32> entryIds
Overrides

NotifyChanges(IEnumerable<IBulkChangeItem<CatalogEntryChange>>)

Notifies changes regarding catalog entries.

Declaration
[Obsolete("Use CatalogItemChangeNotifier instead")]
public void NotifyChanges(IEnumerable<IBulkChangeItem<CatalogEntryChange>> changes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<EPiServer.Events.ChangeNotification.IBulkChangeItem<CatalogEntryChange>> changes

The changes.

NotifyChanges(IEnumerable<Int32>)

Notifies changes regarding catalog entries.

Declaration
[Obsolete("Use CatalogItemChangeNotifier instead")]
public void NotifyChanges(IEnumerable<int> changes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Int32> changes

The changed catalog entry ids.