Skip to content

Commit

Permalink
Merge branch 'development' into bug/DNN-10200
Browse files Browse the repository at this point in the history
  • Loading branch information
amarjit-dhunna authored Sep 1, 2017
2 parents 3fbf772 + 8d97494 commit 482c35c
Show file tree
Hide file tree
Showing 66 changed files with 31,892 additions and 25,565 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
using System.Net;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Caching;
using System.Web.Http;

Expand Down Expand Up @@ -308,7 +309,7 @@ internal IEnumerable<GroupedDetailView> GetGroupedDetailViews(SearchQuery search
{
var detail = new DetailedView
{
Title = result.Title,
Title = result.Title.Contains("<") ? HttpUtility.HtmlEncode(result.Title) : result.Title,
DocumentTypeName = InternalSearchController.Instance.GetSearchDocumentTypeDisplayName(result),
DocumentUrl = result.Url,
Snippet = result.Snippet,
Expand Down Expand Up @@ -355,7 +356,7 @@ internal List<GroupedBasicView> GetGroupedBasicViews(SearchQuery query, SearchCo
if (!groupedResult.Results.Any(r => string.Equals(r.DocumentUrl, preview.DocumentUrl)))
groupedResult.Results.Add(new BasicView
{
Title = preview.Title,
Title = preview.Title.Contains("<") ? HttpUtility.HtmlEncode(preview.Title) : preview.Title,
Snippet = preview.Snippet,
DocumentUrl = preview.DocumentUrl,
Attributes = preview.Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public class AttributeBasedViewStateSerializer
{
private const BindingFlags MemberBindingFlags = BindingFlags.Instance | BindingFlags.Public;
Expand Down
1 change: 1 addition & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/HttpHandlerPresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class HttpHandlerPresenter<TView> : Presenter<TView> where TView : class, IHttpHandlerView
{
protected HttpHandlerPresenter(TView view) : base(view)
Expand Down
4 changes: 2 additions & 2 deletions DNN Platform/DotNetNuke.Web/Mvp/HttpHandlerView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion
using System;
using System.Web;

using System;
using WebFormsMvp.Web;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class HttpHandlerView : MvpHttpHandler, IHttpHandlerView
{
}
Expand Down
3 changes: 3 additions & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/IHttpHandlerView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion

using System;
using WebFormsMvp;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public interface IHttpHandlerView : IView
{
}
Expand Down
3 changes: 2 additions & 1 deletion DNN Platform/DotNetNuke.Web/Mvp/IModuleView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
#endregion
#region Usings

using WebFormsMvp;
using System;

#endregion

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public interface IModuleView : IModuleViewBase
{
}
Expand Down
1 change: 1 addition & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/IModuleViewBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public interface IModuleViewBase : IView
{
bool AutoDataBind { get; set; }
Expand Down
2 changes: 2 additions & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/IModuleViewOfT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@
#endregion
#region Usings

using System;
using WebFormsMvp;

#endregion

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public interface IModuleView<TModel> : IModuleViewBase, IView<TModel> where TModel : class, new()
{
}
Expand Down
1 change: 1 addition & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/ISettingsView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public interface ISettingsView : IModuleViewBase
{
event EventHandler OnLoadSettings;
Expand Down
3 changes: 2 additions & 1 deletion DNN Platform/DotNetNuke.Web/Mvp/ISettingsViewOfT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion
using System;

using System;
using WebFormsMvp;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public interface ISettingsView<TModel> : IModuleViewBase, IView<TModel> where TModel : class, new()
{
event EventHandler OnLoadSettings;
Expand Down
4 changes: 3 additions & 1 deletion DNN Platform/DotNetNuke.Web/Mvp/IWebServiceView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion
using WebFormsMvp;

using System;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public interface IWebServiceView : IWebServiceViewBase
{
}
Expand Down
3 changes: 3 additions & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/IWebServiceViewBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion

using System;
using WebFormsMvp;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public interface IWebServiceViewBase : IView
{
}
Expand Down
3 changes: 3 additions & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/IWebServiceViewOfT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion

using System;
using WebFormsMvp;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public interface IWebServiceView<TModel> : IWebServiceViewBase, IView<TModel> where TModel : class, new()
{
}
Expand Down
4 changes: 4 additions & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/ModulePresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion

using System;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class ModulePresenter<TView> : ModulePresenterBase<TView> where TView : class, IModuleView
{
#region Constructors
Expand Down
2 changes: 1 addition & 1 deletion DNN Platform/DotNetNuke.Web/Mvp/ModulePresenterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

using WebFormsMvp;


#endregion

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class ModulePresenterBase<TView> : Presenter<TView> where TView : class, IModuleViewBase
{
#region Constructors
Expand Down
4 changes: 4 additions & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/ModulePresenterOfT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion

using System;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class ModulePresenter<TView, TModel> : ModulePresenterBase<TView> where TView : class, IModuleView<TModel> where TModel : class, new()
{
protected ModulePresenter(TView view) : base(view)
Expand Down
2 changes: 2 additions & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/ModuleSettingsPresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion

using System;
using System.Collections.Generic;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public class ModuleSettingsPresenterBase<TView> : ModulePresenterBase<TView> where TView : class, ISettingsView
{
#region Constructors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class ModuleSettingsPresenter<TView, TModel> : ModulePresenterBase<TView>
where TView : class, ISettingsView<TModel>
where TModel : SettingsModel, new()
Expand Down
4 changes: 4 additions & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/ModuleView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion

using System;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class ModuleView : ModuleViewBase
{
}
Expand Down
1 change: 1 addition & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/ModuleViewBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class ModuleViewBase : ModuleUserControlBase, IModuleViewBase
{
#region Constructors
Expand Down
1 change: 1 addition & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/ModuleViewOfT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class ModuleView<TModel> : ModuleViewBase, IView<TModel> where TModel : class, new()
{
private TModel _model;
Expand Down
2 changes: 2 additions & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/ProfileModuleViewBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion

using System;
using System.Globalization;

Expand All @@ -30,6 +31,7 @@

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class ProfileModuleViewBase<TModel> : ModuleView<TModel>, IProfileModule where TModel : class, new()
{
#region IProfileModule Members
Expand Down
2 changes: 2 additions & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/SettingsModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@

#endregion

using System;
using System.Collections.Generic;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public class SettingsModel
{
public Dictionary<string, string> ModuleSettings { get; set; }
Expand Down
1 change: 1 addition & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/SettingsView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class SettingsView<TModel> : SettingsViewBase, ISettingsView<TModel> where TModel : SettingsModel, new()
{
private TModel _model;
Expand Down
1 change: 1 addition & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/SettingsViewBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public class SettingsViewBase : ModuleViewBase, ISettingsView, ISettingsControl
{
#region ISettingsControl Members
Expand Down
1 change: 1 addition & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/ViewStateAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class ViewStateAttribute : Attribute
{
Expand Down
3 changes: 2 additions & 1 deletion DNN Platform/DotNetNuke.Web/Mvp/WebServicePresenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion
using System;

using System;
using WebFormsMvp;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class WebServicePresenter<TView> : Presenter<TView> where TView : class, IWebServiceView
{
protected WebServicePresenter(TView view) : base(view)
Expand Down
4 changes: 4 additions & 0 deletions DNN Platform/DotNetNuke.Web/Mvp/WebServiceView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion

using System;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class WebServiceView : WebServiceViewBase
{
}
Expand Down
4 changes: 2 additions & 2 deletions DNN Platform/DotNetNuke.Web/Mvp/WebServiceViewBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion
using System;
using System.Web;

using System;
using WebFormsMvp.Web;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class WebServiceViewBase : MvpWebService, IWebServiceViewBase
{
}
Expand Down
6 changes: 2 additions & 4 deletions DNN Platform/DotNetNuke.Web/Mvp/WebServiceViewOfT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@
// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System;
using WebFormsMvp;

namespace DotNetNuke.Web.Mvp
{
[Obsolete("Deprecated in DNN 9.2.0. Replace WebFormsMvp and DotNetNuke.Web.Mvp with MVC or SPA patterns instead")]
public abstract class WebServiceViewOfT<TModel> : ModuleViewBase, IView<TModel> where TModel : class, new()
{
private TModel _model;
Expand Down
Loading

0 comments on commit 482c35c

Please sign in to comment.