Top Description Constructors Methods
org.jabref.gui.importer

public Class GrobidOptInDialogHelper

extends Object
Class Inheritance
Imports
org.jabref.gui.DialogService, org.jabref.logic.importer.fetcher.GrobidPreferences, org.jabref.logic.l10n.Localization

Metadata extraction from PDFs and plaintext works very well using Grobid, but we do not want to enable it by default due to data privacy concerns. To make users aware of the feature, we ask each time before querying Grobid, giving the option to opt-out.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean

Returns:

if the user enabled Grobid, either in the past or after being asked by the dialog.
showAndWaitIfUserIsUndecided
(DialogService
the DialogService to use
dialogService
,
GrobidPreferences preferences)

If Grobid is not enabled but the user has not explicitly opted-out of Grobid, we ask for permission to send data to Grobid using a dialog and giving an opt-out option.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GrobidOptInDialogHelperback to summary
public GrobidOptInDialogHelper()

Method Detail

showAndWaitIfUserIsUndecidedback to summary
public static boolean showAndWaitIfUserIsUndecided(DialogService dialogService, GrobidPreferences preferences)

If Grobid is not enabled but the user has not explicitly opted-out of Grobid, we ask for permission to send data to Grobid using a dialog and giving an opt-out option.

Parameters
dialogService:DialogService

the DialogService to use

Returns:boolean

if the user enabled Grobid, either in the past or after being asked by the dialog.