C# Class Rebel.Cms.Web.Editors.AbstractFileEditorController

Inheritance: StandardEditorController
Mostrar archivo Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
Edit ( HiveId id ) : System.Web.Mvc.ActionResult

Displays the editor

Protected Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AbstractFileEditorController() protected method

protected AbstractFileEditorController ( IBackOfficeRequestContext requestContext ) : System
requestContext IBackOfficeRequestContext
return System

CreatePaths() protected method

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
return EntityPathCollection

Edit() public method

Displays the editor
public Edit ( HiveId id ) : System.Web.Mvc.ActionResult
id HiveId
return System.Web.Mvc.ActionResult

EnsureViewData() protected method

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
return void

EnsureViewData() protected method

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
return void

OnAfterCreate() protected method

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
return void

OnBeforeCreate() protected method

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
return void

OnBeforeSave() protected method

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
return void

OnBeforeUpdate() protected method

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
return void

PopulateFileContentFromStub() protected method

protected PopulateFileContentFromStub ( FileEditorModel model, HiveId stubFileId ) : void
model Rebel.Cms.Web.Model.BackOffice.Editors.FileEditorModel
stubFileId HiveId
return void

PopulateFileContentFromStub() protected method

protected PopulateFileContentFromStub ( FileEditorModel model, HiveId stubFileId, string>.IDictionary replacements ) : void
model Rebel.Cms.Web.Model.BackOffice.Editors.FileEditorModel
stubFileId HiveId
replacements string>.IDictionary
return void