T
- The type of contents contained in this repositorypublic interface IRepository<T> extends IAdaptable, IQueryable<T>
Modifier and Type | Field and Description |
---|---|
static int |
ENABLED
An option flag constant (value 1) indicating an enabled repository.
|
static int |
NONE
General purpose zero-valued bit mask constant.
|
static String |
PREFERENCE_NODE
The node identifier for repository secure preference store.
|
static String |
PROP_COMPRESSED
The key for a boolean property indicating that repository metadata is
stored in compressed form.
|
static String |
PROP_DESCRIPTION
The key for a string property providing a human-readable description for the repository.
|
static String |
PROP_MIRRORS_BASE_URL
The key for a string property providing the common base URL that should
be replaced with the mirror URL.
|
static String |
PROP_MIRRORS_URL
The key for a string property providing a URL that can return mirrors of this
repository.
|
static String |
PROP_NAME
The key for a string property providing a human-readable name for the repository.
|
static String |
PROP_NICKNAME
The key for a string property providing a user-defined name for the repository.
|
static String |
PROP_PASSWORD
The key for a string property providing the password to an authenticated
URL.
|
static String |
PROP_SYSTEM
The key for a boolean property indicating that the repository
is a system repository.
|
static String |
PROP_TIMESTAMP
The key for a string property containing the time when the repository was last modified.
|
static String |
PROP_USERNAME
The key for a string property providing the user name to an authenticated
URL.
|
static int |
TYPE_ARTIFACT
A repository type constant (value 1) representing an artifact repository.
|
static int |
TYPE_METADATA
A repository type constant (value 0) representing a metadata repository.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a brief description of the repository.
|
URI |
getLocation()
Returns the location of this repository.
|
String |
getName()
Returns the name of the repository.
|
Map<String,String> |
getProperties()
Returns a read-only collection of the properties of the repository.
|
String |
getProperty(String key)
Returns the repository property with the given key, or
null
if no such property is defined |
String |
getProvider()
Returns the name of the provider of the repository.
|
IProvisioningAgent |
getProvisioningAgent()
Returns the provisioning agent that manages this repository
|
String |
getType()
Returns a string representing the type of the repository.
|
String |
getVersion()
Returns a string representing the version for the repository type.
|
boolean |
isModifiable()
Returns
true if this repository can be modified, and
false otherwise. |
String |
setProperty(String key,
String value)
Sets the value of the property with the given key.
|
String |
setProperty(String key,
String value,
IProgressMonitor monitor)
Sets the value of the property with the given key.
|
getAdapter
query
static final String PROP_SYSTEM
IRepositoryManager
.static final String PROP_COMPRESSED
getProperties()
,
Constant Field Valuesstatic final String PROP_NAME
static final String PROP_NICKNAME
IRepositoryManager
.static final String PROP_DESCRIPTION
static final String PROP_MIRRORS_BASE_URL
getProperties()
,
Constant Field Valuesstatic final String PROP_MIRRORS_URL
getProperties()
,
Constant Field Valuesstatic final String PROP_TIMESTAMP
getProperties()
,
Constant Field Valuesstatic final String PROP_USERNAME
PREFERENCE_NODE
,
Constant Field Valuesstatic final String PROP_PASSWORD
PREFERENCE_NODE
,
Constant Field Valuesstatic final String PREFERENCE_NODE
static final int TYPE_METADATA
static final int TYPE_ARTIFACT
static final int NONE
static final int ENABLED
URI getLocation()
String getName()
String getType()
String getVersion()
String getDescription()
String getProvider()
Map<String,String> getProperties()
String getProperty(String key)
null
if no such property is definedkey
- the property keynull
IProvisioningAgent getProvisioningAgent()
boolean isModifiable()
true
if this repository can be modified, and
false
otherwise. Attempts to change the contents of
an unmodifiable repository will fail.String setProperty(String key, String value)
null
will
remove the corresponding key from the properties of this repository.key
- The property keyvalue
- The new property value, or null
to remove the keynull
if there was no old valueString setProperty(String key, String value, IProgressMonitor monitor)
null
will
remove the corresponding key from the properties of this repository.key
- The property keyvalue
- The new property value, or null
to remove the keymonitor
- A progress monitor use to track progress and cancel the operation. This may
be a long running operation if another process holds the lock on this locationnull
if there was no old value
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.