|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMetadataRepositoryManager
A metadata repository manager is used to create, access, and manipulate
IMetadataRepository instances. See IRepositoryManager
for a general description of the characteristics of repository managers.
| Field Summary | |
|---|---|
static String |
SERVICE_NAME
The name used for obtaining a reference to the metadata repository manager service |
static String |
TYPE_COMPOSITE_REPOSITORY
Repository type for a composite repository based on a URL or local file system location. |
static String |
TYPE_SIMPLE_REPOSITORY
Repository type for a simple repository based on a URL or local file system location. |
| Fields inherited from interface org.eclipse.equinox.p2.repository.IRepositoryManager |
|---|
REPOSITORIES_ALL, REPOSITORIES_DISABLED, REPOSITORIES_LOCAL, REPOSITORIES_NON_LOCAL, REPOSITORIES_NON_SYSTEM, REPOSITORIES_SYSTEM, REPOSITORY_HINT_MODIFIABLE |
| Method Summary | |
|---|---|
IMetadataRepository |
createRepository(URI location,
String name,
String type,
Map<String,String> properties)
Creates and returns a new empty metadata repository of the given type at the given location. |
IMetadataRepository |
loadRepository(URI location,
int flags,
IProgressMonitor monitor)
Loads a repository corresponding to the given URL. |
IMetadataRepository |
loadRepository(URI location,
IProgressMonitor monitor)
Loads a repository corresponding to the given URL. |
IMetadataRepository |
refreshRepository(URI location,
IProgressMonitor monitor)
Refreshes the repository corresponding to the given URL. |
| Methods inherited from interface org.eclipse.equinox.p2.repository.IRepositoryManager |
|---|
addRepository, contains, getAgent, getKnownRepositories, getRepositoryProperty, isEnabled, removeRepository, setEnabled, setRepositoryProperty |
| Methods inherited from interface org.eclipse.equinox.p2.query.IQueryable |
|---|
query |
| Field Detail |
|---|
static final String SERVICE_NAME
static final String TYPE_SIMPLE_REPOSITORY
static final String TYPE_COMPOSITE_REPOSITORY
| Method Detail |
|---|
IMetadataRepository createRepository(URI location,
String name,
String type,
Map<String,String> properties)
throws ProvisionException,
OperationCanceledException
The resulting repository is added to the list of repositories tracked by
the repository manager. Clients must make a subsequent call to IRepositoryManager.removeRepository(URI)
if they do not want the repository manager to remember the repository for subsequent
load attempts.
location - the absolute location for the new repositoryname - the name of the new repositorytype - the kind of repository to createproperties - the properties to set on the repository
ProvisionException - if the repository could not be created. Reasons include:
OperationCanceledException - if this operation has been canceled
IMetadataRepository loadRepository(URI location,
IProgressMonitor monitor)
throws ProvisionException,
OperationCanceledException
The resulting repository is added to the list of repositories tracked by
the repository manager. Clients must make a subsequent call to IRepositoryManager.removeRepository(URI)
if they do not want the repository manager to remember the repository for subsequent
load attempts.
location - The absolute location of the repository to loadmonitor - a progress monitor, or null if progress
reporting is not desired
OperationCanceledException - if this operation has been canceled
ProvisionException - if the repository could not be created. Reasons include:
IMetadataRepository loadRepository(URI location,
int flags,
IProgressMonitor monitor)
throws ProvisionException,
OperationCanceledException
The resulting repository is added to the list of repositories tracked by
the repository manager. Clients must make a subsequent call to IRepositoryManager.removeRepository(URI)
if they do not want the repository manager to remember the repository for subsequent
load attempts.
The flags passed in should be taken as a hint for the type of repository to load. If the manager cannot load a repository that satisfies these hints, it can fail fast.
location - The absolute location of the repository to loadflags - - bit-wise or of flags to consider when loading the repository
(currently only IRepositoryManager.REPOSITORY_HINT_MODIFIABLE is supported)monitor - a progress monitor, or null if progress
reporting is not desired
OperationCanceledException - if this operation has been canceled
ProvisionException - if the repository could not be created. Reasons include:
IRepositoryManager.REPOSITORY_HINT_MODIFIABLE
IMetadataRepository refreshRepository(URI location,
IProgressMonitor monitor)
throws ProvisionException,
OperationCanceledException
location - The absolute location of the repository to refreshmonitor - a progress monitor, or null if progress
reporting is not desired
OperationCanceledException - if this operation has been canceled
ProvisionException - if the repository could not be refreshed. Reasons include:
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.