2010-01-07 01:06:17 +00:00
|
|
|
|
using JetBrains.Annotations;
|
2010-01-10 11:18:28 +00:00
|
|
|
|
using Orchard.ContentManagement;
|
|
|
|
|
using Orchard.Core.Common.Records;
|
2010-01-07 01:06:17 +00:00
|
|
|
|
using Orchard.Pages.Controllers;
|
|
|
|
|
using Orchard.Core.Common.Models;
|
|
|
|
|
using Orchard.Data;
|
|
|
|
|
using Orchard.ContentManagement.Handlers;
|
|
|
|
|
|
|
|
|
|
namespace Orchard.Pages.Models {
|
|
|
|
|
[UsedImplicitly]
|
|
|
|
|
public class PageHandler : ContentHandler {
|
|
|
|
|
public PageHandler(IRepository<PageRecord> repository) {
|
|
|
|
|
Filters.Add(new ActivatingFilter<Page>(PageDriver.ContentType.Name));
|
|
|
|
|
Filters.Add(new ActivatingFilter<CommonAspect>(PageDriver.ContentType.Name));
|
2010-01-10 11:18:28 +00:00
|
|
|
|
Filters.Add(new ActivatingFilter<ContentPart<CommonVersionRecord>>(PageDriver.ContentType.Name));
|
2010-01-07 01:06:17 +00:00
|
|
|
|
Filters.Add(new ActivatingFilter<RoutableAspect>(PageDriver.ContentType.Name));
|
|
|
|
|
Filters.Add(new ActivatingFilter<BodyAspect>(PageDriver.ContentType.Name));
|
|
|
|
|
Filters.Add(new StorageFilter<PageRecord>(repository));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|