Пример #1
0
        private void MediaService_Deleted(IMediaService sender, DeleteEventArgs <IMedia> e)
        {
            var signature      = GetUserSignature(CurrentUser);
            var mediaSignature = GetContentSignatures(e.DeletedEntities);

            HistoryHelper.AddHistoryItem($"{signature} deleted the following media item: {mediaSignature}");
        }
Пример #2
0
        private void MediaService_Created(IMediaService sender, NewEventArgs <IMedia> e)
        {
            var signature      = GetUserSignature(CurrentUser);
            var mediaSignature = GetContentSignature(e.Entity);

            HistoryHelper.AddHistoryItem($"{signature} created new media item: {mediaSignature}");
        }
Пример #3
0
        private void MediaService_Moved(IMediaService sender, MoveEventArgs <IMedia> e)
        {
            var signature      = GetUserSignature(CurrentUser);
            var mediaSignature = GetContentSignatures(e.MoveInfoCollection.Select(i => i.Entity));

            HistoryHelper.AddHistoryItem($"{signature} moved the following media item: {mediaSignature}");
        }
Пример #4
0
        private void MediaService_EmptiedRecycleBin(IMediaService sender, RecycleBinEventArgs e)
        {
            var signature = GetUserSignature(CurrentUser);
            var ids       = e.Ids.Select(i => i.ToString()).CombineStrings(ListSeparator);

            HistoryHelper.AddHistoryItem($"{signature} emptied the recycle bin, permanently deleting media items with the following ids: {ids}");
        }
Пример #5
0
        private void ContentService_Trashed(IContentService sender, MoveEventArgs <IContent> e)
        {
            var user             = GetUserSignature(CurrentUser);
            var contentSignature = GetContentSignatures(e.MoveInfoCollection.Select(i => i.Entity));

            HistoryHelper.AddHistoryItem($"{user} moved the following content into the trash: {contentSignature}");
        }
Пример #6
0
        private void ContentService_UnPublished(IPublishingStrategy sender, PublishEventArgs <IContent> e)
        {
            var user             = GetUserSignature(CurrentUser);
            var contentSignature = GetContentSignatures(e.PublishedEntities);

            HistoryHelper.AddHistoryItem($"{user} unpublished the following content: {contentSignature}");
        }
Пример #7
0
        private void ContentService_Saved(IContentService sender, SaveEventArgs <IContent> e)
        {
            var user             = GetUserSignature(CurrentUser);
            var contentSignature = GetContentSignatures(e.SavedEntities);

            HistoryHelper.AddHistoryItem($"{user} saved the following content: {contentSignature}");
        }
Пример #8
0
        private void ContentService_RolledBack(IContentService sender, RollbackEventArgs <IContent> e)
        {
            var user             = GetUserSignature(CurrentUser);
            var contentSignature = GetContentSignature(e.Entity);

            HistoryHelper.AddHistoryItem($"{user} rolled back the following content: {contentSignature}");
        }
Пример #9
0
        private void ContentService_EmptiedRecycleBin(IContentService sender, RecycleBinEventArgs e)
        {
            var user             = GetUserSignature(CurrentUser);
            var contentSignature = e.Ids.Select(i => i.ToString()).CombineStrings(ListSeparator);

            HistoryHelper.AddHistoryItem($"{user} emptied the recycle bin, permanently deleting nodes with the following ids: {contentSignature}");
        }
Пример #10
0
        private void ContentService_Created(IContentService sender, NewEventArgs <IContent> e)
        {
            var user             = GetUserSignature(CurrentUser);
            var contentSignature = GetContentSignature(e.Entity);

            HistoryHelper.AddHistoryItem($"{user} created {contentSignature}");
        }
Пример #11
0
        private void ContentService_Copied(IContentService sender, CopyEventArgs <IContent> e)
        {
            var signature     = GetUserSignature(CurrentUser);
            var fromSignature = GetContentSignature(e.Original);
            var toSignature   = GetContentSignature(e.Copy);

            HistoryHelper.AddHistoryItem($"{signature} copied content from {fromSignature} to {toSignature}");
        }