WIP ... Fixes: #U4-1666, Updates documentService to not have to manually

refresh content cache (and fix the unpublishing too since that logic wasn't correct)
Adds DebuggerDisplay support to ContentBase and Entity for better debugging info.
Adds new internal publishing methods to support publishing all children or only children previously published. This also adds new support
for getting a published result back even with bulk publishing.
Updates the publish dialog with new code and to use the new API based on issue #U4-1669.
Adds UmbracoUser property to AuthenticatedUmbracoController, Adds all common properties to the abstract UmbracoController.
Changes the legacy Document to allow content cache to be automatically refreshed (based on events)
This commit is contained in:
Shannon Deminick
2013-02-09 04:05:01 +06:00
parent 4ab14484ba
commit de13f7e361
37 changed files with 880 additions and 553 deletions

View File

@@ -11,7 +11,11 @@ using Umbraco.Web.Routing;
namespace Umbraco.Web.Mvc
{
public class RenderMvcController : Controller
/// <summary>
/// A controller to render front-end requests
/// </summary>
public class RenderMvcController : UmbracoController
{
public RenderMvcController()
@@ -21,46 +25,13 @@ namespace Umbraco.Web.Mvc
private PublishedContentRequest _publishedContentRequest;
private UmbracoHelper _umbraco;
/// <summary>
/// Returns an UmbracoHelper object
/// </summary>
public UmbracoHelper Umbraco
{
get { return _umbraco ?? (_umbraco = new UmbracoHelper(UmbracoContext)); }
}
/// <summary>
/// Returns the current UmbracoContext
/// </summary>
protected UmbracoContext UmbracoContext
{
get { return PublishedContentRequest.RoutingContext.UmbracoContext; }
}
/// <summary>
/// Returns the current ApplicationContext
/// </summary>
public ApplicationContext ApplicationContext
{
get { return UmbracoContext.Application; }
}
/// <summary>
/// Returns a ServiceContext
/// </summary>
public ServiceContext Services
{
get { return ApplicationContext.Services; }
}
/// <summary>
/// Returns a DatabaseContext
/// </summary>
public DatabaseContext DatabaseContext
{
get { return ApplicationContext.DatabaseContext; }
}
/// <summary>
/// Returns the current UmbracoContext
/// </summary>
protected new UmbracoContext UmbracoContext
{
get { return PublishedContentRequest.RoutingContext.UmbracoContext; }
}
/// <summary>
/// Returns the Current published content item for rendering the content