public class InstallPlugInCommand extends AbstractCommand
Modifier and Type | Class and Description |
---|---|
static class |
InstallPlugInCommand.InvalidPlugInArchiveException
Custom Exception used in case if the target plug-in directory
is unknown or if zip entry is null
|
static class |
InstallPlugInCommand.PlugInDescriptorMerger
Utility class for merging two plug-in descriptors.
|
CATEGORY_APPLICATION_HIGH_PRIO, CATEGORY_APPLICATION_LOW_PRIO, CATEGORY_COPY, CATEGORY_DELETE, CATEGORY_DOCUMENT, CATEGORY_EDIT, CATEGORY_EXECUTE, CATEGORY_FAVORITES, CATEGORY_IMPORT_EXPORT, CATEGORY_LCM, CATEGORY_LINK, CATEGORY_MIN, CATEGORY_MISC, CATEGORY_NEW, CATEGORY_OBJECT, CATEGORY_OPEN, CATEGORY_PREFERENCES, CATEGORY_SAVE, CATEGORY_SEARCH, CATEGORY_SHOW, CATEGORY_UPDATE, CATEGORY_UPDATE_EXT, CATEGORY_VIEW, COMMAND_ACTIVATE_DEACTIVATE, COMMAND_ADD_CATEGORY, COMMAND_ADD_COPY, COMMAND_ADD_DOCUMENT, COMMAND_ADD_FOLDER, COMMAND_ADD_TO_FAVORITES, COMMAND_ADD_TO_LIST, COMMAND_ADD_TYPE, COMMAND_ADD_VERSION, COMMAND_ATTACH_WS_POLICY, COMMAND_ATTACH_WSDL, COMMAND_CHANGE_LIFEC_STATE, COMMAND_CHANGE_PROVIDING_ORG, COMMAND_CHECK_CONN, COMMAND_COMPARE, COMMAND_COPY_SHORTCUT, COMMAND_DELETE, COMMAND_DOCUMENTATION, COMMAND_DOWNLOAD, COMMAND_DOWNLOAD_BPEL, COMMAND_DOWNLOAD_WSDL, COMMAND_DOWNLOAD_XMLSCHEMA, COMMAND_EDIT_DETAILS, COMMAND_EXPORT, COMMAND_EXPORT_CONTENTS, COMMAND_EXPORT_FAVORITE, COMMAND_GENERATE_REPORT, COMMAND_IMPACT_ANALYSIS, COMMAND_IMPORT_ASSET, COMMAND_LC_CREATE_NEW_VERS, COMMAND_NOTIFY_ME, COMMAND_PERMISSIONS, COMMAND_REGISTER_AS_CONSUMER, COMMAND_REGISTER_CONS, COMMAND_REMOVE_FROM_FAVORITES, COMMAND_RENAME, COMMAND_RENAME_LIST, COMMAND_SHOW_DETAILS, COMMAND_VIRTUALIZE, rcs_id
Constructor and Description |
---|
InstallPlugInCommand(java.util.Locale lc) |
Modifier and Type | Method and Description |
---|---|
void |
execute(CommandContext context)
Execute given command in this context
If the context is not instanceof AbstractCommandContext the exception is rized which
causes error message popup.
|
int |
getCategory()
Returns the category constant which can be used in some comparing i.e.
|
java.lang.String |
getImageURL()
The URL address of image on button for installing Plug-ins
|
java.lang.String |
getName()
Get localized Install Plug-in name of the command
|
static void |
main(java.lang.String[] args)
Provide command line interface for installation of plugins.
|
static void |
streamCopy(java.io.InputStream in,
java.io.OutputStream out)
Synchronized stream copy
The method do not allow other threads to read from the input
or write to the output while copying is taking place
|
execute, executeWrapped, getComparator, getId, getLocale, getSelectable, getSubCommands, isEnabled, isEnabled, isSameGroup, isToBeVisualized, isVisible, setEnabled, setLocale, setSelectable, setVisible, toString
public java.lang.String getName()
getName
in interface Command
getName
in class AbstractCommand
public java.lang.String getImageURL()
getImageURL
in interface Command
getImageURL
in class AbstractCommand
public void execute(CommandContext context)
execute
in interface Command
execute
in class AbstractCommand
context
- public int getCategory()
getCategory
in interface Command
getCategory
in class AbstractCommand
public static void streamCopy(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception