org.xwiki.extension
Interface ExtensionManager


@Role
public interface ExtensionManager

Main entry point for some extensions management tasks.

Since:
4.0M1
Version:
$Id: da9050ea816faa57266d7547833d24f5b7a0c108 $

Method Summary
 ExtensionRepository getRepository(String repositoryId)
          Return a repository based on its id.
 Extension resolveExtension(ExtensionDependency extensionDependency)
          Search the provided extension as a dependency of another extension among all repositories including core and local repositories.
 Extension resolveExtension(ExtensionId extensionId)
          Search the provided extension among all repositories including core and local repositories.
 

Method Detail

resolveExtension

Extension resolveExtension(ExtensionId extensionId)
                           throws ResolveException
Search the provided extension among all repositories including core and local repositories.

The search is done in the following order:

The first one found is returned.

Parameters:
extensionId - the extension identifier
Returns:
the resolved extension
Throws:
ResolveException - error when trying to resolve extension

resolveExtension

Extension resolveExtension(ExtensionDependency extensionDependency)
                           throws ResolveException
Search the provided extension as a dependency of another extension among all repositories including core and local repositories.

The search is done in the following order:

The first one found is returned.

Parameters:
extensionDependency - the extension as dependency
Returns:
the resolved extension
Throws:
ResolveException - error when trying to resolve extension

getRepository

ExtensionRepository getRepository(String repositoryId)
Return a repository based on its id.

This method also return local, installed and core repositories.

Parameters:
repositoryId - the id of the repository
Returns:
the repository
Since:
4.0M2


Copyright © 2004-2013 XWiki. All Rights Reserved.