| Modifier and Type | Class and Description |
|---|---|
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| private final DialogService | |
| private final Function | |
| private static final Logger | |
| private final GuiPreferences | |
| private final StateManager | |
| private final UiTaskExecutor | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | DownloadFullTextAction(DialogService dialogService, StateManager stateManager, GuiPreferences preferences, UiTaskExecutor taskExecutor)
|
| pack-priv | DownloadFullTextAction(DialogService dialogService, StateManager stateManager, GuiPreferences preferences, UiTaskExecutor taskExecutor, Function<BibEntry, Optional<FetcherResult>> fullTextFinder)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addLinkedFileFromURL(BibDatabaseContext
the active database databaseContext, FetcherResult the fetcher result containing the URL and any required download headers result, BibEntry the entry "value" entry)This method attaches a linked file from a URL (if not already linked) to an entry using the key and value pair from the findFullTexts map and then downloads the file into the given targetDirectory |
| private void | downloadFullTexts(List<DownloadFullTextAction.
|
| public void | |
| private void |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| fullTextFinder | back to summary |
|---|---|
| private final Function<BibEntry, Optional<FetcherResult>> fullTextFinder | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| preferences | back to summary |
|---|---|
| private final GuiPreferences preferences | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| taskExecutor | back to summary |
|---|---|
| private final UiTaskExecutor taskExecutor | |
| WARNING_LIMIT | back to summary |
|---|---|
| private static final int WARNING_LIMIT | |
| DownloadFullTextAction | back to summary |
|---|---|
| public DownloadFullTextAction(DialogService dialogService, StateManager stateManager, GuiPreferences preferences, UiTaskExecutor taskExecutor) | |
| DownloadFullTextAction | back to summary |
|---|---|
| pack-priv DownloadFullTextAction(DialogService dialogService, StateManager stateManager, GuiPreferences preferences, UiTaskExecutor taskExecutor, Function<BibEntry, Optional<FetcherResult>> fullTextFinder) | |
| addLinkedFileFromURL | back to summary |
|---|---|
| pack-priv void addLinkedFileFromURL(BibDatabaseContext databaseContext, FetcherResult result, BibEntry entry) This method attaches a linked file from a URL (if not already linked) to an entry using the key and value pair from the findFullTexts map and then downloads the file into the given targetDirectory
| |
| downloadFullTexts | back to summary |
|---|---|
| private void downloadFullTexts(List<DownloadFullTextAction. | |
| execute | back to summary |
|---|---|
public void execute()
| |
| execute | back to summary |
|---|---|
| private void execute(BibDatabaseContext databaseContext) | |
| Modifier and Type | Field and Description |
|---|---|
| private final BibEntry | |
| private final BibEntry | lookupSnapshot
Record Component accessed by lookupSnapshot(). |
| private final Optional |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public BibEntry | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public BibEntry | |
| public Optional | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| entry | back to summary |
|---|---|
| private final BibEntry entry Record Component accessed by entry(). | |
| lookupSnapshot | back to summary |
|---|---|
| private final BibEntry lookupSnapshot Record Component accessed by lookupSnapshot(). | |
| result | back to summary |
|---|---|
| private final Optional<FetcherResult> result Record Component accessed by result(). | |
| EntryDownload | back to summary |
|---|---|
| private EntryDownload(BibEntry entry, BibEntry lookupSnapshot, Optional<FetcherResult> result) | |
| entry | back to summary |
|---|---|
| public BibEntry entry() Record Component getter of entry. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| lookupSnapshot | back to summary |
|---|---|
| public BibEntry lookupSnapshot() Record Component getter of lookupSnapshot. | |
| result | back to summary |
|---|---|
| public Optional Record Component getter of result. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |