Class 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
    • Method Detail

      • 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.
      • isDependsOnProfile

        public boolean isDependsOnProfile()
      • getRequiredType

        public String getRequiredType()