|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Role public interface LocalExtensionRepository
A repository containing local extension.
That's were remote extension are stored after being downloaded and from where extension are actually installed by their respective handlers.
| Method Summary | |
|---|---|
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. |
| 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()
LocalExtension getLocalExtension(ExtensionId extensionId)
extensionId - the extension identifier
Collection<LocalExtension> getLocalExtensions()
Collection<LocalExtension> getLocalExtensionVersions(String id)
id - the id of the extension
LocalExtension storeExtension(Extension extension)
throws LocalExtensionRepositoryException
extension - the extension to store
LocalExtensionRepositoryException - error when trying store provided extension in the local repository
void setProperties(LocalExtension localExtension,
Map<String,Object> properties)
throws LocalExtensionRepositoryException
localExtension - the local extension to modifyproperties - the properties to set
LocalExtensionRepositoryException - error when trying to save the extension change
void removeExtension(LocalExtension extension)
throws ResolveException
extension - the extension to remove
ResolveException - error when trying to find provided extension
LocalExtension 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
LocalExtension 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 | |||||||||