2015-02-18 17:14:55 +01:00
|
|
|
|
using System.Collections.Generic;
|
2016-06-10 16:37:28 +02:00
|
|
|
|
using Umbraco.Core.Models.PublishedContent;
|
2015-02-18 17:14:55 +01:00
|
|
|
|
using Umbraco.Web.Models;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Web
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface ITagQuery
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
/// Gets all documents tagged with the specified tag.
|
2015-02-18 17:14:55 +01:00
|
|
|
|
/// </summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
IEnumerable<IPublishedContent> GetContentByTag(string tag, string group = null, string culture = null);
|
2015-02-18 17:14:55 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
/// Gets all documents tagged with any tag in the specified group.
|
2015-02-18 17:14:55 +01:00
|
|
|
|
/// </summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
IEnumerable<IPublishedContent> GetContentByTagGroup(string group, string culture = null);
|
2015-02-18 17:14:55 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
/// Gets all media tagged with the specified tag.
|
2015-02-18 17:14:55 +01:00
|
|
|
|
/// </summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
IEnumerable<IPublishedContent> GetMediaByTag(string tag, string group = null, string culture = null);
|
2015-02-18 17:14:55 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
/// Gets all media tagged with any tag in the specified group.
|
2015-02-18 17:14:55 +01:00
|
|
|
|
/// </summary>
|
2018-12-06 12:41:38 +11:00
|
|
|
|
IEnumerable<IPublishedContent> GetMediaByTagGroup(string group, string culture = null);
|
2015-02-18 17:14:55 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
/// Gets all tags.
|
2015-02-18 17:14:55 +01:00
|
|
|
|
/// </summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
IEnumerable<TagModel> GetAllTags(string group = null, string culture = null);
|
2015-02-18 17:14:55 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
/// Gets all document tags.
|
2015-02-18 17:14:55 +01:00
|
|
|
|
/// </summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
IEnumerable<TagModel> GetAllContentTags(string group = null, string culture = null);
|
2015-02-18 17:14:55 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
/// Gets all media tags.
|
2015-02-18 17:14:55 +01:00
|
|
|
|
/// </summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
IEnumerable<TagModel> GetAllMediaTags(string group = null, string culture = null);
|
2015-02-18 17:14:55 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
/// Gets all member tags.
|
2015-02-18 17:14:55 +01:00
|
|
|
|
/// </summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
IEnumerable<TagModel> GetAllMemberTags(string group = null, string culture = null);
|
2015-02-18 17:14:55 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
/// Gets all tags attached to an entity via a property.
|
2015-02-18 17:14:55 +01:00
|
|
|
|
/// </summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
IEnumerable<TagModel> GetTagsForProperty(int contentId, string propertyTypeAlias, string group = null, string culture = null);
|
2015-02-18 17:14:55 +01:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
/// Gets all tags attached to an entity.
|
2015-02-18 17:14:55 +01:00
|
|
|
|
/// </summary>
|
2018-11-20 13:24:06 +01:00
|
|
|
|
IEnumerable<TagModel> GetTagsForEntity(int contentId, string group = null, string culture = null);
|
2015-02-18 17:14:55 +01:00
|
|
|
|
}
|
2017-07-20 11:21:28 +02:00
|
|
|
|
}
|