public override bool IsEnabled(BaseModel baseModel, Include include)
 {
   return baseModel.Collection.AnnotationsOn;
 }
 public override bool IsEnabled(BaseModel baseModel, Include include)
 {
   return new RaterAppCollection(baseModel.Collection).RatingsOn;
 }
 public override bool IsEnabled(BaseModel baseModel, Include include)
 {
   BlogAppCollection c = new BlogAppCollection(baseModel.Collection);
   return (c.AnnotationsOn && c.BloggingOn);
 }
 public override bool IsEnabled(BaseModel baseModel, Include include)
 {
   BlogAppCollection c = new BlogAppCollection(baseModel.Collection);
   return (c.AnnotationsOn && c.BloggingOn &&
     baseModel.AuthorizeService.IsAuthorized(baseModel.User, baseModel.Scope, AuthAction.Annotate));
 }
 public override bool IsEnabled(BaseModel baseModel, Include include)
 {
   return new BlogAppCollection(baseModel.Collection).BloggingOn;
 }
 public virtual bool IsEnabled(BaseModel baseModel, Include include)
 {
   return OnIsEnabled(baseModel, include);
 }
 public virtual void SetModel(BaseModel model)
 {
   model.Logger = LogService;
   model.User = User.Identity as User;
   model.AuthorizeService = AuthorizeService;
   if (model.Service == null) model.Service = AppService;
   if (model.Workspace == null) model.Workspace = Workspace;
   if (model.Collection == null) model.Collection = Collection;
   if (model.EntryId == null) model.EntryId = EntryId;
   model.Scope = Scope;
 }
 protected virtual PartialViewResult PartialView(string viewName, BaseModel model)
 {
   SetModel(model);
   if (viewName != null)
     return base.PartialView(viewName, model);
   else
     return base.PartialView(model);
 }
 protected virtual PartialViewResult PartialView(BaseModel model)
 {
   return PartialView(null, model);
 }
 protected virtual ViewResult View(string viewName, string masterViewName, BaseModel model)
 {
   SetModel(model);
   return base.View(viewName, masterViewName, model);
 }
 protected virtual ViewResult View(BaseModel model)
 {
   return View(null, model);
 }