|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InstalledExtension
Represent a local extension.
An installed extension.
| Field Summary | |
|---|---|
static String |
PKEY_DEPENDENCY
Custom property key containing isDependency(). |
static String |
PKEY_INSTALLED
Custom property key containing isInstalled(). |
static String |
PKEY_NAMESPACES
Custom property key containing getNamespaces(). |
| Fields inherited from interface org.xwiki.extension.LocalExtension |
|---|
PKEY_FILE |
| Method Summary | |
|---|---|
LocalExtension |
getLocalExtension()
|
Collection<String> |
getNamespaces()
|
boolean |
isDependency()
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. |
| Methods inherited from interface org.xwiki.extension.LocalExtension |
|---|
getFile |
| Methods inherited from interface org.xwiki.extension.Extension |
|---|
getAuthors, getDependencies, getDescription, getFeatures, getId, getLicenses, getName, getProperties, getProperty, getProperty, getRepository, getSummary, getType, getWebSite |
| Field Detail |
|---|
static final String PKEY_INSTALLED
isInstalled().
static final String PKEY_DEPENDENCY
isDependency().
static final String PKEY_NAMESPACES
getNamespaces().
| Method Detail |
|---|
LocalExtension getLocalExtension()
boolean isInstalled()
boolean isInstalled(String namespace)
namespace - the namespace to look at, if null it means the extension is installed for all the namespaces
Collection<String> getNamespaces()
boolean isDependency()
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||