From 97556de447652691b196eb1128921edc04c28da2 Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Wed, 30 Jan 2013 18:58:42 +0600 Subject: [PATCH] Changed methods created yesterday to internal so we can port to 6+ nicely. --- src/Umbraco.Web/Properties/AssemblyInfo.cs | 3 ++- src/Umbraco.Web/umbraco.presentation/content.cs | 2 +- src/Umbraco.Web/umbraco.presentation/library.cs | 4 ++-- src/umbraco.cms/businesslogic/web/Document.cs | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web/Properties/AssemblyInfo.cs b/src/Umbraco.Web/Properties/AssemblyInfo.cs index 88d65e23cc..aa897d6340 100644 --- a/src/Umbraco.Web/Properties/AssemblyInfo.cs +++ b/src/Umbraco.Web/Properties/AssemblyInfo.cs @@ -28,4 +28,5 @@ using System.Security; [assembly: System.Security.SecurityRules(System.Security.SecurityRuleSet.Level1)] [assembly: InternalsVisibleTo("Umbraco.Tests")] -[assembly: InternalsVisibleTo("umbraco.MacroEngines")] \ No newline at end of file +[assembly: InternalsVisibleTo("umbraco.MacroEngines")] +[assembly: InternalsVisibleTo("umbraco.webservices")] diff --git a/src/Umbraco.Web/umbraco.presentation/content.cs b/src/Umbraco.Web/umbraco.presentation/content.cs index 5161c14119..a8a7b60192 100644 --- a/src/Umbraco.Web/umbraco.presentation/content.cs +++ b/src/Umbraco.Web/umbraco.presentation/content.cs @@ -602,7 +602,7 @@ namespace umbraco /// This means the node gets unpublished from the website. /// /// The document - public virtual void ClearDocumentCache(Document doc) + internal void ClearDocumentCache(Document doc) { var e = new DocumentCacheEventArgs(); FireBeforeClearDocumentCache(doc, e); diff --git a/src/Umbraco.Web/umbraco.presentation/library.cs b/src/Umbraco.Web/umbraco.presentation/library.cs index 9a081380e3..dfba87492e 100644 --- a/src/Umbraco.Web/umbraco.presentation/library.cs +++ b/src/Umbraco.Web/umbraco.presentation/library.cs @@ -201,7 +201,7 @@ namespace umbraco /// marked unpublished by setting the publish property on the document object to false /// /// The Document to be unpublished - public static void UnPublishSingleNode(Document document) + internal static void UnPublishSingleNode(Document document) { if (UmbracoSettings.UseDistributedCalls) dispatcher.Remove( @@ -232,7 +232,7 @@ namespace umbraco /// which means we have to re-look up the document in the db again when we already have it, this should save on a few /// dozen sql calls when publishing. /// - public static void UpdateDocumentCache(Document doc) + internal static void UpdateDocumentCache(Document doc) { if (UmbracoSettings.UseDistributedCalls) dispatcher.Refresh( diff --git a/src/umbraco.cms/businesslogic/web/Document.cs b/src/umbraco.cms/businesslogic/web/Document.cs index 60f4b8024d..b4ebcf3ca6 100644 --- a/src/umbraco.cms/businesslogic/web/Document.cs +++ b/src/umbraco.cms/businesslogic/web/Document.cs @@ -1541,7 +1541,7 @@ where published = 1 And nodeId = @nodeId And trashed = 0", SqlHelper.CreateParam /// Returns all descendants that are published on the front-end (hava a full published path) /// /// - public IEnumerable GetPublishedDescendants() + internal IEnumerable GetPublishedDescendants() { var documents = new List(); using (var dr = SqlHelper.ExecuteReader(