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 java.lang.String |
PREFERENCE_NODE
The node identifier for repository secure preference store.
|
static java.lang.String |
PROP_COMPRESSED
The key for a boolean property indicating that repository metadata is
stored in compressed form.
|
static java.lang.String |
PROP_DESCRIPTION
The key for a string property providing a human-readable description for the repository.
|
static java.lang.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 java.lang.String |
PROP_MIRRORS_URL
The key for a string property providing a URL that can return mirrors of this
repository.
|
static java.lang.String |
PROP_NAME
The key for a string property providing a human-readable name for the repository.
|
static java.lang.String |
PROP_NICKNAME
The key for a string property providing a user-defined name for the repository.
|
static java.lang.String |
PROP_PASSWORD
The key for a string property providing the password to an authenticated
URL.
|
static java.lang.String |
PROP_SYSTEM
The key for a boolean property indicating that the repository
is a system repository.
|
static java.lang.String |
PROP_TIMESTAMP
The key for a string property containing the time when the repository was last modified.
|
static java.lang.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 |
|---|---|
java.lang.String |
getDescription()
Returns a brief description of the repository.
|
java.net.URI |
getLocation()
Returns the location of this repository.
|
java.lang.String |
getName()
Returns the name of the repository.
|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Returns a read-only collection of the properties of the repository.
|
java.lang.String |
getProperty(java.lang.String key)
Returns the repository property with the given key, or
null
if no such property is defined |
java.lang.String |
getProvider()
Returns the name of the provider of the repository.
|
IProvisioningAgent |
getProvisioningAgent()
Returns the provisioning agent that manages this repository
|
java.lang.String |
getType()
Returns a string representing the type of the repository.
|
java.lang.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. |
java.lang.String |
setProperty(java.lang.String key,
java.lang.String value)
Sets the value of the property with the given key.
|
java.lang.String |
setProperty(java.lang.String key,
java.lang.String value,
IProgressMonitor monitor)
Sets the value of the property with the given key.
|
getAdapterquerystatic final java.lang.String PROP_SYSTEM
IRepositoryManager.static final java.lang.String PROP_COMPRESSED
getProperties(),
Constant Field Valuesstatic final java.lang.String PROP_NAME
static final java.lang.String PROP_NICKNAME
IRepositoryManager.static final java.lang.String PROP_DESCRIPTION
static final java.lang.String PROP_MIRRORS_BASE_URL
getProperties(),
Constant Field Valuesstatic final java.lang.String PROP_MIRRORS_URL
getProperties(),
Constant Field Valuesstatic final java.lang.String PROP_TIMESTAMP
getProperties(),
Constant Field Valuesstatic final java.lang.String PROP_USERNAME
PREFERENCE_NODE,
Constant Field Valuesstatic final java.lang.String PROP_PASSWORD
PREFERENCE_NODE,
Constant Field Valuesstatic final java.lang.String PREFERENCE_NODE
static final int TYPE_METADATA
static final int TYPE_ARTIFACT
static final int NONE
static final int ENABLED
java.net.URI getLocation()
java.lang.String getName()
java.lang.String getType()
java.lang.String getVersion()
java.lang.String getDescription()
java.lang.String getProvider()
java.util.Map<java.lang.String,java.lang.String> getProperties()
java.lang.String getProperty(java.lang.String key)
null
if no such property is definedkey - the property keynullIProvisioningAgent getProvisioningAgent()
boolean isModifiable()
true if this repository can be modified, and
false otherwise. Attempts to change the contents of
an unmodifiable repository will fail.java.lang.String setProperty(java.lang.String key,
java.lang.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 valuejava.lang.String setProperty(java.lang.String key,
java.lang.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, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.