|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role public interface InstalledExtensionRepository
A repository containing installed extension.
It's generally a virtual repository since the actual extension are generally stored in the local repository.
| Method Summary | |
|---|---|
int |
countExtensions()
|
Map<String,Collection<InstalledExtension>> |
getBackwardDependencies(ExtensionId extensionId)
Get all backward dependencies by namespace for the provided installed extension. |
Collection<InstalledExtension> |
getBackwardDependencies(String feature,
String namespace)
Get provided installed extension backward dependencies in the provided namespace. |
InstalledExtension |
getInstalledExtension(ExtensionId extensionId)
Return extension descriptor from the repository. |
InstalledExtension |
getInstalledExtension(String feature,
String namespace)
Return the installed extension associated to the provided feature for the provided namespace (or root namespace since namespaces inherit from root). |
Collection<InstalledExtension> |
getInstalledExtensions()
|
Collection<InstalledExtension> |
getInstalledExtensions(String namespace)
Return all the extensions available for the provided namespace. |
InstalledExtension |
installExtension(LocalExtension extension,
String namespace,
boolean dependency)
Indicate that the provided extension is installed in the provided namespace. |
InstalledExtension |
resolve(ExtensionDependency extensionDependency)
Return extension descriptor from the repository. |
InstalledExtension |
resolve(ExtensionId extensionId)
Return extension descriptor from the repository. |
void |
uninstallExtension(InstalledExtension extension,
String namespace)
Indicate that the provided extension is uninstalled from provided namespace. |
| Methods inherited from interface org.xwiki.extension.repository.ExtensionRepository |
|---|
exists, getDescriptor, getId, resolveVersions |
| Methods inherited from interface org.xwiki.extension.repository.search.Searchable |
|---|
search |
| Method Detail |
|---|
int countExtensions()
InstalledExtension getInstalledExtension(String feature,
String namespace)
feature - the extension id or provided feature (virtual extension)namespace - the namespace where the extension is installed, null mean installed in all namespaces (root
namespace)
Collection<InstalledExtension> getInstalledExtensions()
Collection<InstalledExtension> getInstalledExtensions(String namespace)
Note that getInstalledExtensions() return all the extensions installed in all namespaces while
getInstalledExtensions(String) with null return only those that are globally available.
namespace - the namespace where to search for installed extensions, null mean installed in all namespaces
(root namespace)
InstalledExtension installExtension(LocalExtension extension,
String namespace,
boolean dependency)
throws InstallException
extension - the extension to installnamespace - the namespace in which the extension is installeddependency - indicate if the extension is stored as a dependency of another one
InstalledExtension
InstallException - error when trying to install provided extensionInstalledExtension getInstalledExtension(ExtensionId extensionId)
null is returned.
extensionId - the extension identifier
void uninstallExtension(InstalledExtension extension,
String namespace)
throws UninstallException
Extension is never removed form the local repository. It's just namespace related informations.
extension - the extension to uninstallnamespace - the namespace from which the extension is uninstalled
UninstallException - error when trying to uninstall provided extension
Collection<InstalledExtension> getBackwardDependencies(String feature,
String namespace)
throws ResolveException
Only look at the backward dependencies in the provided namespace. To get all the dependencies of a root extension
(namespace=null) across namespaces use getBackwardDependencies(ExtensionId) instead.
feature - the extension unique identifiernamespace - the namespace where to search for backward dependencies
ResolveException - error when searching for backward dependencies
Map<String,Collection<InstalledExtension>> getBackwardDependencies(ExtensionId extensionId)
throws ResolveException
extensionId - the extension identifier
ResolveException - error when searching for extension backward dependencies
InstalledExtension resolve(ExtensionDependency extensionDependency)
throws ResolveException
ExtensionRepositoryResolveException is
thrown.
resolve in interface ExtensionRepositoryextensionDependency - the target extension as a dependency
ResolveException - failed to find extension in the repository
InstalledExtension resolve(ExtensionId extensionId)
throws ResolveException
ExtensionRepositoryResolveException is
thrown.
resolve in interface ExtensionRepositoryextensionId - the extension identifier
ResolveException - failed to find extension in the repository
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||