public interface IArtifactRepositoryManager extends IRepositoryManager<IArtifactKey>
IArtifactRepository
instances. See IRepositoryManager
for a general description of the characteristics of repository managers.Modifier and Type | Field and Description |
---|---|
static IArtifactRequest[] |
NO_ARTIFACT_REQUEST
A convenience constant representing an empty set of artifact requests.
|
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.
|
REPOSITORIES_ALL, REPOSITORIES_DISABLED, REPOSITORIES_LOCAL, REPOSITORIES_NON_LOCAL, REPOSITORIES_NON_SYSTEM, REPOSITORIES_SYSTEM, REPOSITORY_HINT_MODIFIABLE
Modifier and Type | Method and Description |
---|---|
IArtifactRequest |
createMirrorRequest(IArtifactKey key,
IArtifactRepository destination,
Map<String,String> destinationDescriptorProperties,
Map<String,String> destinationRepositoryProperties)
Return a new request to mirror the given artifact into the destination repository.
|
IArtifactRequest |
createMirrorRequest(IArtifactKey key,
IArtifactRepository destination,
Map<String,String> destinationDescriptorProperties,
Map<String,String> destinationRepositoryProperties,
String downloadStatsParameters)
Return a new request to mirror the given artifact into the destination repository.
|
IArtifactRepository |
createRepository(URI location,
String name,
String type,
Map<String,String> properties)
Creates and returns a new empty artifact repository of the given type at
the given location.
|
IArtifactRepository |
loadRepository(URI location,
int flags,
IProgressMonitor monitor)
Loads the repository at the given location.
|
IArtifactRepository |
loadRepository(URI location,
IProgressMonitor monitor)
Loads the repository at the given location.
|
IArtifactRepository |
refreshRepository(URI location,
IProgressMonitor monitor)
Refreshes the repository corresponding to the given URL.
|
addRepository, contains, getAgent, getKnownRepositories, getRepositoryProperty, isEnabled, removeRepository, setEnabled, setRepositoryProperty
query
static final String SERVICE_NAME
static final IArtifactRequest[] NO_ARTIFACT_REQUEST
static final String TYPE_SIMPLE_REPOSITORY
static final String TYPE_COMPOSITE_REPOSITORY
IArtifactRequest createMirrorRequest(IArtifactKey key, IArtifactRepository destination, Map<String,String> destinationDescriptorProperties, Map<String,String> destinationRepositoryProperties)
key
- the artifact to mirrordestination
- the destination where the artifact will be mirroreddestinationDescriptorProperties
- additional properties for use in creating the repository's ArtifactDescriptor,
or null
to indicate no additional properties are neededdestinationRepositoryProperties
- additional repository specific properties for use in creating the repositor's ArtifactDescriptor,
, or null
to indicate no additional properties are neededIArtifactRequest createMirrorRequest(IArtifactKey key, IArtifactRepository destination, Map<String,String> destinationDescriptorProperties, Map<String,String> destinationRepositoryProperties, String downloadStatsParameters)
key
- the artifact to mirrordestination
- the destination where the artifact will be mirroreddestinationDescriptorProperties
- additional properties for use in creating the repository's ArtifactDescriptor,
or null
to indicate no additional properties are neededdestinationRepositoryProperties
- additional repository specific properties for use in creating the repositor's ArtifactDescriptor,
, or null
to indicate no additional properties are neededdownloadStatsParameters
- additional customizable parameters for downloading statistics
, or null
to indicate no additional customizable stats parameterscreateMirrorRequest(IArtifactKey, IArtifactRepository, Map, Map)
IArtifactRepository createRepository(URI location, String name, String type, Map<String,String> properties) throws ProvisionException
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 repositoryProvisionException
- if the repository could not be created. Reasons include:
IArtifactRepository loadRepository(URI location, IProgressMonitor monitor) throws ProvisionException
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 in which to look for a repository descriptionmonitor
- a progress monitor, or null
if progress
reporting is not desiredProvisionException
- if the repository could not be created. Reasons include:
IArtifactRepository loadRepository(URI location, int flags, IProgressMonitor monitor) throws ProvisionException
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 in which to look for a repository descriptionflags
- - 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 desiredProvisionException
- if the repository could not be created. Reasons include:
IRepositoryManager.REPOSITORY_HINT_MODIFIABLE
IArtifactRepository refreshRepository(URI location, IProgressMonitor monitor) throws ProvisionException
location
- The absolute location of the repository to refreshmonitor
- a progress monitor, or null
if progress
reporting is not desiredProvisionException
- if the repository could not be created. Reasons include:
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.