Exemple #1
0
        protected void ReplaceImageUrlsByContentIds()
        {
            var replacedImageUrlInfo = GenerateContentIdsForImageUrlsFromHtmlContent();

            foreach (var e in replacedImageUrlInfo)
            {
                ContentIds.Add(e.Key, e.Value);
            }
        }
Exemple #2
0
        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);
                }
            }
        }
Exemple #3
0
 public bool ShouldSerializeContentIds()
 {
     return(ContentIds.Any());
 }