Verified Owner
Top Fields Constructors Methods
org.jabref.toolkit.commands

pack-priv Class PdfUpdate

extends Object
implements Callable<Integer>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Annotations
@Command
name:update
description:Update linked PDFs with XMP and/or embedded BibTeX.
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.List, java.util.concurrent.Callable, javax.xml.parsers.ParserConfigurationException, javax.xml.transform.TransformerException, org.jabref.logic.FilePreferences, org.jabref.logic.bibtex.FieldPreferences, org.jabref.logic.exporter.EmbeddedBibFilePdfExporter, .SaveException, .XmpPdfExporter, org.jabref.logic.importer.ParserResult, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.logic.l10n.Localization, org.jabref.logic.util.io.FileUtil, org.jabref.logic.xmp.XmpPreferences, org.jabref.model.database.BibDatabaseContext, .BibDatabaseMode, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, org.jabref.toolkit.exception.ImportServiceException, org.jabref.toolkit.service.ImportService, com.airhacks.afterburner.injection.Injector, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private List<String>
private List<String>
private String
private InputOption
private static final Logger
protected Pdf
private JabKit.SharedOptions
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Integer
call()

Implements java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

private static void
writeMetadataToPdf(List<ParserResult> loaded, List<Path> files, List<String> citationKeys, XmpPreferences xmpPreferences, FilePreferences filePreferences, BibDatabaseMode databaseMode, BibEntryTypesManager entryTypesManager, FieldPreferences fieldPreferences, JournalAbbreviationRepository abbreviationRepository, boolean writeXMP, boolean embeddBibfile)

private static void
writeMetadataToPdfByCitekey(BibDatabaseContext databaseContext, List<String> citeKeys, FilePreferences filePreferences, XmpPdfExporter xmpPdfExporter, EmbeddedBibFilePdfExporter embeddedBibFilePdfExporter, JournalAbbreviationRepository abbreviationRepository, boolean writeXMP, boolean embeddBibfile)

private static void
writeMetadataToPdfByFileNames(BibDatabaseContext databaseContext, List<Path> pdfs, FilePreferences filePreferences, XmpPdfExporter xmpPdfExporter, EmbeddedBibFilePdfExporter embeddedBibFilePdfExporter, JournalAbbreviationRepository abbreviationRepository, boolean writeXMP, boolean embeddBibfile)

private static void
writeMetadataToPDFsOfEntry(BibDatabaseContext databaseContext, String citeKey, BibEntry entry, FilePreferences filePreferences, XmpPdfExporter xmpPdfExporter, EmbeddedBibFilePdfExporter embeddedBibFilePdfExporter, JournalAbbreviationRepository abbreviationRepository, boolean writeXMP, boolean embedBibfile)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

citationKeysback to summary
private List<String> citationKeys
Annotations
@Option
names:-k, --citation-key
description:Citation keys
required:true
formatsback to summary
private List<String> formats
Annotations
@Option
names:--format
description:Format to update (xmp, bibtex-attachment)
split:,
inputFormatback to summary
private String inputFormat
Annotations
@Option
names:--input-format
description:Input format of the file
required:true
inputOptionback to summary
private InputOption inputOption
Annotations
@Mixin
LOGGERback to summary
private static final Logger LOGGER
pdfback to summary
protected Pdf pdf
Annotations
@ParentCommand
sharedOptionsback to summary
private JabKit.SharedOptions sharedOptions
Annotations
@Mixin
updateLinkedFilesback to summary
private boolean updateLinkedFiles
Annotations
@Option
names:--update-linked-files
description:Update linked files automatically.

Constructor Detail

PdfUpdateback to summary
pack-priv PdfUpdate()

Method Detail

callback to summary
public Integer call() throws ImportServiceException

Implements java.util.concurrent.Callable.call.

Doc from java.util.concurrent.Callable.call.

Computes a result, or throws an exception if unable to do so.

Annotations
@Override
writeMetadataToPdfback to summary
private static void writeMetadataToPdf(List<ParserResult> loaded, List<Path> files, List<String> citationKeys, XmpPreferences xmpPreferences, FilePreferences filePreferences, BibDatabaseMode databaseMode, BibEntryTypesManager entryTypesManager, FieldPreferences fieldPreferences, JournalAbbreviationRepository abbreviationRepository, boolean writeXMP, boolean embeddBibfile)
writeMetadataToPdfByCitekeyback to summary
private static void writeMetadataToPdfByCitekey(BibDatabaseContext databaseContext, List<String> citeKeys, FilePreferences filePreferences, XmpPdfExporter xmpPdfExporter, EmbeddedBibFilePdfExporter embeddedBibFilePdfExporter, JournalAbbreviationRepository abbreviationRepository, boolean writeXMP, boolean embeddBibfile)
writeMetadataToPdfByFileNamesback to summary
private static void writeMetadataToPdfByFileNames(BibDatabaseContext databaseContext, List<Path> pdfs, FilePreferences filePreferences, XmpPdfExporter xmpPdfExporter, EmbeddedBibFilePdfExporter embeddedBibFilePdfExporter, JournalAbbreviationRepository abbreviationRepository, boolean writeXMP, boolean embeddBibfile)
writeMetadataToPDFsOfEntryback to summary
private static void writeMetadataToPDFsOfEntry(BibDatabaseContext databaseContext, String citeKey, BibEntry entry, FilePreferences filePreferences, XmpPdfExporter xmpPdfExporter, EmbeddedBibFilePdfExporter embeddedBibFilePdfExporter, JournalAbbreviationRepository abbreviationRepository, boolean writeXMP, boolean embedBibfile)