Class EnableCommand
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.security.AbstractControlledCommand
-
- org.jboss.as.cli.impl.aesh.cmd.deployment.security.CommandWithPermissions
-
- org.jboss.as.cli.impl.aesh.cmd.deployment.AbstractDeployCommand
-
- org.jboss.as.cli.impl.aesh.cmd.deployment.EnableCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>,LegacyBridge,BatchCompliantCommand,DMRCommand
public class EnableCommand extends AbstractDeployCommand implements LegacyBridge
Enable a disabled deployment. All fields are public to be accessible from legacy commands. To be made private when legacies are removed.- Author:
- jdenise@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEnableCommand.NameCompleter-
Nested classes/interfaces inherited from class org.jboss.as.cli.impl.aesh.cmd.deployment.AbstractDeployCommand
AbstractDeployCommand.ServerGroupsCompleter
-
Nested classes/interfaces inherited from interface org.wildfly.core.cli.command.BatchCompliantCommand
BatchCompliantCommand.BatchResponseHandler
-
-
Field Summary
Fields Modifier and Type Field Description Stringname-
Fields inherited from class org.jboss.as.cli.impl.aesh.cmd.deployment.AbstractDeployCommand
allServerGroups, headers, serverGroups
-
-
Constructor Summary
Constructors Constructor Description EnableCommand(CommandContext ctx)Deprecated.EnableCommand(CommandContext ctx, Permissions permissions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.dmr.ModelNodebuildRequest(CommandContext context)org.aesh.command.CommandResultexecute(CommandContext ctx)org.aesh.command.CommandResultexecute(CLICommandInvocation commandInvocation)-
Methods inherited from class org.jboss.as.cli.impl.aesh.cmd.deployment.AbstractDeployCommand
buildBatchResponseHandler
-
Methods inherited from class org.jboss.as.cli.impl.aesh.cmd.deployment.security.CommandWithPermissions
getPermissions
-
Methods inherited from class org.jboss.as.cli.impl.aesh.cmd.security.AbstractControlledCommand
addRequiredPath, addRequiredPath, getAccessRequirement, getCommandContext, getRequiredAddress, getRequiredType, isDependsOnProfile
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.core.cli.command.DMRCommand
buildRequest
-
-
-
-
Field Detail
-
name
public String name
-
-
Constructor Detail
-
EnableCommand
public EnableCommand(CommandContext ctx, Permissions permissions)
-
EnableCommand
@Deprecated public EnableCommand(CommandContext ctx)
Deprecated.
-
-
Method Detail
-
execute
public org.aesh.command.CommandResult execute(CLICommandInvocation commandInvocation) throws org.aesh.command.CommandException, InterruptedException
- Specified by:
executein interfaceorg.aesh.command.Command<CLICommandInvocation>- Throws:
org.aesh.command.CommandExceptionInterruptedException
-
execute
public org.aesh.command.CommandResult execute(CommandContext ctx) throws org.aesh.command.CommandException
- Specified by:
executein interfaceLegacyBridge- Throws:
org.aesh.command.CommandException
-
buildRequest
public org.jboss.dmr.ModelNode buildRequest(CommandContext context) throws CommandFormatException
- Specified by:
buildRequestin interfaceDMRCommand- Throws:
CommandFormatException
-
-