|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role public interface ExtensionValidator
Check if executing a given action on a passed extension is allowed.
Mostly used for default behavior when ExtensionHandler does not have any special check for its type. The goal
is to make easy for any environment using commons-extension module to have a default restriction on all extensions
types (for example in XWiki unless the type has special checking you need programming right to install an extension).
| 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. |
| Method Detail |
|---|
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 | |||||||||