Class AbstractControlledCommand
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.security.AbstractControlledCommand
-
- All Implemented Interfaces:
org.aesh.command.Command<CLICommandInvocation>
- Direct Known Subclasses:
CommandWithPermissions
public abstract class AbstractControlledCommand extends Object implements org.aesh.command.Command<CLICommandInvocation>
An abstract command that depends on the presence of a path and permissions.- Author:
- jdenise@redhat.com
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractControlledCommand(CommandContext ctx, Function<CommandContext,AccessRequirement> acBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddRequiredPath(String requiredPath)protected voidaddRequiredPath(OperationRequestAddress requiredPath)Adds a node path which is required to exist before the command can be used.AccessRequirementgetAccessRequirement()CommandContextgetCommandContext()OperationRequestAddressgetRequiredAddress()StringgetRequiredType()booleanisDependsOnProfile()
-
-
-
Constructor Detail
-
AbstractControlledCommand
protected AbstractControlledCommand(CommandContext ctx, Function<CommandContext,AccessRequirement> acBuilder)
-
-
Method Detail
-
getCommandContext
public CommandContext getCommandContext()
-
addRequiredPath
protected final void addRequiredPath(String requiredPath)
-
addRequiredPath
protected void addRequiredPath(OperationRequestAddress requiredPath)
Adds a node path which is required to exist before the command can be used.- Parameters:
requiredPath- node path which is required to exist before the command can be used.
-
getRequiredAddress
public OperationRequestAddress getRequiredAddress()
-
isDependsOnProfile
public boolean isDependsOnProfile()
-
getAccessRequirement
public AccessRequirement getAccessRequirement()
-
getRequiredType
public String getRequiredType()
-
-