Class RemoteMetadataRepositoryManager

  • All Implemented Interfaces:
    org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IInstallableUnit>, org.eclipse.equinox.p2.repository.IRepositoryManager<org.eclipse.equinox.p2.metadata.IInstallableUnit>, org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager

    class RemoteMetadataRepositoryManager
    extends java.lang.Object
    implements org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager delegate  
      private RemoteRepositoryLoadingHelper loadingHelper  
      private MavenLogger logger  
      • Fields inherited from interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager

        SERVICE_NAME, TYPE_COMPOSITE_REPOSITORY, TYPE_SIMPLE_REPOSITORY
      • Fields inherited from interface org.eclipse.equinox.p2.repository.IRepositoryManager

        REPOSITORIES_ALL, REPOSITORIES_DISABLED, REPOSITORIES_LOCAL, REPOSITORIES_NON_LOCAL, REPOSITORIES_NON_SYSTEM, REPOSITORIES_SYSTEM, REPOSITORY_HINT_MODIFIABLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addRepository​(java.net.URI location)  
      boolean contains​(java.net.URI location)  
      org.eclipse.equinox.p2.repository.metadata.IMetadataRepository createRepository​(java.net.URI location, java.lang.String name, java.lang.String type, java.util.Map<java.lang.String,​java.lang.String> properties)  
      private void failIfRepositoryContainsPartialIUs​(org.eclipse.equinox.p2.repository.metadata.IMetadataRepository repository, java.net.URI effectiveLocation)  
      org.eclipse.equinox.p2.core.IProvisioningAgent getAgent()  
      java.net.URI[] getKnownRepositories​(int flags)  
      java.lang.String getRepositoryProperty​(java.net.URI location, java.lang.String key)  
      boolean isEnabled​(java.net.URI location)  
      org.eclipse.equinox.p2.repository.metadata.IMetadataRepository loadRepository​(java.net.URI location, int flags, org.eclipse.core.runtime.IProgressMonitor monitor)  
      org.eclipse.equinox.p2.repository.metadata.IMetadataRepository loadRepository​(java.net.URI location, org.eclipse.core.runtime.IProgressMonitor monitor)  
      org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IInstallableUnit> query​(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query, org.eclipse.core.runtime.IProgressMonitor monitor)  
      org.eclipse.equinox.p2.repository.metadata.IMetadataRepository refreshRepository​(java.net.URI location, org.eclipse.core.runtime.IProgressMonitor monitor)  
      boolean removeRepository​(java.net.URI location)  
      void setEnabled​(java.net.URI location, boolean enablement)  
      void setRepositoryProperty​(java.net.URI location, java.lang.String key, java.lang.String value)  
      private java.net.URI translate​(java.net.URI location)  
      private java.net.URI translateAndPrepareLoad​(java.net.URI location)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • delegate

        private final org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager delegate
    • Constructor Detail

      • RemoteMetadataRepositoryManager

        RemoteMetadataRepositoryManager​(org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager delegate,
                                        RemoteRepositoryLoadingHelper loadingHelper,
                                        MavenLogger logger)
    • Method Detail

      • translate

        private java.net.URI translate​(java.net.URI location)
      • translateAndPrepareLoad

        private java.net.URI translateAndPrepareLoad​(java.net.URI location)
                                              throws org.eclipse.equinox.p2.core.ProvisionException
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
      • loadRepository

        public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository loadRepository​(java.net.URI location,
                                                                                             org.eclipse.core.runtime.IProgressMonitor monitor)
                                                                                      throws org.eclipse.equinox.p2.core.ProvisionException,
                                                                                             org.eclipse.core.runtime.OperationCanceledException
        Specified by:
        loadRepository in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
        org.eclipse.core.runtime.OperationCanceledException
      • loadRepository

        public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository loadRepository​(java.net.URI location,
                                                                                             int flags,
                                                                                             org.eclipse.core.runtime.IProgressMonitor monitor)
                                                                                      throws org.eclipse.equinox.p2.core.ProvisionException,
                                                                                             org.eclipse.core.runtime.OperationCanceledException
        Specified by:
        loadRepository in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
        org.eclipse.core.runtime.OperationCanceledException
      • failIfRepositoryContainsPartialIUs

        private void failIfRepositoryContainsPartialIUs​(org.eclipse.equinox.p2.repository.metadata.IMetadataRepository repository,
                                                        java.net.URI effectiveLocation)
                                                 throws org.eclipse.equinox.p2.core.ProvisionException
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
      • addRepository

        public void addRepository​(java.net.URI location)
        Specified by:
        addRepository in interface org.eclipse.equinox.p2.repository.IRepositoryManager<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • contains

        public boolean contains​(java.net.URI location)
        Specified by:
        contains in interface org.eclipse.equinox.p2.repository.IRepositoryManager<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • createRepository

        public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository createRepository​(java.net.URI location,
                                                                                               java.lang.String name,
                                                                                               java.lang.String type,
                                                                                               java.util.Map<java.lang.String,​java.lang.String> properties)
                                                                                        throws org.eclipse.equinox.p2.core.ProvisionException,
                                                                                               org.eclipse.core.runtime.OperationCanceledException
        Specified by:
        createRepository in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
        org.eclipse.core.runtime.OperationCanceledException
      • getAgent

        public org.eclipse.equinox.p2.core.IProvisioningAgent getAgent()
        Specified by:
        getAgent in interface org.eclipse.equinox.p2.repository.IRepositoryManager<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • getKnownRepositories

        public java.net.URI[] getKnownRepositories​(int flags)
        Specified by:
        getKnownRepositories in interface org.eclipse.equinox.p2.repository.IRepositoryManager<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • getRepositoryProperty

        public java.lang.String getRepositoryProperty​(java.net.URI location,
                                                      java.lang.String key)
        Specified by:
        getRepositoryProperty in interface org.eclipse.equinox.p2.repository.IRepositoryManager<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • isEnabled

        public boolean isEnabled​(java.net.URI location)
        Specified by:
        isEnabled in interface org.eclipse.equinox.p2.repository.IRepositoryManager<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • query

        public org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IInstallableUnit> query​(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query,
                                                                                                                 org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        query in interface org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • refreshRepository

        public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository refreshRepository​(java.net.URI location,
                                                                                                org.eclipse.core.runtime.IProgressMonitor monitor)
                                                                                         throws org.eclipse.equinox.p2.core.ProvisionException,
                                                                                                org.eclipse.core.runtime.OperationCanceledException
        Specified by:
        refreshRepository in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepositoryManager
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
        org.eclipse.core.runtime.OperationCanceledException
      • removeRepository

        public boolean removeRepository​(java.net.URI location)
        Specified by:
        removeRepository in interface org.eclipse.equinox.p2.repository.IRepositoryManager<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • setEnabled

        public void setEnabled​(java.net.URI location,
                               boolean enablement)
        Specified by:
        setEnabled in interface org.eclipse.equinox.p2.repository.IRepositoryManager<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • setRepositoryProperty

        public void setRepositoryProperty​(java.net.URI location,
                                          java.lang.String key,
                                          java.lang.String value)
        Specified by:
        setRepositoryProperty in interface org.eclipse.equinox.p2.repository.IRepositoryManager<org.eclipse.equinox.p2.metadata.IInstallableUnit>