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_NAMESPACE, PKEY_PREFIXPKEY_FILEFIELD_AUTHOR, FIELD_AUTHORS, FIELD_CATEGORY, FIELD_DESCRIPTION, FIELD_FEATURE, FIELD_FEATURES, FIELD_ID, FIELD_LICENSE, FIELD_LICENSES, FIELD_NAME, FIELD_REPOSITORY, FIELD_SCM, FIELD_SUMMARY, FIELD_TYPE, FIELD_VERSION, FIELD_WEBSITE| Constructor and Description |
|---|
WrappingInstalledExtension(E installedExtension) |
| Modifier and Type | Method and Description |
|---|---|
Date |
getInstallDate(String namespace) |
LocalExtension |
getLocalExtension() |
Object |
getNamespaceProperty(String key,
String namespace)
An installed extension can have different values for its properties depending on the namespace where it is
installed.
|
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.
|
getFileget, getAuthors, getCategory, getDependencies, getDescription, getFeatures, getId, getIssueManagement, getLicenses, getName, getProperties, getProperty, getProperty, getRepository, getScm, getSummary, getType, getWebSiteequals, getWrapped, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFileget, getAuthors, getCategory, getDependencies, getDescription, getFeatures, getId, getIssueManagement, getLicenses, getName, getProperties, getProperty, getProperty, getRepository, getScm, getSummary, getType, getWebSitepublic WrappingInstalledExtension(E installedExtension)
installedExtension - the wrapped installed 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 namespacepublic Date getInstallDate(String namespace)
getInstallDate in interface InstalledExtensionnamespace - the namespace to look at, null indicates the root namespacenull if the install
date is not available or if this extension is not installed on the specified namespacepublic Object getNamespaceProperty(String key, String namespace)
InstalledExtensiongetNamespaceProperty in interface InstalledExtensionkey - the name of the property to look fornamespace - the namespace to look at, null indicates the root namespaceCopyright © 2004–2015 XWiki. All rights reserved.