E - the extension typepublic class WrappingInstalledExtension<E extends InstalledExtension> extends WrappingLocalExtension<E> implements InstalledExtension
PKEY_DEPENDENCY, PKEY_INSTALLED, PKEY_NAMESPACES, PKEY_NAMESPACES_DEPENDENCY, PKEY_NAMESPACES_NAMESPACEPKEY_FILE| Constructor and Description |
|---|
WrappingInstalledExtension(E localExtension) |
| Modifier and Type | Method and Description |
|---|---|
LocalExtension |
getLocalExtension() |
Collection<String> |
getNamespaces() |
boolean |
isDependency()
Indicate if the extension as been installed as a dependency of another one.
|
boolean |
isDependency(String namespace)
Indicate if the extension as been installed as a dependency of another one.
|
boolean |
isInstalled() |
boolean |
isInstalled(String namespace)
Indicate if the extension is installed in the provided namespace.
|
boolean |
isValid(String namespace)
Indicate if the extension is working.
|
getFilegetAuthors, getDependencies, getDescription, getFeatures, getId, getIssueManagement, getLicenses, getName, getProperties, getProperty, getProperty, getRepository, getScm, getSummary, getType, getWebSiteequals, getWrapped, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFilegetAuthors, getDependencies, getDescription, getFeatures, getId, getIssueManagement, getLicenses, getName, getProperties, getProperty, getProperty, getRepository, getScm, getSummary, getType, getWebSitepublic WrappingInstalledExtension(E localExtension)
localExtension - the wrapped local extensionpublic LocalExtension getLocalExtension()
getLocalExtension in interface InstalledExtensionpublic boolean isInstalled()
isInstalled in interface InstalledExtensionpublic boolean isValid(String namespace)
InstalledExtensionAn installed extension can be invalid for example when one of the core extensions has been changed and is now incompatible with this installed extension.
isValid in interface InstalledExtensionnamespace - the namespace to look at, if null it means the extension is installed on the root namespacepublic boolean isInstalled(String namespace)
InstalledExtensionisInstalled in interface InstalledExtensionnamespace - the namespace to look at, if null it means the extension is installed on the root namespacepublic Collection<String> getNamespaces()
getNamespaces in interface InstalledExtensionpublic boolean isDependency()
InstalledExtensionThe idea is to be able to make the difference between extension specifically installed by a user so that it's possible to know which extension are not really required anymore.
isDependency in interface InstalledExtensionpublic boolean isDependency(String namespace)
InstalledExtensionThe idea is to be able to make the difference between extension specifically installed by a user so that it's possible to know which extension are not really required anymore.
isDependency in interface InstalledExtensionnamespace - the namespace to look at, null indicate the root namespaceCopyright © 2004–2015 XWiki. All rights reserved.