protected void ReplaceImageUrlsByContentIds() { var replacedImageUrlInfo = GenerateContentIdsForImageUrlsFromHtmlContent(); foreach (var e in replacedImageUrlInfo) { ContentIds.Add(e.Key, e.Value); } }
public void RemoveContent() { var sharedContentIds = Services.Portal.GetSharedContentIds(); if (ContentIds.Count > 0) { var contentProvider = Manifest.GetContentProvider(); if (contentProvider != null) { var nonSharedIds = ContentIds.Where(i => !sharedContentIds.Contains(i)).ToList(); contentProvider.Delete(nonSharedIds); } } }
public bool ShouldSerializeContentIds() { return(ContentIds.Any()); }