U4-8447 - prepare for NuCache (work-in-progress)
This commit is contained in:
35
src/Umbraco.Web/PublishedCache/IPublishedMemberCache.cs
Normal file
35
src/Umbraco.Web/PublishedCache/IPublishedMemberCache.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.Xml.XPath;
|
||||
using Umbraco.Core.Models;
|
||||
using Umbraco.Core.Models.PublishedContent;
|
||||
|
||||
namespace Umbraco.Web.PublishedCache
|
||||
{
|
||||
public interface IPublishedMemberCache : IXPathNavigable
|
||||
{
|
||||
IPublishedContent GetByProviderKey(object key);
|
||||
IPublishedContent GetById(int memberId);
|
||||
IPublishedContent GetByUsername(string username);
|
||||
IPublishedContent GetByEmail(string email);
|
||||
IPublishedContent GetByMember(IMember member);
|
||||
|
||||
XPathNavigator CreateNavigator(bool preview);
|
||||
|
||||
// if the node does not exist, return null
|
||||
XPathNavigator CreateNodeNavigator(int id, bool preview);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a content type identified by its unique identifier.
|
||||
/// </summary>
|
||||
/// <param name="id">The content type unique identifier.</param>
|
||||
/// <returns>The content type, or null.</returns>
|
||||
PublishedContentType GetContentType(int id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a content type identified by its alias.
|
||||
/// </summary>
|
||||
/// <param name="alias">The content type alias.</param>
|
||||
/// <returns>The content type, or null.</returns>
|
||||
/// <remarks>The alias is case-insensitive.</remarks>
|
||||
PublishedContentType GetContentType(string alias);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user