2012-10-04 01:31:08 +05:00
using System.Collections.Generic ;
2012-11-07 10:16:36 +05:00
using Umbraco.Core.CodeAnnotations ;
2012-09-11 05:58:16 +07:00
using Umbraco.Core.Models ;
namespace Umbraco.Web
{
/// <summary>
/// Defines the methods for published documents
/// </summary>
2012-11-20 08:49:06 -01:00
[UmbracoExperimentalFeature("http://issues.umbraco.org/issue/U4-1153", "We need to create something like the IPublishListener interface to have proper published content storage. We'll also need to publicize the resolvers so people can set a resolver at app startup.")]
2012-11-04 08:56:50 +06:00
internal interface IPublishedStore
2012-09-11 05:58:16 +07:00
{
2012-10-02 01:35:39 +05:00
IPublishedContent GetDocumentById ( UmbracoContext umbracoContext , int nodeId ) ;
2012-10-04 01:31:08 +05:00
IEnumerable < IPublishedContent > GetRootDocuments ( UmbracoContext umbracoContext ) ;
2012-11-04 09:24:24 +06:00
//TODO: SD: We should make this happen! This will allow us to natively do a GetByDocumentType query
// on the UmbracoHelper (or an internal DataContext that it uses, etc...)
// One issue is that we need to make media work as fast as we can and need to create a ConvertFromMediaObject
// method in the DefaultPublishedMediaStore, there's already a TODO noting this but in order to do that we'll
// have to also use Examine as much as we can so we don't have to make db calls for looking up things like the
// node type alias, etc... in order to populate the created IPublishedContent object.
//IEnumerable<IPublishedContent> GetDocumentsByType(string docTypeAlias);
2012-09-11 05:58:16 +07:00
}
}