C# Class N2.Edit.Workflow.CommandFactory

Inheritance: ICommandFactory
Afficher le fichier Open project: bherila/n2cms Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Compose ( string title ) : CompositeCommand

Private Methods

Méthode Description
Authorize ( Permission permission ) : CommandBase
MakeVersionIfPublished ( ContentItem item ) : CommandBase
ReturnTo ( string url ) : CommandBase

Method Details

CommandFactory() public méthode

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
Résultat System

Compose() protected méthode

protected Compose ( string title ) : CompositeCommand
title string
Résultat CompositeCommand

GetPublishCommand() public méthode

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.
Résultat CompositeCommand

GetSaveCommand() public méthode

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.
Résultat CompositeCommand