C# Class Rebel.Cms.Web.Editors.Extenders.MoveCopyController

Used to move & copy content
Inheritance: ContentControllerExtenderBase
Mostrar archivo Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
MoveCopyController ( IBackOfficeRequestContext backOfficeRequestContext ) : System

Constructor

Protected Methods

Method Description
Initialize ( global requestContext ) : void

This checks for the parent controller type and validates it, then sets the appropriate properties

MoveCopyView ( HiveId id, MoveModel model ) : System.Web.Mvc.ActionResult

Returns the ViewResult for use in the Move/Copy dialogs

ProcessMoveCopy ( HiveId selectedItemId, HiveId toId, Func performSave ) : System.Web.Mvc.JsonResult

Helper method to retreive the from/to entities and validate if the move/copy is allowed

Private Methods

Method Description
Copy ( HiveId id ) : System.Web.Mvc.ActionResult
CopyForm ( CopyModel model ) : System.Web.Mvc.JsonResult
Move ( HiveId id ) : System.Web.Mvc.ActionResult
MoveForm ( MoveModel model ) : System.Web.Mvc.JsonResult

Method Details

Initialize() protected method

This checks for the parent controller type and validates it, then sets the appropriate properties
protected Initialize ( global requestContext ) : void
requestContext global
return void

MoveCopyController() public method

Constructor
public MoveCopyController ( IBackOfficeRequestContext backOfficeRequestContext ) : System
backOfficeRequestContext IBackOfficeRequestContext
return System

MoveCopyView() protected method

Returns the ViewResult for use in the Move/Copy dialogs
protected MoveCopyView ( HiveId id, MoveModel model ) : System.Web.Mvc.ActionResult
id HiveId
model MoveModel
return System.Web.Mvc.ActionResult

ProcessMoveCopy() protected method

Helper method to retreive the from/to entities and validate if the move/copy is allowed
protected ProcessMoveCopy ( HiveId selectedItemId, HiveId toId, Func performSave ) : System.Web.Mvc.JsonResult
selectedItemId HiveId
toId HiveId
performSave Func
return System.Web.Mvc.JsonResult