Class RemoteListSourceProviderImpl

    • Constructor Detail

      • RemoteListSourceProviderImpl

        public RemoteListSourceProviderImpl​(@NonNull
                                            java.lang.String url,
                                            @Nullable
                                            SchemaModule sourceListModule,
                                            @NonNull
                                            java.util.Map<java.lang.Class<? extends RepositorySource>,​java.util.Collection<SchemaModule<?>>> permittedSchemaModules)
                                     throws java.net.URISyntaxException
        Create a RemoteListSourceProviderImpl
        Parameters:
        url - The URL to download from
        sourceListModule - Extension to the common source list schema, if any.
        permittedSchemaModules - Map of concrete RepositorySource type, as defined in sourceListModule, to collection of SchemaModules allowed to be used by that source type.
        Throws:
        java.net.URISyntaxException - If url can't be parsed into a URL.
    • Method Detail

      • getSources

        @NonNull
        public java.util.List<RepositorySource> getSources​(@Nullable
                                                           Downloader downloader,
                                                           @NonNull
                                                           ProgressIndicator progress,
                                                           boolean forceRefresh)
        Gets the sources from this provider.
        Parameters:
        downloader - The Downloader to use to download the source list. Required.
        progress - ProgressIndicator for logging.
        forceRefresh - If true, this provider should refresh its list of sources, rather than return cached ones.
        Returns:
        The fetched RepositorySources.
      • addSource

        public boolean addSource​(@NonNull
                                 RepositorySource source)
        Not supported by this provider.
        Parameters:
        source - The source to add.
        Returns:
        false.
      • isModifiable

        public boolean isModifiable()
        Not supported by this provider.
        Returns:
        false.
      • save

        public void save​(@NonNull
                         ProgressIndicator progress)
        Not supported by this provider.