C# Class Tp.Integration.Plugin.Common.PluginCommand.Embedded.EditProfileCommandBase

Inheritance: ProfileCommandBase, IPluginCommand
Mostra file Open project: TargetProcess/Target-Process-Plugins

Public Methods

Method Description
AddPluginProfile ( PluginProfileDto pluginProfile ) : void
Execute ( string args, UserDTO user = null ) : PluginCommandResponseMessage

Protected Methods

Method Description
EditProfileCommandBase ( IProfileCollection profileCollection, ITpBus bus, IPluginContext pluginContext, IPluginMetadata pluginMetadata ) : System
HandleErrors ( PluginProfileErrorCollection errors ) : void
NormalizeProfile ( PluginProfileDto dto ) : void
OnExecute ( PluginProfileDto profileProfileDto ) : PluginCommandResponseMessage
ValidateProfile ( PluginProfileDto pluginProfile, PluginProfileErrorCollection errors ) : void

Private Methods

Method Description
ValidateUniqueness ( PluginProfileDto pluginProfile, PluginProfileErrorCollection errors ) : void

Method Details

AddPluginProfile() public method

public AddPluginProfile ( PluginProfileDto pluginProfile ) : void
pluginProfile PluginProfileDto
return void

EditProfileCommandBase() protected method

protected EditProfileCommandBase ( IProfileCollection profileCollection, ITpBus bus, IPluginContext pluginContext, IPluginMetadata pluginMetadata ) : System
profileCollection IProfileCollection
bus ITpBus
pluginContext IPluginContext
pluginMetadata IPluginMetadata
return System

Execute() public method

public Execute ( string args, UserDTO user = null ) : PluginCommandResponseMessage
args string
user Tp.Integration.Common.UserDTO
return Tp.Integration.Messages.Commands.PluginCommandResponseMessage

HandleErrors() protected static method

protected static HandleErrors ( PluginProfileErrorCollection errors ) : void
errors PluginProfileErrorCollection
return void

NormalizeProfile() protected method

protected NormalizeProfile ( PluginProfileDto dto ) : void
dto PluginProfileDto
return void

OnExecute() protected abstract method

protected abstract OnExecute ( PluginProfileDto profileProfileDto ) : PluginCommandResponseMessage
profileProfileDto PluginProfileDto
return Tp.Integration.Messages.Commands.PluginCommandResponseMessage

ValidateProfile() protected static method

protected static ValidateProfile ( PluginProfileDto pluginProfile, PluginProfileErrorCollection errors ) : void
pluginProfile PluginProfileDto
errors PluginProfileErrorCollection
return void