@Role public interface LocalExtensionRepository extends ExtensionRepository, Searchable
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, resolveVersionssearchint 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
ExtensionRepositoryResolveException is
thrown.resolve in interface ExtensionRepositoryextensionDependency - the target extension as a dependencyResolveException - failed to find extension in the repositoryLocalExtension resolve(ExtensionId extensionId) throws ResolveException
ExtensionRepositoryResolveException is
thrown.resolve in interface ExtensionRepositoryextensionId - the extension identifierResolveException - failed to find extension in the repositoryCopyright © 2004–2014 XWiki. All rights reserved.