* Rename Umbraco.Core namespace to Umbraco.Cms.Core * Move extension methods in core project to Umbraco.Extensions * Move extension methods in core project to Umbraco.Extensions * Rename Umbraco.Examine namespace to Umbraco.Cms.Examine * Move examine extensions to Umbraco.Extensions namespace * Reflect changed namespaces in Builder and fix unit tests * Adjust namespace in Umbraco.ModelsBuilder.Embedded * Adjust namespace in Umbraco.Persistence.SqlCe * Adjust namespace in Umbraco.PublishedCache.NuCache * Align namespaces in Umbraco.Web.BackOffice * Align namespaces in Umbraco.Web.Common * Ensure that SqlCeSupport is still enabled after changing the namespace * Align namespaces in Umbraco.Web.Website * Align namespaces in Umbraco.Web.UI.NetCore * Align namespaces in Umbraco.Tests.Common * Align namespaces in Umbraco.Tests.UnitTests * Align namespaces in Umbraco.Tests.Integration * Fix errors caused by changed namespaces * Fix integration tests * Undo the Umbraco.Examine.Lucene namespace change This breaks integration tests on linux, since the namespace wont exists there because it's only used on windows. * Fix merge * Fix Merge
96 lines
3.6 KiB
C#
96 lines
3.6 KiB
C#
using System.Collections.Generic;
|
|
using Umbraco.Cms.Core.Models;
|
|
|
|
namespace Umbraco.Cms.Infrastructure.PublishedCache.Persistence
|
|
{
|
|
/// <summary>
|
|
/// Defines a data source for NuCache.
|
|
/// </summary>
|
|
public interface INuCacheContentService
|
|
{
|
|
// TODO: For these required sort orders, would sorting on Path 'just work'?
|
|
ContentNodeKit GetContentSource(int id);
|
|
|
|
/// <summary>
|
|
/// Returns all content ordered by level + sortOrder
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// MUST be ordered by level + parentId + sortOrder!
|
|
/// </remarks>
|
|
IEnumerable<ContentNodeKit> GetAllContentSources();
|
|
|
|
/// <summary>
|
|
/// Returns branch for content ordered by level + sortOrder
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// MUST be ordered by level + parentId + sortOrder!
|
|
/// </remarks>
|
|
IEnumerable<ContentNodeKit> GetBranchContentSources(int id);
|
|
|
|
/// <summary>
|
|
/// Returns content by Ids ordered by level + sortOrder
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// MUST be ordered by level + parentId + sortOrder!
|
|
/// </remarks>
|
|
IEnumerable<ContentNodeKit> GetTypeContentSources(IEnumerable<int> ids);
|
|
|
|
ContentNodeKit GetMediaSource(int id);
|
|
|
|
/// <summary>
|
|
/// Returns all media ordered by level + sortOrder
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// MUST be ordered by level + parentId + sortOrder!
|
|
/// </remarks>
|
|
IEnumerable<ContentNodeKit> GetAllMediaSources();
|
|
|
|
/// <summary>
|
|
/// Returns branch for media ordered by level + sortOrder
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// MUST be ordered by level + parentId + sortOrder!
|
|
/// </remarks>
|
|
IEnumerable<ContentNodeKit> GetBranchMediaSources(int id); // must order by level, sortOrder
|
|
|
|
/// <summary>
|
|
/// Returns media by Ids ordered by level + sortOrder
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// MUST be ordered by level + parentId + sortOrder!
|
|
/// </remarks>
|
|
IEnumerable<ContentNodeKit> GetTypeMediaSources(IEnumerable<int> ids);
|
|
|
|
void DeleteContentItem(IContentBase item);
|
|
|
|
/// <summary>
|
|
/// Refreshes the nucache database row for the <see cref="IContent"/>
|
|
/// </summary>
|
|
void RefreshContent(IContent content);
|
|
|
|
/// <summary>
|
|
/// Refreshes the nucache database row for the <see cref="IContentBase"/> (used for media/members)
|
|
/// </summary>
|
|
void RefreshEntity(IContentBase content);
|
|
|
|
/// <summary>
|
|
/// Rebuilds the database caches for content, media and/or members based on the content type ids specified
|
|
/// </summary>
|
|
/// <param name="groupSize">The operation batch size to process the items</param>
|
|
/// <param name="contentTypeIds">If not null will process content for the matching content types, if empty will process all content</param>
|
|
/// <param name="mediaTypeIds">If not null will process content for the matching media types, if empty will process all media</param>
|
|
/// <param name="memberTypeIds">If not null will process content for the matching members types, if empty will process all members</param>
|
|
void Rebuild(
|
|
int groupSize = 5000,
|
|
IReadOnlyCollection<int> contentTypeIds = null,
|
|
IReadOnlyCollection<int> mediaTypeIds = null,
|
|
IReadOnlyCollection<int> memberTypeIds = null);
|
|
|
|
bool VerifyContentDbCache();
|
|
|
|
bool VerifyMediaDbCache();
|
|
|
|
bool VerifyMemberDbCache();
|
|
}
|
|
}
|