Esempio n. 1
0
        /// <summary>
        /// Saves rows of data for
        /// </summary>
        /// <param name="r">An IContentRevision object.</param>
        /// <param name="rows">A list of content row data.</param>
        public void SaveRows(IContentRevision r, List <ContentRow> rows)
        {
            var data = new Data.ContentRepository();

            foreach (var row in rows)
            {
                data.SaveRow(r, row);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Saves a content revision.
        /// </summary>
        /// <param name="r">The IContentRevision object.</param>
        public void SaveRevision(IContentRevision r)
        {
            var data = new Data.ContentRepository();

            data.SaveRevision(r);
        }
Esempio n. 3
0
        /// <summary>
        /// Saves a content entity.
        /// </summary>
        /// <param name="e">The IContentEntity object.</param>
        public void SaveEntity(IContentEntity e)
        {
            var data = new Data.ContentRepository();

            data.SaveEntity(e);
        }
Esempio n. 4
0
        /// <summary>
        /// Loads the revisions for a particular piece of content.
        /// </summary>
        /// <param name="contentID">the ID of the content to load</param>
        /// <param name="siteID">the site ID of the content</param>
        /// <returns>a list of revision objects</returns>
        public IList <IContentRevision> LoadRevisions(Guid contentID, int siteID)
        {
            var data = new Data.ContentRepository();

            return(data.GetContentRevisions(contentID, siteID));
        }
Esempio n. 5
0
        /// <summary>
        /// Loads content and configures buckets and embeddables.
        /// </summary>
        /// <param name="contentID">the ID of the content to load</param>
        public IList <IContentRow> LoadContent(Guid contentID)
        {
            var data = new Data.ContentRepository();

            return(data.GetContentRows(contentID));
        }
Esempio n. 6
0
        /// <summary>
        /// Loads the data for a single piece of content.
        /// </summary>
        /// <param name="contentID">the ID of the content to load</param>
        /// <returns>an object that implements IContentEntity</returns>
        public IContentEntity GetContentEntity(Guid contentID)
        {
            var data = new Data.ContentRepository();

            return(data.GetContentEntity(contentID));
        }