C# Class N2.Edit.Workflow.CommandFactory

Inheritance: ICommandFactory
Mostra file Open project: bherila/n2cms Class Usage Examples

Public Methods

Method Description
CommandFactory ( IPersister persister, ISecurityManager security, IVersionManager versionMaker, IEditUrlManager editUrlManager, IContentAdapterProvider adapters, N2.Edit.Workflow.StateChanger changer ) : System
GetPublishCommand ( N2.Edit.Workflow.CommandContext context ) : CompositeCommand

Gets the command used to publish an item.

GetSaveCommand ( N2.Edit.Workflow.CommandContext context ) : CompositeCommand

Gets the command to save changes to an item without leaving the editing interface.

Protected Methods

Method Description
Compose ( string title ) : CompositeCommand

Private Methods

Method Description
Authorize ( Permission permission ) : CommandBase
MakeVersionIfPublished ( ContentItem item ) : CommandBase
ReturnTo ( string url ) : CommandBase

Method Details

CommandFactory() public method

public CommandFactory ( IPersister persister, ISecurityManager security, IVersionManager versionMaker, IEditUrlManager editUrlManager, IContentAdapterProvider adapters, N2.Edit.Workflow.StateChanger changer ) : System
persister IPersister
security ISecurityManager
versionMaker IVersionManager
editUrlManager IEditUrlManager
adapters IContentAdapterProvider
changer N2.Edit.Workflow.StateChanger
return System

Compose() protected method

protected Compose ( string title ) : CompositeCommand
title string
return CompositeCommand

GetPublishCommand() public method

Gets the command used to publish an item.
public GetPublishCommand ( N2.Edit.Workflow.CommandContext context ) : CompositeCommand
context N2.Edit.Workflow.CommandContext The command context used to determine which command to return.
return CompositeCommand

GetSaveCommand() public method

Gets the command to save changes to an item without leaving the editing interface.
public GetSaveCommand ( N2.Edit.Workflow.CommandContext context ) : CompositeCommand
context N2.Edit.Workflow.CommandContext The command context used to determine which command to return.
return CompositeCommand