Top Description Fields Constructors Methods
org.jabref.gui.externalfiles

public Class DownloadFullTextAction

extends SimpleCommand
Class Inheritance
Imports
java.net.URL, java.util.List, .Map, .Optional, java.util.concurrent.ConcurrentHashMap, javafx.concurrent.Task, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.actions.ActionHelper, .SimpleCommand, org.jabref.gui.fieldeditors.LinkedFileViewModel, org.jabref.gui.util.TaskExecutor, org.jabref.logic.importer.FulltextFetchers, org.jabref.logic.l10n.Localization, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, .LinkedFile, org.jabref.preferences.PreferencesService, org.slf4j.Logger, .LoggerFactory

Try to download fulltext PDF for selected entry(ies) by following URL or DOI link.

Field Summary

Modifier and TypeField and Description
private final DialogService
private static final Logger
private final PreferencesService
private final StateManager
private final TaskExecutor
private static final int
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
DownloadFullTextAction(DialogService dialogService, StateManager stateManager, PreferencesService preferences, TaskExecutor taskExecutor)

Method Summary

Modifier and TypeMethod and Description
private void
addLinkedFileFromURL(BibDatabaseContext
the active database
databaseContext
,
URL
the url "key"
url
,
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
public void
Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

dialogServiceback to summary
private final DialogService dialogService
LOGGERback to summary
private static final Logger LOGGER
preferencesback to summary
private final PreferencesService preferences
stateManagerback to summary
private final StateManager stateManager
taskExecutorback to summary
private final TaskExecutor taskExecutor
WARNING_LIMITback to summary
private static final int WARNING_LIMIT

Constructor Detail

DownloadFullTextActionback to summary
public DownloadFullTextAction(DialogService dialogService, StateManager stateManager, PreferencesService preferences, TaskExecutor taskExecutor)

Method Detail

addLinkedFileFromURLback to summary
private void addLinkedFileFromURL(BibDatabaseContext databaseContext, URL url, 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

Parameters
databaseContext:BibDatabaseContext

the active database

url:URL

the url "key"

entry:BibEntry

the entry "value"

downloadFullTextsback to summary
private void downloadFullTexts(Map<BibEntry, Optional<URL>> downloads, BibDatabaseContext databaseContext)
executeback to summary
public void execute()
Annotations
@Override