2019-04-17 14:41:54 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using Umbraco.Core.Models.PublishedContent;
|
2016-05-26 17:12:04 +02:00
|
|
|
|
using Umbraco.Web.Routing;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web.PublishedCache
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IDomainCache
|
|
|
|
|
|
{
|
2018-05-10 23:07:33 +10:00
|
|
|
|
/// <summary>
|
2019-04-17 14:41:54 +02:00
|
|
|
|
/// Gets all <see cref="Domain"/> in the current domain cache, including any domains that may be referenced by documents that are no longer published.
|
2018-05-10 23:07:33 +10:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="includeWildcards"></param>
|
|
|
|
|
|
/// <returns></returns>
|
2016-05-26 17:12:04 +02:00
|
|
|
|
IEnumerable<Domain> GetAll(bool includeWildcards);
|
2018-05-10 23:07:33 +10:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-04-17 14:41:54 +02:00
|
|
|
|
/// Gets all assigned <see cref="Domain"/> for specified document, even if it is not published.
|
2018-05-10 23:07:33 +10:00
|
|
|
|
/// </summary>
|
2019-04-17 14:41:54 +02:00
|
|
|
|
/// <param name="documentId">The document identifier.</param>
|
|
|
|
|
|
/// <param name="includeWildcards">A value indicating whether to consider wildcard domains.</param>
|
|
|
|
|
|
IEnumerable<Domain> GetAssigned(int documentId, bool includeWildcards = false);
|
2018-05-10 23:07:33 +10:00
|
|
|
|
|
2019-04-17 14:41:54 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Determines whether a document has domains.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="documentId">The document identifier.</param>
|
|
|
|
|
|
/// <param name="includeWildcards">A value indicating whether to consider wildcard domains.</param>
|
|
|
|
|
|
bool HasAssigned(int documentId, bool includeWildcards = false);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the system default culture.
|
|
|
|
|
|
/// </summary>
|
2018-04-26 16:03:08 +02:00
|
|
|
|
string DefaultCulture { get; }
|
2016-05-26 17:12:04 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|