public interface InstalledExtension extends LocalExtension
An installed extension.
Modifier and Type | Field and Description |
---|---|
static String |
PKEY_DEPENDENCY
Custom property key containing
isDependency(String) with null namespace. |
static String |
PKEY_INSTALLED
Custom property key containing
isInstalled() . |
static String |
PKEY_NAMESPACES
Custom property key containing
getNamespaces() . |
static String |
PKEY_NAMESPACES_DEPENDENCY
Custom property key containing
isDependency(String) . |
static String |
PKEY_NAMESPACES_NAMESPACE
Custom property key containing the namespace.
|
static String |
PKEY_PREFIX
The prefix that should be used by all custom extension properties that are specific to installed extensions.
|
PKEY_FILE
FIELD_ALLOWEDNAMESPACE, FIELD_ALLOWEDNAMESPACES, FIELD_AUTHOR, FIELD_AUTHORS, FIELD_CATEGORY, FIELD_COMPONENT, FIELD_COMPONENTS, FIELD_DEPENDENCIES, FIELD_DESCRIPTION, FIELD_EXTENSIONFEATURE, FIELD_EXTENSIONFEATURES, FIELD_FEATURE, FIELD_FEATURES, FIELD_ID, FIELD_ISSUEMANAGEMENT, FIELD_LICENSE, FIELD_LICENSES, FIELD_MANAGEDDEPENDENCIES, FIELD_NAME, FIELD_NAMESPACES, FIELD_PROPERTIES, FIELD_REPOSITORIES, FIELD_REPOSITORY, FIELD_SCM, FIELD_SUMMARY, FIELD_TYPE, FIELD_VERSION, FIELD_WEBSITE, IKEYPREFIX
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()
Deprecated.
since 4.3M1 use
isDependency(String) with null namespace instead |
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.
|
getFile
get, getAllowedNamespaces, getAuthors, getCategory, getComponents, getDependencies, getDescription, getExtensionFeature, getExtensionFeatures, getFeatures, getId, getIssueManagement, getLicenses, getManagedDependencies, getName, getProperties, getProperty, getProperty, getRepositories, getRepository, getScm, getSummary, getType, getWebSite
compareTo
static final String PKEY_PREFIX
static final String PKEY_INSTALLED
isInstalled()
.static final String PKEY_NAMESPACES
getNamespaces()
.
Since 4.3M1 it's a Map<String, Object>
.
static final String PKEY_NAMESPACES_NAMESPACE
static final String PKEY_NAMESPACES_DEPENDENCY
isDependency(String)
.static final String PKEY_DEPENDENCY
isDependency(String)
with null
namespace.LocalExtension getLocalExtension()
boolean isInstalled()
boolean isInstalled(String namespace)
namespace
- the namespace to look at, if null it means the extension is installed on the root namespaceboolean isValid(String namespace)
An installed extension can be invalid for example when one of the core extensions has been changed and is now incompatible with this installed extension.
namespace
- the namespace to look at, if null it means the extension is installed on the root namespaceCollection<String> getNamespaces()
boolean isDependency(String namespace)
The 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.
namespace
- the namespace to look at, null indicate the root namespaceDate getInstallDate(String namespace)
namespace
- 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 namespaceObject getNamespaceProperty(String key, String namespace)
key
- the name of the property to look fornamespace
- the namespace to look at, null
indicates the root namespace@Deprecated boolean isDependency()
isDependency(String)
with null
namespace insteadThe 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.
Copyright © 2004–2021 XWiki. All rights reserved.