C# 클래스 Rebel.Cms.Web.Editors.AbstractFileEditorController

상속: StandardEditorController
파일 보기 프로젝트 열기: RebelCMS/rebelcmsxu5

공개 메소드들

메소드 설명
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