Exemple #1
0
 internal static CatalogPage Create(CatalogIndependentPage page)
 {
     return(new CatalogPage(
                page.IdKeyword,
                page.TypeKeyword,
                page.CommitId,
                page.CommitTimeStamp,
                page.Count));
 }
Exemple #2
0
        internal static CatalogIndex Create(CatalogIndependentPage page, JObject contextKeyword)
        {
            var lastCreated = page.CommitTimeStamp;
            var lastDeleted = page.CommitTimeStamp;
            var lastEdited  = page.CommitTimeStamp;
            var pages       = new[] { CatalogPage.Create(page) };

            return(new CatalogIndex(
                       page.Parent,
                       new[] { CatalogConstants.CatalogRoot, CatalogConstants.AppendOnlyCatalog, CatalogConstants.Permalink },
                       page.CommitId,
                       page.CommitTimeStamp,
                       pages.Length,
                       lastCreated,
                       lastDeleted,
                       lastEdited,
                       pages,
                       contextKeyword));
        }