public class Conflicts extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Conflicts.Conflict
An upload or download conflict requiring user resolution.
|
static class |
Conflicts.Notice
Part of the conflict list, but really only a non-critical notice.
|
static class |
Conflicts.Resolution |
Modifier and Type | Field and Description |
---|---|
protected List<Conflicts.Conflict> |
conflicts |
Constructor and Description |
---|
Conflicts(FilesCollection files) |
protected List<Conflicts.Conflict> conflicts
public Conflicts(FilesCollection files)
public Iterable<Conflicts.Conflict> getConflicts(boolean forUpload)
protected void listUpdateIssues()
protected Conflicts.Conflict bothInstallAndUninstall(FileObject file, FilesCollection installReasons, FilesCollection obsoleteReasons)
protected Conflicts.Conflict needUninstall(FileObject file, FilesCollection obsoleteReasons)
protected Conflicts.Conflict locallyModified(FileObject file, FilesCollection installReasons)
protected void listUploadIssues()
protected Conflicts.Conflict timestampChanged(FileObject file)
protected Conflicts.Conflict needUpload(FileObject file, FilesCollection uploadReasons)
protected Conflicts.Conflict dependencyNotUploaded(FileObject file, String dependency)
protected Conflicts.Conflict dependencyRemoved(FileObject file, String dependency)
protected Conflicts.Conflict conflictingVersions(FileObject file, File otherFile, String otherFileName)
protected Conflicts.Resolution ignoreResolution(String description, FileObject file)
protected Conflicts.Resolution deleteFile(String description, File file)
protected Conflicts.Resolution actionResolution(String description, FileObject file, FileObject.Action... actionsToTry)
protected Conflicts.Resolution actionResolution(String description, Iterable<FileObject> files, FileObject.Action... actionsToTry)
protected Conflicts.Resolution dependencyResolution(String description, FileObject file, String removeDependency, String addDependency)
protected void replaceDependency(FileObject file, String removeDependency, String addDependency)
public boolean hasDownloadConflicts()
public boolean hasUploadConflicts()
public static boolean needsFeedback(Iterable<Conflicts.Conflict> conflicts)
Conflicts.Conflict
s which do not require the user to
choose between resolutions, but which are merely notifications.
The upload (or download) should not be stopped by those.Copyright © 2014–2022 ImageJ. All rights reserved.