2009-12-22 01:55:34 +00:00
|
|
|
using JetBrains.Annotations;
|
|
|
|
using Orchard.Blogs.Controllers;
|
2009-11-24 02:03:13 +00:00
|
|
|
using Orchard.Core.Common.Models;
|
2009-11-20 23:31:49 +00:00
|
|
|
using Orchard.Data;
|
2009-12-21 20:29:53 +00:00
|
|
|
using Orchard.ContentManagement.Handlers;
|
2009-11-20 23:31:49 +00:00
|
|
|
|
|
|
|
namespace Orchard.Blogs.Models {
|
2009-12-22 01:55:34 +00:00
|
|
|
[UsedImplicitly]
|
2009-12-09 22:01:58 +00:00
|
|
|
public class BlogHandler : ContentHandler {
|
|
|
|
public BlogHandler(IRepository<BlogRecord> repository) {
|
2009-12-22 01:55:34 +00:00
|
|
|
Filters.Add(new ActivatingFilter<Blog>(BlogDriver.ContentType.Name));
|
|
|
|
Filters.Add(new ActivatingFilter<CommonAspect>(BlogDriver.ContentType.Name));
|
|
|
|
Filters.Add(new ActivatingFilter<RoutableAspect>(BlogDriver.ContentType.Name));
|
2009-11-21 09:47:18 +00:00
|
|
|
Filters.Add(new StorageFilter<BlogRecord>(repository));
|
2009-11-20 23:31:49 +00:00
|
|
|
}
|
|
|
|
}
|
2009-12-21 22:43:10 +00:00
|
|
|
}
|