2018-10-14 15:56:22 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Umbraco.Core.Models.Membership;
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Core.Models.ContentEditing
|
2018-09-20 17:22:39 +02:00
|
|
|
{
|
2018-12-03 16:14:49 +11:00
|
|
|
|
2018-09-20 17:22:39 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a content app definition.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IContentAppDefinition
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the content app for an object.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="source">The source object.</param>
|
|
|
|
|
/// <returns>The content app for the object, or null.</returns>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// <para>The definition must determine, based on <paramref name="source"/>, whether
|
|
|
|
|
/// the content app should be displayed or not, and return either a <see cref="ContentApp"/>
|
|
|
|
|
/// instance, or null.</para>
|
|
|
|
|
/// </remarks>
|
2018-10-14 15:56:22 +01:00
|
|
|
ContentApp GetContentAppFor(object source, IEnumerable<IReadOnlyUserGroup> userGroups);
|
2018-09-20 17:22:39 +02:00
|
|
|
}
|
|
|
|
|
}
|