Correcting some namespaces preparing for admin story

Orchard.Mvc.Filters contains base implementations, not specific functionality
Orchard.Mvc.AntiForgery and Orchard.UI.Admin contain specific functionality

--HG--
branch : dev
This commit is contained in:
Louis DeJardin
2010-02-25 23:45:37 -08:00
parent 691908fb48
commit 09be861aaf
6 changed files with 10 additions and 11 deletions

View File

@@ -8,7 +8,7 @@ using Orchard.Core.Navigation.Models;
using Orchard.Core.Navigation.Services;
using Orchard.Core.Navigation.ViewModels;
using Orchard.Localization;
using Orchard.Mvc.Attributes;
using Orchard.Mvc.AntiForgery;
using Orchard.UI.Navigation;
using Orchard.Utility;
using MenuItem=Orchard.Core.Navigation.Models.MenuItem;

View File

@@ -15,7 +15,6 @@ using Orchard.UI.Notify;
namespace Orchard.Blogs.Controllers {
[UsedImplicitly]
public class BlogPostDriver : ContentItemDriver<BlogPost> {
private readonly IBlogService _blogService;
private readonly IBlogPostService _blogPostService;
private readonly IRoutableService _routableService;
private readonly IOrchardServices _orchardServices;
@@ -26,7 +25,6 @@ namespace Orchard.Blogs.Controllers {
};
public BlogPostDriver(IBlogService blogService, IBlogPostService blogPostService, IRoutableService routableService, IOrchardServices orchardServices) {
_blogService = blogService;
_blogPostService = blogPostService;
_routableService = routableService;
_orchardServices = orchardServices;

View File

@@ -2,11 +2,11 @@ using System.Collections.Specialized;
using System.Web;
using System.Web.Mvc;
using JetBrains.Annotations;
using Orchard.Mvc.Attributes;
using Orchard.Mvc.Filters;
using Orchard.Security;
using Orchard.Settings;
namespace Orchard.Mvc.Filters {
namespace Orchard.Mvc.AntiForgery {
[UsedImplicitly]
public class AntiForgeryAuthorizationFilter : FilterProvider, IAuthorizationFilter {
private readonly ISiteService _siteService;
@@ -113,4 +113,4 @@ namespace Orchard.Mvc.Filters {
#endregion
}
}
}

View File

@@ -1,7 +1,7 @@
using System;
using System.Web.Mvc;
namespace Orchard.Mvc.Attributes {
namespace Orchard.Mvc.AntiForgery {
[AttributeUsage(AttributeTargets.Method)]
public class ValidateAntiForgeryTokenOrchardAttribute : FilterAttribute {
}

View File

@@ -152,7 +152,7 @@
<Compile Include="Extensions\ExtensionFolders.cs" />
<Compile Include="Extensions\Loaders\AreaExtensionLoader.cs" />
<Compile Include="Extensions\UriExtensions.cs" />
<Compile Include="Mvc\Attributes\ValidateAntiForgeryTokenOrchardAttribute.cs" />
<Compile Include="Mvc\AntiForgery\ValidateAntiForgeryTokenOrchardAttribute.cs" />
<Compile Include="OrchardException.cs" />
<Compile Include="Security\IAuthorizationServiceEvents.cs" />
<Compile Include="Security\StandardPermissions.cs" />
@@ -225,8 +225,8 @@
<Compile Include="Extensions\ExtensionDescriptor.cs" />
<Compile Include="Extensions\ExtensionEntry.cs" />
<Compile Include="IOrchardServices.cs" />
<Compile Include="Mvc\Filters\AdminFilter.cs" />
<Compile Include="Mvc\Filters\AntiForgeryAuthorizationFilter.cs" />
<Compile Include="UI\Admin\AdminFilter.cs" />
<Compile Include="Mvc\AntiForgery\AntiForgeryAuthorizationFilter.cs" />
<Compile Include="Mvc\Html\FileRegistrationContext.cs" />
<Compile Include="Mvc\Html\MvcFormAntiForgeryPost.cs" />
<Compile Include="Mvc\Html\SiteServiceExtensions.cs" />

View File

@@ -1,10 +1,11 @@
using System.Globalization;
using System.IO;
using System.Web.Mvc;
using Orchard.Mvc.Filters;
using Orchard.Security;
using Orchard.Settings;
namespace Orchard.Mvc.Filters {
namespace Orchard.UI.Admin {
public class AdminFilter : FilterProvider, IActionFilter
{
private readonly IAuthorizer _authorizer;