| Modifier and Type | Class and Description |
|---|---|
| pack-priv static record | |
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| private final ExternalFilesContentImporter | |
| private final DialogService | |
| private boolean | |
| private final Deque | |
| private static final Set | |
| private final ExternalFilesEntryLinker | |
| private static final String | |
| private final FilePreferences | |
| private final FileUpdateMonitor | |
| private final ImportFormatReader | |
| private static final Logger | |
| private final GuiPreferences | |
| private DuplicateResolverDialog. | |
| private final StateManager | |
| private final BibDatabaseContext | |
| private final TaskExecutor | |
| private final UndoManager |
| Access | Constructor and Description |
|---|---|
| public | ImportHandler(BibDatabaseContext targetBibDatabaseContext, GuiPreferences preferences, FileUpdateMonitor fileupdateMonitor, UndoManager undoManager, StateManager stateManager, DialogService dialogService, TaskExecutor taskExecutor)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private BibEntry | adjustLinkedFilesForTargetIfRequired(@Nullable TransferInformation transferInformation, BibEntry entry)
|
| public boolean | canImportAsBibEntry(Path file)
Checks whether the given file should be imported as bibliographic entries rather than attached as a file to an existing entry. |
| pack-priv BibEntry | |
| private void | continueImportAfterDuplicateHandling(@Nullable TransferInformation transferInformation, BibEntry entryForImport, EntryImportHandlerTracker tracker)
|
| pack-priv ImportHandler. | |
| private BibEntry | |
| public void | |
| private void | |
| public Optional | |
| private void | generateKeys(List<BibEntry>
entries to generate keys for entries)Generate keys for given entries if globally configured - or citation key is empty |
| public CompletableFuture | getDuplicateDecision(BibEntry originalEntry, BibEntry duplicateEntry, DuplicateResolverDialog.
|
| public ExternalFilesEntryLinker | |
| public @NonNull List | |
| private @NonNull Optional | handleDecisionResult(BibEntry originalEntry, BibEntry duplicateEntry, DuplicateDecisionResult decisionResult)
|
| public CompletableFuture | handleDuplicates(BibEntry originalEntry, BibEntry duplicateEntry, DuplicateResolverDialog.
|
| private List | |
| public List | |
| public void | importCleanedEntries(@Nullable TransferInformation transferInformation, List<BibEntry> entries)
Adds already cleaned entries to the library, as one undo step. |
| public void | |
| public void | importEntriesWithDuplicateCheck(@Nullable TransferInformation transferInformation, List<BibEntry> entriesToAdd)
|
| public void | importEntriesWithDuplicateCheck(@Nullable TransferInformation transferInformation, List<BibEntry> entriesToAdd, EntryImportHandlerTracker tracker)
|
| public void | |
| private void | importEntryWithDuplicateCheck(@Nullable TransferInformation transferInformation, BibEntry
the entry to import (original will not be modified) entry, DuplicateResolverDialog.the duplicate resolution strategy to apply decision,tracks the import status of the entry tracker)Imports an entry into the database with duplicate checking and handling. |
| public org.jabref.logic.util.BackgroundTask | |
| public void | |
| private void | insertImported(List<BibEntry> entriesToAdd, UndoSuspension suspended)
Inserts the imported entries and releases the library the import held. |
| private void | |
| private void | removeReplacedDuplicate(BibEntry duplicateEntry)
Removes the entry that the import replaces or merges into, recording it. |
| private void | |
| private DuplicateDecisionResult | resolveDuplicateDecision(BibEntry originalEntry, BibEntry duplicateEntry, DuplicateResolverDialog.
|
| public void | |
| private List |
| contentImporter | back to summary |
|---|---|
| private final ExternalFilesContentImporter contentImporter | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| duplicateDecisionDialogInProgress | back to summary |
|---|---|
| private boolean duplicateDecisionDialogInProgress | |
| duplicateDecisionRequests | back to summary |
|---|---|
| private final Deque<ImportHandler. | |
| EXCLUDED_CENTER_DROP_EXTENSIONS | back to summary |
|---|---|
| private static final Set<String> EXCLUDED_CENTER_DROP_EXTENSIONS | |
| fileLinker | back to summary |
|---|---|
| private final ExternalFilesEntryLinker fileLinker | |
| FILENAME_FALLBACK | back to summary |
|---|---|
| private static final String FILENAME_FALLBACK | |
| filePreferences | back to summary |
|---|---|
| private final FilePreferences filePreferences | |
| fileUpdateMonitor | back to summary |
|---|---|
| private final FileUpdateMonitor fileUpdateMonitor | |
| importFormatReader | back to summary |
|---|---|
| private final ImportFormatReader importFormatReader | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| preferences | back to summary |
|---|---|
| private final GuiPreferences preferences | |
| rememberedBatchDuplicateDecision | back to summary |
|---|---|
| private DuplicateResolverDialog. | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| targetBibDatabaseContext | back to summary |
|---|---|
| private final BibDatabaseContext targetBibDatabaseContext | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| undoManager | back to summary |
|---|---|
| private final UndoManager undoManager | |
| ImportHandler | back to summary |
|---|---|
| public ImportHandler(BibDatabaseContext targetBibDatabaseContext, GuiPreferences preferences, FileUpdateMonitor fileupdateMonitor, UndoManager undoManager, StateManager stateManager, DialogService dialogService, TaskExecutor taskExecutor) | |
| addToGroups | back to summary |
|---|---|
| private void addToGroups(List<BibEntry> entries, Collection<GroupTreeNode> groups) | |
| addToImportEntriesGroup | back to summary |
|---|---|
| private void addToImportEntriesGroup(List<BibEntry> entriesToInsert) | |
| adjustLinkedFilesForTargetIfRequired | back to summary |
|---|---|
| private BibEntry adjustLinkedFilesForTargetIfRequired(@Nullable TransferInformation transferInformation, BibEntry entry) | |
| canImportAsBibEntry | back to summary |
|---|---|
| public boolean canImportAsBibEntry(Path file) Checks whether the given file should be imported as bibliographic entries rather than attached as a file to an existing entry. Excludes PDFs and generic document/data file extensions (.txt, .xml, .yml, .yaml) which are intended to be attached as files. | |
| cleanUpEntry | back to summary |
|---|---|
pack-priv BibEntry cleanUpEntry(BibEntry entry)
| |
| continueImportAfterDuplicateHandling | back to summary |
|---|---|
| private void continueImportAfterDuplicateHandling(@Nullable TransferInformation transferInformation, BibEntry entryForImport, EntryImportHandlerTracker tracker) | |
| createAutoDetectionImportOutcome | back to summary |
|---|---|
| pack-priv ImportHandler. | |
| createEmptyEntryWithLink | back to summary |
|---|---|
| private BibEntry createEmptyEntryWithLink(Path file) | |
| downloadLinkedFiles | back to summary |
|---|---|
| public void downloadLinkedFiles(BibEntry entry) | |
| enqueueDuplicateDecisionRequest | back to summary |
|---|---|
| private void enqueueDuplicateDecisionRequest(ImportHandler. | |
| findDuplicate | back to summary |
|---|---|
| public Optional | |
| generateKeys | back to summary |
|---|---|
| private void generateKeys(List<BibEntry> entries) Generate keys for given entries if globally configured - or citation key is empty | |
| getDuplicateDecision | back to summary |
|---|---|
| public CompletableFuture | |
| getFileLinker | back to summary |
|---|---|
| public ExternalFilesEntryLinker getFileLinker() | |
| handleBibTeXData | back to summary |
|---|---|
| public @NonNull List | |
| handleDecisionResult | back to summary |
|---|---|
| private @NonNull Optional | |
| handleDuplicates | back to summary |
|---|---|
| public CompletableFuture | |
| handlePdfUrl | back to summary |
|---|---|
| private List | |
| handleStringData | back to summary |
|---|---|
| public List | |
| importCleanedEntries | back to summary |
|---|---|
| public void importCleanedEntries(@Nullable TransferInformation transferInformation, List<BibEntry> entries) Adds already cleaned entries to the library, as one undo step. The step is opened here rather than left to the caller, because this is where the entries reach the library: a caller that forgot would insert entries the journal knows nothing about, which is a library that says it needs no saving. The group assignment this sets off joins the same step, so taking the import back takes the assignments with it. | |
| importEntries | back to summary |
|---|---|
| public void importEntries(List<BibEntry> entries) Cleans up the given entries and adds them to the library. Actions include generating a citation key if configured | |
| importEntriesWithDuplicateCheck | back to summary |
|---|---|
| public void importEntriesWithDuplicateCheck(@Nullable TransferInformation transferInformation, List<BibEntry> entriesToAdd) | |
| importEntriesWithDuplicateCheck | back to summary |
|---|---|
| public void importEntriesWithDuplicateCheck(@Nullable TransferInformation transferInformation, List<BibEntry> entriesToAdd, EntryImportHandlerTracker tracker) | |
| importEntryWithDuplicateCheck | back to summary |
|---|---|
| public void importEntryWithDuplicateCheck(@Nullable TransferInformation transferInformation, BibEntry entry) | |
| importEntryWithDuplicateCheck | back to summary |
|---|---|
| private void importEntryWithDuplicateCheck(@Nullable TransferInformation transferInformation, BibEntry entry, DuplicateResolverDialog. Imports an entry into the database with duplicate checking and handling. Creates a copy of the entry for processing - the original entry parameter is not modified. The copied entry may be modified during cleanup and duplicate handling.
| |
| importFilesInBackground | back to summary |
|---|---|
| public org.jabref.logic.util.BackgroundTask | |
| importStringConstantsWithDuplicateCheck | back to summary |
|---|---|
| public void importStringConstantsWithDuplicateCheck(Collection<BibtexString> stringConstants) | |
| insertImported | back to summary |
|---|---|
| private void insertImported(List<BibEntry> entriesToAdd, UndoSuspension suspended) Inserts the imported entries and releases the library the import held.
| |
| processDuplicateDecisionQueue | back to summary |
|---|---|
| private void processDuplicateDecisionQueue() | |
| removeReplacedDuplicate | back to summary |
|---|---|
| private void removeReplacedDuplicate(BibEntry duplicateEntry) Removes the entry that the import replaces or merges into, recording it. Its own step, because it happens well before the import it makes room for — the decision is asked of the user asynchronously. Undoing the import therefore takes the imported entry back out, and undoing once more brings the replaced entry back, rather than leaving the library without either. | |
| resetBatchDuplicateDecisionState | back to summary |
|---|---|
| private void resetBatchDuplicateDecisionState() | |
| resolveDuplicateDecision | back to summary |
|---|---|
| private DuplicateDecisionResult resolveDuplicateDecision(BibEntry originalEntry, BibEntry duplicateEntry, DuplicateResolverDialog. | |
| setAutomaticFields | back to summary |
|---|---|
| public void setAutomaticFields(List<BibEntry> entries) | |
| tryImportFormats | back to summary |
|---|---|
| private List | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | entriesToAdd
Record Component accessed by entriesToAdd(). |
| private final String | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public String | |
| public boolean | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| entriesToAdd | back to summary |
|---|---|
| private final List<BibEntry> entriesToAdd Record Component accessed by entriesToAdd(). | |
| message | back to summary |
|---|---|
| private final String message Record Component accessed by message(). | |
| success | back to summary |
|---|---|
| private final boolean success Record Component accessed by success(). | |
| AutoDetectionImportOutcome | back to summary |
|---|---|
| pack-priv AutoDetectionImportOutcome(List<BibEntry> entriesToAdd, boolean success, String message) | |
| entriesToAdd | back to summary |
|---|---|
| public List Record Component getter of entriesToAdd. | |
| 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 | |
| message | back to summary |
|---|---|
| public String message() Record Component getter of message. | |
| success | back to summary |
|---|---|
| public boolean success() Record Component getter of success. | |
| 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. | |
| Modifier and Type | Field and Description |
|---|---|
| private final DuplicateResolverDialog. | decision
Record Component accessed by decision(). |
| private final BibEntry | duplicateEntry
Record Component accessed by duplicateEntry(). |
| private final BibEntry | originalEntry
Record Component accessed by originalEntry(). |
| private final CompletableFuture |
| Access | Constructor and Description |
|---|---|
| private | DuplicateDecisionRequest(BibEntry originalEntry, BibEntry duplicateEntry, DuplicateResolverDialog.
|
| private | DuplicateDecisionRequest(BibEntry originalEntry, BibEntry duplicateEntry, DuplicateResolverDialog.
|
| Modifier and Type | Method and Description |
|---|---|
| public DuplicateResolverDialog. | |
| 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 CompletableFuture | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| decision | back to summary |
|---|---|
| private final DuplicateResolverDialog. Record Component accessed by decision(). | |
| duplicateEntry | back to summary |
|---|---|
| private final BibEntry duplicateEntry Record Component accessed by duplicateEntry(). | |
| originalEntry | back to summary |
|---|---|
| private final BibEntry originalEntry Record Component accessed by originalEntry(). | |
| result | back to summary |
|---|---|
| private final CompletableFuture<DuplicateDecisionResult> result Record Component accessed by result(). | |
| DuplicateDecisionRequest | back to summary |
|---|---|
| private DuplicateDecisionRequest(BibEntry originalEntry, BibEntry duplicateEntry, DuplicateResolverDialog. | |
| DuplicateDecisionRequest | back to summary |
|---|---|
| private DuplicateDecisionRequest(BibEntry originalEntry, BibEntry duplicateEntry, DuplicateResolverDialog. | |
| decision | back to summary |
|---|---|
| public DuplicateResolverDialog. Record Component getter of decision. | |
| duplicateEntry | back to summary |
|---|---|
| public BibEntry duplicateEntry() Record Component getter of duplicateEntry. | |
| 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 | |
| originalEntry | back to summary |
|---|---|
| public BibEntry originalEntry() Record Component getter of originalEntry. | |
| result | back to summary |
|---|---|
| public CompletableFuture 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. | |