IBM WebSphere Application ServerTM
Release 8

com.ibm.websphere.management.cmdframework.provider
Class SimpleAdminCommand

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
          extended by com.ibm.websphere.management.cmdframework.provider.SimpleAdminCommand
All Implemented Interfaces:
AdminCommand, org.eclipse.emf.common.command.Command

public class SimpleAdminCommand
extends AbstractAdminCommand

A simple implementation of AdminCommand. This class delegates the command execution logic to an implementation of SimpleCommandProvider.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
AbstractAdminCommand.CmdNotificationListener
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.AbstractCommand.NonDirtying
 
Field Summary
protected  SimpleCommandProvider cmdProvider
           
 
Fields inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
ASYNC_CUSTOM_TAG, asyncCmdSession, cmdMgrType, cnh, DYNAMIC_CUSTOM_TAG, listSetParamsTable, PRIVATE_CUSTOM_TAG
 
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
 
Constructor Summary
SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commanddata.CommandData commandData)
           
SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commandmetadata.CommandMetadata metadata)
           
 
Method Summary
 void execute()
          Defines the execution logic of command.
 void execute(CommandHistory cmdHistory)
          Executes the command and puts the command data into the command history.
 
Methods inherited from class com.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
cleanupUploadedFiles, createParamEObject, createParameterMetadata, generateScript, getChoices, getCmdHandler, getCmdMgrType, getCommandData, getCommandMetadata, getCommandMetadata, getCommandResult, getCommandSession, getConfigService, getConfigSession, getLocale, getName, getOrigParameterValue, getParameter, getParameter, getParameterMetadata, getResult, getTargetObject, getTargetObjectChoices, getUserData, initCommandData, initializeParameter, initializeParameter, isAsyncCommand, isDynamicStepCommand, isLocalMode, isParamReadonly, isPrivateParameter, isTable, listAllParameterName, listParameterName, listSetParams, listSetParams, redo, resetCommandData, resetCommandMetadata, save, sendNotification, setCmdHandler, setCmdMgrType, setCommandMetadata, setCommandResult, setCommandSession, setConfigSession, setListSetParamsTable, setLocale, setOrigParameterValue, setParameter, setParameter, setTargetObject, setupListener, validate
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
canExecute, canUndo, chain, dispose, getAffectedObjects, getDescription, getLabel, prepare, setDescription, setLabel, toString, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.common.command.Command
canExecute, canUndo, chain, dispose, getAffectedObjects, getDescription, getLabel, undo
 

Field Detail

cmdProvider

protected SimpleCommandProvider cmdProvider
Constructor Detail

SimpleAdminCommand

public SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commandmetadata.CommandMetadata metadata)
                   throws CommandNotFoundException
Throws:
CommandNotFoundException

SimpleAdminCommand

public SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commanddata.CommandData commandData)
                   throws CommandNotFoundException,
                          CommandLoadException
Throws:
CommandNotFoundException
CommandLoadException
Method Detail

execute

public void execute()
Description copied from class: AbstractAdminCommand
Defines the execution logic of command. Any admin command must at least implement this method.

Specified by:
execute in interface org.eclipse.emf.common.command.Command
Specified by:
execute in class AbstractAdminCommand

execute

public void execute(CommandHistory cmdHistory)
Description copied from interface: AdminCommand
Executes the command and puts the command data into the command history.

Specified by:
execute in interface AdminCommand
Overrides:
execute in class AbstractAdminCommand
Parameters:
cmdHistory - an implementation of command history

IBM WebSphere Application ServerTM
Release 8