public class CRaSH
extends java.lang.Object
| Constructor and Description |
|---|
CRaSH(PluginContext context)
Create a new CRaSH.
|
| Modifier and Type | Method and Description |
|---|---|
CRaSHSession |
createSession(java.security.Principal user) |
ShellCommand |
getCommand(java.lang.String name)
Attempt to obtain a command instance.
|
java.lang.String |
getCommandDescription(java.lang.String name)
Attempt to obtain a command description.
|
java.lang.Iterable<java.lang.String> |
getCommandNames() |
PluginContext |
getContext()
Returns the plugin context.
|
CommandResolution |
resolveCommand(java.lang.String name)
Attempt to obtain a command instance.
|
public CRaSH(PluginContext context) throws java.lang.NullPointerException
context - the plugin contextjava.lang.NullPointerException - if the context argument is nullpublic CRaSHSession createSession(java.security.Principal user)
public PluginContext getContext()
public java.lang.String getCommandDescription(java.lang.String name)
throws CommandCreationException,
java.lang.NullPointerException
name - the command nameCommandCreationException - if an error occured preventing the command creationjava.lang.NullPointerException - if the name argument is nullpublic ShellCommand getCommand(java.lang.String name) throws CommandCreationException, java.lang.NullPointerException
name - the command nameCommandCreationException - if an error occured preventing the command creationjava.lang.NullPointerException - if the name argument is nullpublic CommandResolution resolveCommand(java.lang.String name) throws CommandCreationException, java.lang.NullPointerException
name - the command nameCommandCreationException - if an error occured preventing the command creationjava.lang.NullPointerException - if the name argument is nullpublic java.lang.Iterable<java.lang.String> getCommandNames()
Copyright © 2014 eXo Platform SAS. All Rights Reserved.