@Role public interface LocalExtensionRepository extends ExtensionRepository, AdvancedSearchable
That's were remote extension are stored after being downloaded and from where extension are actually installed by their respective handlers.
Modifier and Type | Method and Description |
---|---|
int |
countExtensions() |
LocalExtension |
getLocalExtension(ExtensionId extensionId)
Return extension descriptor from the repository.
|
Collection<LocalExtension> |
getLocalExtensions() |
Collection<LocalExtension> |
getLocalExtensionVersions(String id) |
void |
removeExtension(LocalExtension extension)
Remove extension from local repository.
|
LocalExtension |
resolve(ExtensionDependency extensionDependency)
Return extension descriptor from the repository.
|
LocalExtension |
resolve(ExtensionId extensionId)
Return extension descriptor from the repository.
|
void |
setProperties(LocalExtension localExtension,
Map<String,Object> properties) |
LocalExtension |
storeExtension(Extension extension)
Store provided extension (generally a remote extension) in the local repository.
|
exists, getDescriptor, getId, resolveVersions
isFilterable, isSortable, search
search
int countExtensions()
LocalExtension getLocalExtension(ExtensionId extensionId)
extensionId
- the extension identifierCollection<LocalExtension> getLocalExtensions()
Collection<LocalExtension> getLocalExtensionVersions(String id)
id
- the id of the extensionLocalExtension storeExtension(Extension extension) throws LocalExtensionRepositoryException
extension
- the extension to storeLocalExtensionRepositoryException
- error when trying store provided extension in the local repositoryvoid setProperties(LocalExtension localExtension, Map<String,Object> properties) throws LocalExtensionRepositoryException
localExtension
- the local extension to modifyproperties
- the properties to setLocalExtensionRepositoryException
- error when trying to save the extension changevoid removeExtension(LocalExtension extension) throws ResolveException
extension
- the extension to removeResolveException
- error when trying to find provided extensionLocalExtension resolve(ExtensionDependency extensionDependency) throws ResolveException
ExtensionRepository
ResolveException
is
thrown.resolve
in interface ExtensionRepository
extensionDependency
- the target extension as a dependencyExtensionNotFoundException
- when the dependency does not match any extension in the repositoryResolveException
- failed to find extension in the repositoryLocalExtension resolve(ExtensionId extensionId) throws ResolveException
ExtensionRepository
ResolveException
is
thrown.resolve
in interface ExtensionRepository
extensionId
- the extension identifierExtensionNotFoundException
- when the extension does not exist in the repositoryResolveException
- failed to find extension in the repositoryCopyright © 2004–2021 XWiki. All rights reserved.