com.maverick.sshd.shell
Class Alias

java.lang.Object
  extended by com.maverick.sshd.shell.AbstractCommand
      extended by com.maverick.sshd.shell.Alias
All Implemented Interfaces:
ShellCommand, Completor

public class Alias
extends AbstractCommand


Field Summary
static Map<String,String> predefined
           
static Map<String,Map<String,String>> userlist
           
 
Fields inherited from class com.maverick.sshd.shell.AbstractCommand
exitCode
 
Fields inherited from interface com.maverick.sshd.shell.ShellCommand
STILL_ACTIVE, SUBSYSTEM_CALLBACK, SUBSYSTEM_FILESYSTEM, SUBSYSTEM_HELP, SUBSYSTEM_JVM, SUBSYSTEM_POLICY, SUBSYSTEM_SHELL, SUBSYSTEM_SSHD, SUBSYSTEM_SYSTEM, SUBSYSTEM_TEXT_EDITING
 
Constructor Summary
Alias()
           
 
Method Summary
static String getAliasCommand(String alias, String username)
           
 List<String> getCollection(int i)
           
static boolean hasAlias(String alias, String username)
           
 void run(org.apache.commons.cli.CommandLine cli, VirtualProcess process)
           
static void setPredefinedAlias(String alias, String cmd)
           
 
Methods inherited from class com.maverick.sshd.shell.AbstractCommand
complete, getCommandName, getDescription, getExitCode, getName, getOptions, getSignature, getSubsystem, isBuiltIn, setBuiltIn, setDescription, setName, setSignature, setSubsystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userlist

public static Map<String,Map<String,String>> userlist

predefined

public static Map<String,String> predefined
Constructor Detail

Alias

public Alias()
Method Detail

run

public void run(org.apache.commons.cli.CommandLine cli,
                VirtualProcess process)
         throws IOException
Throws:
IOException

setPredefinedAlias

public static void setPredefinedAlias(String alias,
                                      String cmd)

hasAlias

public static boolean hasAlias(String alias,
                               String username)

getAliasCommand

public static String getAliasCommand(String alias,
                                     String username)

getCollection

public List<String> getCollection(int i)
                           throws Exception
Overrides:
getCollection in class AbstractCommand
Throws:
Exception


Copyright © 2012. All Rights Reserved.