예제 #1
0
 protected override void Restored(RestoreContentContext context, TPart instance)
 {
     if (OnRestored != null)
     {
         OnRestored(context, instance);
     }
 }
예제 #2
0
 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)
 {
 }
예제 #5
0
 protected virtual void Restored(RestoreContentContext context)
 {
 }
 protected override void Restoring(RestoreContentContext context) {
     _ignoreExportHandlerFor = context.ContentItem;
     _previousVersionXml = _contentManager.Export(context.ContentItem);
     _ignoreExportHandlerFor = null;
 }