Verified Owner
Top Fields Constructors Methods
org.jabref.logic.citation

public Class SearchCitationsRelationsService

extends Object
Class Inheritance
Imports
java.net.URI, java.util.List, .Optional, java.util.function.BooleanSupplier, javafx.beans.property.ObjectProperty, org.jabref.logic.ai.chatting.ChatModel, org.jabref.logic.ai.preferences.AiPreferences, org.jabref.logic.bibtex.FieldPreferences, org.jabref.logic.citation.repository.BibEntryCitationsAndReferencesRepository, .BibEntryCitationsAndReferencesRepositoryShell, org.jabref.logic.citationkeypattern.CitationKeyPatternPreferences, org.jabref.logic.importer.FetcherException, .ImportFormatPreferences, .ImporterPreferences, org.jabref.logic.importer.fetcher.citation.CitationCountFetcher, .CitationCountFetcherType, .CitationFetcher, .CitationFetcherType, org.jabref.logic.importer.util.GrobidPreferences, org.jabref.logic.util.Directories, .NotificationService, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, com.google.common.annotations.VisibleForTesting, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private volatile CitationCountFetcher
private volatile CitationFetcher
private static final Logger
private final BibEntryCitationsAndReferencesRepository

Constructor Summary

AccessConstructor and Description
public
SearchCitationsRelationsService(ImporterPreferences importerPreferences, ImportFormatPreferences importFormatPreferences, FieldPreferences fieldPreferences, ObjectProperty<CitationFetcherType> citationFetcherTypeProperty, ObjectProperty<CitationCountFetcherType> citationCountFetcherTypeProperty, CitationKeyPatternPreferences citationKeyPatternPreferences, GrobidPreferences grobidPreferences, AiPreferences aiPreferences, ChatModel chatModel, BibEntryTypesManager entryTypesManager, NotificationService notificationService)

pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public int
getCitationCount(BibEntry citationCounted, Optional<String> actualFieldValue)

public Optional<URI>
public Optional<URI>
public boolean
public boolean
public List<BibEntry>
searchCitedBy(BibEntry cited, boolean bypassCache)

If the store was empty and nothing was fetch in any case (empty fetch, or error) then yes => empty list If the store was not empty and nothing was fetched after a successful fetch => the store will be erased and the returned collection will be empty If the store was not empty and an error occurs while fetching => will return the content of the store

public List<BibEntry>
searchCitedBy(BibEntry cited, boolean bypassCache, BooleanSupplier isCancelled)

public List<BibEntry>
searchCites(BibEntry referencing, boolean bypassCache)

public List<BibEntry>
searchCites(BibEntry referencing, boolean bypassCache, BooleanSupplier isCancelled)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

citationCountFetcherback to summary
private volatile CitationCountFetcher citationCountFetcher
citationFetcherback to summary
private volatile CitationFetcher citationFetcher
LOGGERback to summary
private static final Logger LOGGER
relationsRepositoryback to summary
private final BibEntryCitationsAndReferencesRepository relationsRepository

Constructor Detail

SearchCitationsRelationsServiceback to summary
public SearchCitationsRelationsService(ImporterPreferences importerPreferences, ImportFormatPreferences importFormatPreferences, FieldPreferences fieldPreferences, ObjectProperty<CitationFetcherType> citationFetcherTypeProperty, ObjectProperty<CitationCountFetcherType> citationCountFetcherTypeProperty, CitationKeyPatternPreferences citationKeyPatternPreferences, GrobidPreferences grobidPreferences, AiPreferences aiPreferences, ChatModel chatModel, BibEntryTypesManager entryTypesManager, NotificationService notificationService)
SearchCitationsRelationsServiceback to summary
pack-priv SearchCitationsRelationsService(CitationFetcher citationFetcher, BibEntryCitationsAndReferencesRepository repository)
Annotations
@VisibleForTesting

Method Detail

closeback to summary
public void close()
getCitationCountback to summary
public int getCitationCount(BibEntry citationCounted, Optional<String> actualFieldValue) throws FetcherException
getCitationsApiUriback to summary
public Optional<URI> getCitationsApiUri(BibEntry entry)
getReferencesApiUriback to summary
public Optional<URI> getReferencesApiUri(BibEntry entry)
isCitationsUpdatableback to summary
public boolean isCitationsUpdatable(BibEntry entry)
isReferencesUpdatableback to summary
public boolean isReferencesUpdatable(BibEntry entry)
searchCitedByback to summary
public List<BibEntry> searchCitedBy(BibEntry cited, boolean bypassCache) throws FetcherException

If the store was empty and nothing was fetch in any case (empty fetch, or error) then yes => empty list If the store was not empty and nothing was fetched after a successful fetch => the store will be erased and the returned collection will be empty If the store was not empty and an error occurs while fetching => will return the content of the store

searchCitedByback to summary
public List<BibEntry> searchCitedBy(BibEntry cited, boolean bypassCache, BooleanSupplier isCancelled) throws FetcherException
searchCitesback to summary
public List<BibEntry> searchCites(BibEntry referencing, boolean bypassCache) throws FetcherException
searchCitesback to summary
public List<BibEntry> searchCites(BibEntry referencing, boolean bypassCache, BooleanSupplier isCancelled) throws FetcherException