public final class AvailableSites extends Object
Modifier and Type | Method and Description |
---|---|
static void |
applySitesURLUpdates(FilesCollection plugins,
List<URLChange> urlChanges)
Apply prepared changes to update site URLs
|
static Map<String,UpdateSite> |
getAvailableSites() |
static Map<String,UpdateSite> |
getAvailableSites(Logger log) |
static boolean |
hasUpdateSiteURLUpdates(FilesCollection plugins)
Checks whether for all update sites of a given
FilesCollection there is
an updated URL on the remote list of available update sites. |
static boolean |
hasUpdateSiteURLUpdates(FilesCollection plugins,
Map<String,UpdateSite> availableSites)
Checks whether for all update sites of a given
FilesCollection there is
an updated URL on the given list of available sites. |
static void |
initializeAndAddSites(FilesCollection files)
Initializes the list of update sites,
and adds them to the given
FilesCollection . |
static List<URLChange> |
initializeAndAddSites(FilesCollection files,
Logger log)
As
initializeAndAddSites(FilesCollection) with an optional
Logger for reporting errors. |
static void |
initializeAndAddSites(FilesCollection files,
LogService log) |
public static Map<String,UpdateSite> getAvailableSites() throws IOException
IOException
public static Map<String,UpdateSite> getAvailableSites(Logger log) throws IOException
IOException
public static List<URLChange> initializeAndAddSites(FilesCollection files, Logger log)
initializeAndAddSites(FilesCollection)
with an optional
Logger
for reporting errors.public static void initializeAndAddSites(FilesCollection files, LogService log)
public static void initializeAndAddSites(FilesCollection files)
FilesCollection
.public static boolean hasUpdateSiteURLUpdates(FilesCollection plugins) throws IOException
FilesCollection
there is
an updated URL on the remote list of available update sites.IOException
public static boolean hasUpdateSiteURLUpdates(FilesCollection plugins, Map<String,UpdateSite> availableSites)
FilesCollection
there is
an updated URL on the given list of available sites.public static void applySitesURLUpdates(FilesCollection plugins, List<URLChange> urlChanges)
Copyright © 2014–2022 ImageJ. All rights reserved.