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

pack-priv Class Pseudonymize

extends Object
implements Callable<Integer>
Class Inheritance
All Implemented Interfaces
java.util.concurrent.Callable
Annotations
@Command
name:pseudonymize
description:Perform pseudonymization of the library
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.concurrent.Callable, org.jabref.logic.importer.ParserResult, org.jabref.logic.l10n.Localization, org.jabref.logic.pseudonymization.Pseudonymization, .PseudonymizationResultCsvWriter, org.jabref.logic.util.io.FileUtil, org.jabref.model.database.BibDatabaseContext, org.jabref.toolkit.converter.CygWinPathConverter, org.jabref.toolkit.exception.ExportServiceException, .ImportServiceException, org.jabref.toolkit.service.ExportService, .ImportService, org.slf4j.Logger, .LoggerFactory, picocli.CommandLine.Command, .CommandLine.Mixin, .CommandLine.Option, .CommandLine.ParentCommand

Field Summary

Modifier and TypeField and Description
private JabKit
private static final String
private static final String
private boolean
private InputOption
private Path
private static final Logger
private Path
private static final String
private JabKit.SharedOptions

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 boolean
private Path
resolveOutputPath(Path customPath, Path inputPath, String defaultFileName)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

argumentProcessorback to summary
private JabKit argumentProcessor
Annotations
@ParentCommand
BIB_EXTENSIONback to summary
private static final String BIB_EXTENSION
CSV_EXTENSIONback to summary
private static final String CSV_EXTENSION
forceback to summary
private boolean force
Annotations
@Option
names:-f, --force
description:Overwrite output file(s) if any exist(s)
inputOptionback to summary
private InputOption inputOption
Annotations
@Mixin
keyFileback to summary
private Path keyFile
Annotations
@Option
names:--key
converter:CygWinPathConverter
description:Output pseudo-keys file
LOGGERback to summary
private static final Logger LOGGER
outputFileback to summary
private Path outputFile
Annotations
@Option
names:--output
converter:CygWinPathConverter
description:Output pseudo-bib file
PSEUDO_SUFFIXback to summary
private static final String PSEUDO_SUFFIX
sharedOptionsback to summary
private JabKit.SharedOptions sharedOptions
Annotations
@Mixin

Constructor Detail

Pseudonymizeback to summary
pack-priv Pseudonymize()

Method Detail

callback to summary
public Integer call() throws ImportServiceException, ExportServiceException

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
fileOverwriteCheckback to summary
private boolean fileOverwriteCheck(Path filePath)
resolveOutputPathback to summary
private Path resolveOutputPath(Path customPath, Path inputPath, String defaultFileName)