* 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
41 lines
1.8 KiB
C#
41 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Umbraco.Cms.Core.Models.PublishedContent;
|
|
|
|
namespace Umbraco.Cms.Core.Routing
|
|
{
|
|
/// <summary>
|
|
/// Provides URLs.
|
|
/// </summary>
|
|
public interface IUrlProvider
|
|
{
|
|
/// <summary>
|
|
/// Gets the URL of a published content.
|
|
/// </summary>
|
|
/// <param name="content">The published content.</param>
|
|
/// <param name="mode">The URL mode.</param>
|
|
/// <param name="culture">A culture.</param>
|
|
/// <param name="current">The current absolute URL.</param>
|
|
/// <returns>The URL for the published content.</returns>
|
|
/// <remarks>
|
|
/// <para>The URL is absolute or relative depending on <c>mode</c> and on <c>current</c>.</para>
|
|
/// <para>If the published content is multi-lingual, gets the URL for the specified culture or,
|
|
/// when no culture is specified, the current culture.</para>
|
|
/// <para>If the provider is unable to provide a URL, it should return <c>null</c>.</para>
|
|
/// </remarks>
|
|
UrlInfo GetUrl(IPublishedContent content, UrlMode mode, string culture, Uri current);
|
|
|
|
/// <summary>
|
|
/// Gets the other URLs of a published content.
|
|
/// </summary>
|
|
/// <param name="id">The published content id.</param>
|
|
/// <param name="current">The current absolute URL.</param>
|
|
/// <returns>The other URLs for the published content.</returns>
|
|
/// <remarks>
|
|
/// <para>Other URLs are those that <c>GetUrl</c> would not return in the current context, but would be valid
|
|
/// URLs for the node in other contexts (different domain for current request, umbracoUrlAlias...).</para>
|
|
/// </remarks>
|
|
IEnumerable<UrlInfo> GetOtherUrls(int id, Uri current);
|
|
}
|
|
}
|