* 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
53 lines
1.6 KiB
C#
53 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Umbraco.Cms.Core.Models.PublishedContent
|
|
{
|
|
/// <summary>
|
|
/// Represents a published element.
|
|
/// </summary>
|
|
public interface IPublishedElement
|
|
{
|
|
#region ContentType
|
|
|
|
/// <summary>
|
|
/// Gets the content type.
|
|
/// </summary>
|
|
IPublishedContentType ContentType { get; }
|
|
|
|
#endregion
|
|
|
|
#region PublishedElement
|
|
|
|
/// <summary>
|
|
/// Gets the unique key of the published element.
|
|
/// </summary>
|
|
Guid Key { get; }
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
/// <summary>
|
|
/// Gets the properties of the element.
|
|
/// </summary>
|
|
/// <remarks>Contains one <c>IPublishedProperty</c> for each property defined for the content type, including
|
|
/// inherited properties. Some properties may have no value.</remarks>
|
|
IEnumerable<IPublishedProperty> Properties { get; }
|
|
|
|
/// <summary>
|
|
/// Gets a property identified by its alias.
|
|
/// </summary>
|
|
/// <param name="alias">The property alias.</param>
|
|
/// <returns>The property identified by the alias.</returns>
|
|
/// <remarks>
|
|
/// <para>If the content type has no property with that alias, including inherited properties, returns <c>null</c>,</para>
|
|
/// <para>otherwise return a property -- that may have no value (ie <c>HasValue</c> is <c>false</c>).</para>
|
|
/// <para>The alias is case-insensitive.</para>
|
|
/// </remarks>
|
|
IPublishedProperty GetProperty(string alias);
|
|
|
|
#endregion
|
|
}
|
|
}
|