RepositoryAdminImplpublic interface RepositoryAdmin
| Modifier and Type | Method | Description |
|---|---|---|
Repository |
addRepository(String repository) |
Add a new repository to the federation.
|
Repository |
addRepository(URL repository) |
Add a new repository to the federation.
|
Resource[] |
discoverResources(String filterExpr) |
Discover any resources that match the given filter.
|
Resource[] |
discoverResources(Requirement[] requirements) |
Discover any resources that match the given requirements.
|
DataModelHelper |
getHelper() |
Return a helper to perform various operations on the data model
|
Repository |
getLocalRepository() |
Return the repository containing locally installed resources
|
Repository |
getSystemRepository() |
Return the repository containing the system bundle
|
Repository[] |
listRepositories() |
List all the repositories.
|
boolean |
removeRepository(String repository) |
Remove a repository from the federation
The url must point to a repository XML file.
|
Resolver |
resolver() |
Create a resolver.
|
Resolver |
resolver(Repository[] repositories) |
Create a resolver on the given repositories.
|
Resource[] discoverResources(String filterExpr) throws org.osgi.framework.InvalidSyntaxException
filterExpr - A standard OSGi filterorg.osgi.framework.InvalidSyntaxExceptionResource[] discoverResources(Requirement[] requirements)
requirements - Resolver resolver()
Resolver resolver(Repository[] repositories)
repositories - the list of repositories to use for the resolutionRepository addRepository(String repository) throws Exception
repository - ExceptionRepository addRepository(URL repository) throws Exception
repository - Exceptionboolean removeRepository(String repository)
repository - Repository[] listRepositories()
Repository getSystemRepository()
Repository getLocalRepository()
DataModelHelper getHelper()
Copyright © 2018. All rights reserved.