Interface ResourceRepository

  • All Known Implementing Classes:
    ResourceRepositoryImpl

    public interface ResourceRepository
    A Resource Repository represents a repository local to the workspace. A Workspace will always create one Workspace Repository. References to the contents are stored in a text file in ./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.

    • Method Detail

      • filter

        java.util.List<? extends SearchableRepository.ResourceDescriptor> filter​(java.lang.String repository,
                                                                                 java.lang.String filter)
                                                                          throws java.lang.Exception
        Get the list of Resource Descriptors. This contains all the descriptors that are n the file, regardless of cache.
        Parameters:
        filter - An OSGi filter matched against the SearchableRepository.ResourceDescriptor
        Returns:
        an immutable list of resource descriptors
        Throws:
        java.lang.Exception
      • delete

        boolean delete​(java.lang.String repoId,
                       byte[] rd)
                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteCache

        boolean deleteCache​(byte[] id)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getCacheDir

        java.io.File getCacheDir​(java.lang.String name)