com.ibm.websphere.management.cmdframework.provider

Class SimpleAdminCommand

  1. java.lang.Object
  2. extended byorg.eclipse.emf.common.command.AbstractCommand
  3. extended bycom.ibm.websphere.management.cmdframework.provider.AbstractAdminCommand
  4. extended bycom.ibm.websphere.management.cmdframework.provider.SimpleAdminCommand
All implemented interfaces:
AdminCommand, org.eclipse.emf.common.command.Command

  1. public class SimpleAdminCommand
  2. 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

Modifier and Type Field and Description
  1. protected
  2. 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

Constructor and Description
SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commanddata.CommandData commandData)
SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commandmetadata.CommandMetadata metadata)

Method Summary

Modifier and Type Method and Description
  1. void
execute()
  1. void
execute(CommandHistory cmdHistory)
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

  1. protected SimpleCommandProvider cmdProvider

Constructor Detail

SimpleAdminCommand

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

SimpleAdminCommand

  1. public SimpleAdminCommand(com.ibm.websphere.management.cmdframework.commanddata.CommandData commandData)
  2. throws CommandNotFoundException
  3. CommandLoadException
Throws:

Method Detail

execute

  1. 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

  1. 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:
Parameters:
cmdHistory - an implementation of command history