Class DeployFileCommand
- 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.AbstractDeployContentCommand
-
- org.jboss.as.cli.impl.aesh.cmd.deployment.DeployFileCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>,LegacyBridge,BatchCompliantCommand,DMRCommand
public class DeployFileCommand extends AbstractDeployContentCommand
Deploy a file. 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/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 FilefileStringnamebooleanunmanaged-
Fields inherited from class org.jboss.as.cli.impl.aesh.cmd.deployment.AbstractDeployContentCommand
disabled, enabled, replace, runtimeName
-
Fields inherited from class org.jboss.as.cli.impl.aesh.cmd.deployment.AbstractDeployCommand
allServerGroups, headers, serverGroups
-
-
Constructor Summary
Constructors Constructor Description DeployFileCommand(CommandContext ctx, String replaceName)Deprecated.DeployFileCommand(CommandContext ctx, Permissions permissions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddContent(CommandContext context, org.jboss.dmr.ModelNode content)protected voidcheckArgument()protected org.jboss.dmr.ModelNodeexecute(CommandContext ctx, org.jboss.dmr.ModelNode request)protected StringgetCommandName()protected StringgetName()protected List<String>getServerGroups(CommandContext ctx)-
Methods inherited from class org.jboss.as.cli.impl.aesh.cmd.deployment.AbstractDeployContentCommand
buildDeploymentRequest, buildRequest, createExtraStep, execute, execute
-
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
-
-
-
-
Constructor Detail
-
DeployFileCommand
public DeployFileCommand(CommandContext ctx, Permissions permissions)
-
DeployFileCommand
@Deprecated public DeployFileCommand(CommandContext ctx, String replaceName)
Deprecated.
-
-
Method Detail
-
checkArgument
protected void checkArgument() throws org.aesh.command.CommandException- Specified by:
checkArgumentin classAbstractDeployContentCommand- Throws:
org.aesh.command.CommandException
-
getName
protected String getName()
- Specified by:
getNamein classAbstractDeployContentCommand
-
addContent
protected void addContent(CommandContext context, org.jboss.dmr.ModelNode content) throws OperationFormatException
- Specified by:
addContentin classAbstractDeployContentCommand- Throws:
OperationFormatException
-
getServerGroups
protected List<String> getServerGroups(CommandContext ctx) throws CommandFormatException
- Overrides:
getServerGroupsin classAbstractDeployContentCommand- Throws:
CommandFormatException
-
getCommandName
protected String getCommandName()
- Specified by:
getCommandNamein classAbstractDeployContentCommand
-
execute
protected org.jboss.dmr.ModelNode execute(CommandContext ctx, org.jboss.dmr.ModelNode request) throws IOException
- Specified by:
executein classAbstractDeployContentCommand- Throws:
IOException
-
-