C# Класс Rebel.Cms.Web.Editors.AbstractFileEditorController

Наследование: StandardEditorController
Показать файл Открыть проект

Открытые методы

Метод Описание
Edit ( HiveId id ) : System.Web.Mvc.ActionResult

Displays the editor

Защищенные методы

Метод Описание
AbstractFileEditorController ( IBackOfficeRequestContext requestContext ) : System
CreatePaths ( Rebel.Framework.Persistence.Model.IO.File file ) : EntityPathCollection

Used by inheritors to make any changes to the model before redirecting

EnsureViewData ( CreateFileModel model ) : void

This adds some required elements to the ViewBag so that the Create view renders correctly

EnsureViewData ( FileEditorModel model, Rebel.Framework.Persistence.Model.IO.File file ) : void
OnAfterCreate ( Rebel.Framework.Persistence.Model.IO.File file ) : void

Used by inheritors to make any changes to the model before creation

OnBeforeCreate ( CreateFileModel createModel, FileEditorModel editorModel ) : void

Used by inheritors to make any changes to the model before creation

OnBeforeSave ( Rebel.Framework.Persistence.Model.IO.File file ) : void

Used by inheritors to make any changes to the file before it is persisted

OnBeforeUpdate ( FileEditorModel editorModel ) : void

Used by inheritors to make any changes to the model before creation

PopulateFileContentFromStub ( FileEditorModel model, HiveId stubFileId ) : void
PopulateFileContentFromStub ( FileEditorModel model, HiveId stubFileId, string>.IDictionary replacements ) : void

Приватные методы

Метод Описание
CreateNew ( HiveId id ) : System.Web.Mvc.ActionResult
CreateNewForm ( CreateFileModel createModel ) : System.Web.Mvc.ActionResult
Delete ( HiveId id ) : System.Web.Mvc.JsonResult
PerformSave ( FileEditorModel model ) : Rebel.Framework.Persistence.Model.IO.File

Does the save.

Save ( FileEditorModel model ) : System.Web.Mvc.JsonResult

Описание методов

AbstractFileEditorController() защищенный Метод

protected AbstractFileEditorController ( IBackOfficeRequestContext requestContext ) : System
requestContext IBackOfficeRequestContext
Результат System

CreatePaths() защищенный Метод

Used by inheritors to make any changes to the model before redirecting
protected CreatePaths ( Rebel.Framework.Persistence.Model.IO.File file ) : EntityPathCollection
file Rebel.Framework.Persistence.Model.IO.File
Результат EntityPathCollection

Edit() публичный Метод

Displays the editor
public Edit ( HiveId id ) : System.Web.Mvc.ActionResult
id HiveId
Результат System.Web.Mvc.ActionResult

EnsureViewData() защищенный Метод

This adds some required elements to the ViewBag so that the Create view renders correctly
protected EnsureViewData ( CreateFileModel model ) : void
model Rebel.Cms.Web.Model.BackOffice.Editors.CreateFileModel
Результат void

EnsureViewData() защищенный Метод

protected EnsureViewData ( FileEditorModel model, Rebel.Framework.Persistence.Model.IO.File file ) : void
model Rebel.Cms.Web.Model.BackOffice.Editors.FileEditorModel
file Rebel.Framework.Persistence.Model.IO.File
Результат void

OnAfterCreate() защищенный Метод

Used by inheritors to make any changes to the model before creation
protected OnAfterCreate ( Rebel.Framework.Persistence.Model.IO.File file ) : void
file Rebel.Framework.Persistence.Model.IO.File
Результат void

OnBeforeCreate() защищенный Метод

Used by inheritors to make any changes to the model before creation
protected OnBeforeCreate ( CreateFileModel createModel, FileEditorModel editorModel ) : void
createModel Rebel.Cms.Web.Model.BackOffice.Editors.CreateFileModel
editorModel Rebel.Cms.Web.Model.BackOffice.Editors.FileEditorModel
Результат void

OnBeforeSave() защищенный Метод

Used by inheritors to make any changes to the file before it is persisted
protected OnBeforeSave ( Rebel.Framework.Persistence.Model.IO.File file ) : void
file Rebel.Framework.Persistence.Model.IO.File
Результат void

OnBeforeUpdate() защищенный Метод

Used by inheritors to make any changes to the model before creation
protected OnBeforeUpdate ( FileEditorModel editorModel ) : void
editorModel Rebel.Cms.Web.Model.BackOffice.Editors.FileEditorModel
Результат void

PopulateFileContentFromStub() защищенный Метод

protected PopulateFileContentFromStub ( FileEditorModel model, HiveId stubFileId ) : void
model Rebel.Cms.Web.Model.BackOffice.Editors.FileEditorModel
stubFileId HiveId
Результат void

PopulateFileContentFromStub() защищенный Метод

protected PopulateFileContentFromStub ( FileEditorModel model, HiveId stubFileId, string>.IDictionary replacements ) : void
model Rebel.Cms.Web.Model.BackOffice.Editors.FileEditorModel
stubFileId HiveId
replacements string>.IDictionary
Результат void