protected override void Restored(RestoreContentContext context, TPart instance) { if (OnRestored != null) { OnRestored(context, instance); } }
void IContentHandler.Restored(RestoreContentContext context) { foreach (var filter in Filters.OfType <IContentStorageFilter>()) { filter.Restored(context); } Restored(context); }
protected override void Restored(RestoreContentContext context) { var contentItem = context.ContentItem; _ignoreExportHandlerFor = contentItem; var newVersionXml = _contentManager.Export(contentItem); _ignoreExportHandlerFor = null; var diffGram = _analyzer.GenerateDiffGram(_previousVersionXml, newVersionXml); RecordAuditTrailEvent(ContentAuditTrailEventProvider.Restored, context.ContentItem, diffGram: diffGram, previousVersionXml: _previousVersionXml); }
public void Restoring(RestoreContentContext context) { }
protected virtual void Restored(RestoreContentContext context) { }
protected override void Restoring(RestoreContentContext context) { _ignoreExportHandlerFor = context.ContentItem; _previousVersionXml = _contentManager.Export(context.ContentItem); _ignoreExportHandlerFor = null; }