|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role public interface ExtensionHandler
Handle extension related tasks depending of the type (install, uninstall, etc...).
| Method Summary | |
|---|---|
void |
checkInstall(Extension extension,
String namespace,
Request request)
Check if installing the passed extension is allowed. |
void |
checkUninstall(InstalledExtension extension,
String namespace,
Request request)
Check if uninstalling the passed extension is allowed. |
void |
initialize(LocalExtension localExtension,
String namespace)
Initialize the provided local extension (during application startup, re-initialization...). |
void |
install(LocalExtension localExtension,
String namespace,
Request request)
Install the provided local extension. |
void |
uninstall(InstalledExtension localExtension,
String namespace,
Request request)
Uninstall the provided local extension. |
void |
uninstall(LocalExtension localExtension,
String namespace,
Request request)
Deprecated. starting with 5.ORC1 use uninstall(InstalledExtension, String, Request) instead |
void |
upgrade(Collection<InstalledExtension> previousLocalExtensions,
LocalExtension newLocalExtension,
String namespace,
Request request)
Upgrade the provided local extension. |
void |
upgrade(LocalExtension previousLocalExtension,
LocalExtension newLocalExtension,
String namespace,
Request request)
Deprecated. starting with 5.0RC1 use upgrade(Collection, LocalExtension, String, Request) |
| Method Detail |
|---|
void install(LocalExtension localExtension,
String namespace,
Request request)
throws InstallException
localExtension - the extension to installnamespace - the namespace where to install the extensionrequest - extra parameters
InstallException - error when trying to install the extension
@Deprecated
void uninstall(LocalExtension localExtension,
String namespace,
Request request)
throws UninstallException
uninstall(InstalledExtension, String, Request) instead
localExtension - the extension to uninstallnamespace - the namespace from where to uninstall the extensionrequest - extra parameters
UninstallException - error when trying to uninstall the extension
void uninstall(InstalledExtension localExtension,
String namespace,
Request request)
throws UninstallException
localExtension - the extension to uninstallnamespace - the namespace from where to uninstall the extensionrequest - extra parameters
UninstallException - error when trying to uninstall the extension
@Deprecated
void upgrade(LocalExtension previousLocalExtension,
LocalExtension newLocalExtension,
String namespace,
Request request)
throws InstallException
upgrade(Collection, LocalExtension, String, Request)
previousLocalExtension - the previous installed version of the extensionnewLocalExtension - the extension to installnamespace - the namespace from where to uninstall the extensionrequest - extra parameters
InstallException - error when trying to upgrade the extension
void upgrade(Collection<InstalledExtension> previousLocalExtensions,
LocalExtension newLocalExtension,
String namespace,
Request request)
throws InstallException
previousLocalExtensions - the previous installed versions of the extensionnewLocalExtension - the extension to installnamespace - the namespace from where to uninstall the extensionrequest - extra parameters
InstallException - error when trying to upgrade the extension
void initialize(LocalExtension localExtension,
String namespace)
throws ExtensionException
localExtension - the extension to installnamespace - the namespace where to install the extension
ExtensionException - error when trying to install the extension
void checkInstall(Extension extension,
String namespace,
Request request)
throws InstallException
It is generally used to do some non generic checking of whether or not it is possible to install the passed extension (not the right environment, not enough rights, etc.).
extension - the extension to installnamespace - the namespace from where to installrequest - extra parameters
InstallException - installing the extension will fail
void checkUninstall(InstalledExtension extension,
String namespace,
Request request)
throws UninstallException
It is generally used to do some non generic checking of whether or not it is possible to uninstall the passed extension (not the right environment, not enough rights, etc.).
extension - the extension to uninstallnamespace - the namespace from where to uninstallrequest - extra parameters
UninstallException - uninstalling the extension will fail
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||