public interface ResourceRepository
./cnf/dependencies.json
.
Associated with the repository is a cache (which might be shared with other
subsystems).
This repository can be used to get plugin dependencies.
Modifier and Type | Interface and Description |
---|---|
static interface |
ResourceRepository.Listener |
static class |
ResourceRepository.ResourceRepositoryEvent |
static class |
ResourceRepository.TYPE |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FILENAME |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.String repoId,
SearchableRepository.ResourceDescriptor rd) |
void |
addListener(ResourceRepository.Listener rrl) |
boolean |
delete(java.lang.String repoId,
byte[] rd) |
boolean |
deleteCache(byte[] id) |
java.util.List<? extends SearchableRepository.ResourceDescriptor> |
filter(java.lang.String repository,
java.lang.String filter)
Get the list of Resource Descriptors.
|
java.util.SortedSet<SearchableRepository.ResourceDescriptor> |
find(java.lang.String repository,
java.lang.String bsn,
VersionRange range) |
java.io.File |
getCacheDir(java.lang.String name) |
java.io.File |
getResource(byte[] id,
RepositoryPlugin.DownloadListener... listeners) |
SearchableRepository.ResourceDescriptor |
getResourceDescriptor(byte[] sha) |
static final java.lang.String FILENAME
java.util.List<? extends SearchableRepository.ResourceDescriptor> filter(java.lang.String repository, java.lang.String filter) throws java.lang.Exception
filter
- An OSGi filter matched against the
SearchableRepository.ResourceDescriptor
java.lang.Exception
java.io.File getResource(byte[] id, RepositoryPlugin.DownloadListener... listeners) throws java.lang.Exception
java.lang.Exception
SearchableRepository.ResourceDescriptor getResourceDescriptor(byte[] sha) throws java.lang.Exception
java.lang.Exception
boolean delete(java.lang.String repoId, byte[] rd) throws java.lang.Exception
java.lang.Exception
boolean add(java.lang.String repoId, SearchableRepository.ResourceDescriptor rd) throws java.lang.Exception
java.lang.Exception
void addListener(ResourceRepository.Listener rrl)
boolean deleteCache(byte[] id) throws java.lang.Exception
java.lang.Exception
java.util.SortedSet<SearchableRepository.ResourceDescriptor> find(java.lang.String repository, java.lang.String bsn, VersionRange range) throws java.lang.Exception
java.lang.Exception
java.io.File getCacheDir(java.lang.String name)