org.xwiki.extension.repository
Interface CoreExtensionRepository
- All Superinterfaces:
- ExtensionRepository, Searchable
@Role
public interface CoreExtensionRepository
- extends ExtensionRepository, Searchable
Virtual extension repository containing core extensions.
- Since:
- 4.0M1
- Version:
- $Id$
| Methods inherited from interface org.xwiki.extension.repository.search.Searchable |
search |
countExtensions
int countExtensions()
- Returns:
- the number of core extensions
getCoreExtensions
Collection<CoreExtension> getCoreExtensions()
- Returns:
- all the core extensions
getCoreExtension
CoreExtension getCoreExtension(String id)
- Parameters:
id - the extension identifier (version is not needed since there can be only one version of a core
extension)
- Returns:
- the core extension, null if none is found
exists
boolean exists(String id)
- Parameters:
id - the extension identifier (version is not needed since there can be only one version of a core
extension)
- Returns:
- true if the extension exists, false otherwise
resolve
CoreExtension resolve(ExtensionDependency extensionDependency)
throws ResolveException
- Description copied from interface:
ExtensionRepository
- Return extension descriptor from the repository. If the extension can't be found a
ResolveException is
thrown.
- Specified by:
resolve in interface ExtensionRepository
- Parameters:
extensionDependency - the target extension as a dependency
- Returns:
- the found extension descriptor
- Throws:
ResolveException - failed to find extension in the repository
resolve
CoreExtension resolve(ExtensionId extensionId)
throws ResolveException
- Description copied from interface:
ExtensionRepository
- Return extension descriptor from the repository. If the extension can't be found a
ResolveException is
thrown.
- Specified by:
resolve in interface ExtensionRepository
- Parameters:
extensionId - the extension identifier
- Returns:
- the found extension descriptor
- Throws:
ResolveException - failed to find extension in the repository
Copyright © 2004-2012 XWiki. All Rights Reserved.