com.softwareag.cis.plugin.ext.plugins.command
Class UninstallPlugInCommand
java.lang.Object
com.softwareag.cis.plugin.command.AbstractCommand
com.softwareag.cis.plugin.ext.plugins.command.UninstallPlugInCommand
- All Implemented Interfaces:
- Command, com.softwareag.cis.plugin.interfaces.Component
public class UninstallPlugInCommand
- extends AbstractCommand
This class provides support to uninstall a plug-in
TODO refactoring
Field Summary |
static java.lang.String |
rcs_id
|
Fields inherited from interface com.softwareag.cis.plugin.command.Command |
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 |
Method Summary |
void |
execute(CommandContext context)
Delete the Plug-in directory. |
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 centext menu command for uninstalling Plug-ins |
java.lang.String |
getName()
Obtain the name of the command |
static void |
main(java.lang.String[] args)
Command line interface for uninstall of plug-in |
void |
setUninstallationMode(boolean online)
Set the uninstall process to take place in running CentraSite Control runtime |
Methods inherited from class com.softwareag.cis.plugin.command.AbstractCommand |
execute, executeWrapped, getComparator, getId, getLocale, getSelectable, getSubCommands, isEnabled, isEnabled, isSameGroup, isToBeVisualized, isVisible, setEnabled, setLocale, setSelectable, setVisible, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
rcs_id
public static final java.lang.String rcs_id
- See Also:
- Constant Field Values
UninstallPlugInCommand
public UninstallPlugInCommand(java.util.Locale lc)
setUninstallationMode
public void setUninstallationMode(boolean online)
- Set the uninstall process to take place in running CentraSite Control runtime
- Parameters:
online
-
execute
public void execute(CommandContext context)
- Delete the Plug-in directory.
Uninstal the plug-in by Removing it from registry including all
plug-ins depending on it.
- Specified by:
execute
in interface Command
- Specified by:
execute
in class AbstractCommand
- Parameters:
context
- the command context
- Throws:
java.io.IOException
getCategory
public int getCategory()
- Returns the category constant which can be used in some comparing i.e.
to heck whether this command belongs to same group as other
- Specified by:
getCategory
in interface Command
- Specified by:
getCategory
in class AbstractCommand
- Returns:
- one of the CATEGORY_* values
getImageURL
public java.lang.String getImageURL()
- The URL address of image on centext menu command for uninstalling Plug-ins
- Specified by:
getImageURL
in interface Command
- Specified by:
getImageURL
in class AbstractCommand
- Returns:
- the path of the application's uninstallPlugIn image
getName
public java.lang.String getName()
- Obtain the name of the command
- Specified by:
getName
in interface Command
- Specified by:
getName
in class AbstractCommand
- Returns:
- the name
main
public static void main(java.lang.String[] args)
- Command line interface for uninstall of plug-in
- Parameters:
args
-
- -t target directory, i.e. directory where servlet is installed
- -p plug-in directory, i.e. sub-directory of target directory where plug-in is installed
OR -z zip archive which consists of several plug-ins. All plug-ins will be uninstalled.
- -r determines behaviour in case there are other plug-ins requiring the plug-in to be installed
- reject : reject uninstall if there are dependent plug-ins
- force : force uninstall even if there are dependent plug-ins
- -m[ode] determines plugin uninstallation process behaviour
- online : plugin is disabled for newly created sessions and marked pending for uninstall.
The complete uninstallation takes place after CentraSite Control runtime restart.
- offline : plugin will be completely removed. Requires stopped CentraSite Control runtime.
If not specified otherwise this is the default value.