Interface IInstallPolicy
- All Superinterfaces:
IBizPolicy
,IComponent
,IInitializable
,ISystemHandler
Business policy for installing and uninstalling deployable components.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Flag indicates that invalidation events needs to be fired during installstatic final int
Flag indicates that installed component needs to be registeredstatic final int
Flag that indicates remote deployment from Designerstatic final int
Flag indicates that Language Pack installation should not be performed. -
Method Summary
Modifier and TypeMethodDescriptionString[]
getSupportedComponentTypes
(IContext context) Returns supported component type that can be installed into the systemvoid
installBootstrapComponentsWithDependencies
(IContext context, String components) Deploys a bootstrap component with dependenciesinstallComponent
(IContext context, String componentLocation) installComponent
(IContext context, String componentLocation, boolean register) Installs a component from a given locationinstallComponent
(IContext context, String componentLocation, int flags) Installs a component from a given locationvoid
installComponents
(IContext context, String folderLocation) Installs all components from a given foldervoid
syncDeployFolder
(IContext context, boolean flushCache) Runs deploy folder syncvoid
uninstallComponent
(IContext context, IURI componentUri) void
uninstallComponent
(IContext context, IURI componentUri, boolean unregister) Uninstalled previously installed componentvoid
uninstallComponent
(IContext context, String componentLocation) void
uninstallComponent
(IContext context, String componentLocation, boolean unregister) Uninstalled previously installed componentMethods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
-
Field Details
-
INSTALL_FLAG_REMOTE_DEPLOYMENT
static final int INSTALL_FLAG_REMOTE_DEPLOYMENTFlag that indicates remote deployment from Designer- See Also:
-
INSTALL_FLAG_REGISTER_COMPONENT
static final int INSTALL_FLAG_REGISTER_COMPONENTFlag indicates that installed component needs to be registered- See Also:
-
INSTALL_FLAG_FIRE_EVENTS
static final int INSTALL_FLAG_FIRE_EVENTSFlag indicates that invalidation events needs to be fired during install- See Also:
-
INSTALL_SUPPRESS_LANGUAGE_PACK_DEPLOYMENT
static final int INSTALL_SUPPRESS_LANGUAGE_PACK_DEPLOYMENTFlag indicates that Language Pack installation should not be performed. Use this it tell the installer that your method will handle the language pack installation/deployment.- See Also:
-
-
Method Details
-
installComponent
Installs a component from a given location- Parameters:
context
- current contextcomponentLocation
- the location of the component deployment file- Returns:
- uri to the installed component
- Throws:
BizException
-
installComponent
IURI installComponent(IContext context, String componentLocation, boolean register) throws BizException Installs a component from a given location- Parameters:
context
- current contextcomponentLocation
- the location of the component deployment file- Returns:
- uri to the installed component
- Throws:
BizException
-
installComponent
- Throws:
BizException
-
uninstallComponent
void uninstallComponent(IContext context, IURI componentUri, boolean unregister) throws BizException Uninstalled previously installed component- Parameters:
context
- current contextcomponentUri
- the component uri- Throws:
BizException
-
uninstallComponent
- Throws:
BizException
-
uninstallComponent
void uninstallComponent(IContext context, String componentLocation, boolean unregister) throws BizException Uninstalled previously installed component- Parameters:
context
- current contextcomponentLocation
- the location of the component deployment file- Throws:
BizException
-
uninstallComponent
- Throws:
BizException
-
installComponents
Installs all components from a given folder- Parameters:
context
- current contextfolderLocation
- the folder with components to install- Throws:
BizException
-
getSupportedComponentTypes
Returns supported component type that can be installed into the system- Returns:
- list of component types
- Throws:
BizException
-
syncDeployFolder
Runs deploy folder sync- Parameters:
context
-- Throws:
BizException
-
installBootstrapComponentsWithDependencies
void installBootstrapComponentsWithDependencies(IContext context, String components) throws BizException Deploys a bootstrap component with dependencies- Parameters:
components
-context
-- Throws:
BizException
-