public abstract class AbstractControlledCommand extends Object implements org.aesh.command.Command<CLICommandInvocation>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractControlledCommand(CommandContext ctx,
Function<CommandContext,AccessRequirement> acBuilder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRequiredPath(OperationRequestAddress requiredPath)
Adds a node path which is required to exist before the command can be
used.
|
protected void |
addRequiredPath(String requiredPath) |
AccessRequirement |
getAccessRequirement() |
CommandContext |
getCommandContext() |
OperationRequestAddress |
getRequiredAddress() |
String |
getRequiredType() |
boolean |
isDependsOnProfile() |
protected AbstractControlledCommand(CommandContext ctx, Function<CommandContext,AccessRequirement> acBuilder)
public CommandContext getCommandContext()
protected final void addRequiredPath(String requiredPath)
protected void addRequiredPath(OperationRequestAddress requiredPath)
requiredPath - node path which is required to exist before the
command can be used.public OperationRequestAddress getRequiredAddress()
public boolean isDependsOnProfile()
public AccessRequirement getAccessRequirement()
public String getRequiredType()
Copyright © 2018 JBoss by Red Hat. All rights reserved.