C# 클래스 N2.Edit.Workflow.CommandFactory

상속: ICommandFactory
파일 보기 프로젝트 열기: bherila/n2cms 1 사용 예제들

공개 메소드들

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

보호된 메소드들

메소드 설명
Compose ( string title ) : CompositeCommand

비공개 메소드들

메소드 설명
Authorize ( Permission permission ) : CommandBase
MakeVersionIfPublished ( ContentItem item ) : CommandBase
ReturnTo ( string url ) : CommandBase

메소드 상세

CommandFactory() 공개 메소드

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
리턴 System

Compose() 보호된 메소드

protected Compose ( string title ) : CompositeCommand
title string
리턴 CompositeCommand

GetPublishCommand() 공개 메소드

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.
리턴 CompositeCommand

GetSaveCommand() 공개 메소드

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.
리턴 CompositeCommand