...
Code Block |
---|
public class UpdateNotification { public ChangeType ChangeType { get; set; } public ChangeData Data { get; set; } } public class ChangeData { public int ItemId { get; set; } public int BaseId { get; set; } } |
The property ChangeType indicates whether it's an AssetChanged, MetafieldChanged, ComboValueChanged or TreeValueChanged. The DAM for Sitecore connector only support the event type AssetChanged. The following happens when we recive the AssetChanged event:
Run the pipeline
DFS.DigizuiteUpdateNotification
Call Digizuite api to fetch the asset information.
Save the asset in the asset silo (/sitecore/media library/Digizuite/Assets).
Clear local asset cache.
Send remove event to all CD servers and clear cache.