Verified Owner
Top Fields Constructors Methods
org.jabref.gui.pseudonymize

public Class PseudonymizeAction

extends SimpleCommand
Class Inheritance
Imports
java.io.IOException, java.nio.charset.StandardCharsets, java.nio.file.Files, .Path, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.actions.ActionHelper, .SimpleCommand, org.jabref.gui.util.DirectoryDialogConfiguration, org.jabref.logic.exporter.AtomicFileWriter, .BibDatabaseWriter, org.jabref.logic.l10n.Localization, org.jabref.logic.preferences.CliPreferences, org.jabref.logic.pseudonymization.Pseudonymization, .PseudonymizationResultCsvWriter, org.jabref.logic.util.io.FileUtil, org.jabref.model.database.BibDatabaseContext, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private final DialogService
private static final Logger
private final CliPreferences
private static final String
private final StateManager
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
PseudonymizeAction(StateManager stateManager, DialogService dialogService, CliPreferences preferences)

Method Summary

Modifier and TypeMethod and Description
private boolean
confirmOverride(Path pseudoBibPath, Path pseudoCsvPath, Path outputFilePath)

public void
private void
exportPseudonymBibFile(Path pseudoBibPath, Result result)

private void
exportPseudonymKeyCsv(Path pseudoCsvPath, Result result)

private void
pseudonymizeDatabase(Path outputFilePath)

Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

BIB_EXTENSIONback to summary
private static final String BIB_EXTENSION
CSV_EXTENSIONback to summary
private static final String CSV_EXTENSION
dialogServiceback to summary
private final DialogService dialogService
LOGGERback to summary
private static final Logger LOGGER
preferencesback to summary
private final CliPreferences preferences
PSEUDO_SUFFIXback to summary
private static final String PSEUDO_SUFFIX
stateManagerback to summary
private final StateManager stateManager

Constructor Detail

PseudonymizeActionback to summary
public PseudonymizeAction(StateManager stateManager, DialogService dialogService, CliPreferences preferences)

Method Detail

confirmOverrideback to summary
private boolean confirmOverride(Path pseudoBibPath, Path pseudoCsvPath, Path outputFilePath)
executeback to summary
public void execute()
Annotations
@Override
exportPseudonymBibFileback to summary
private void exportPseudonymBibFile(Path pseudoBibPath, Result result) throws IOException
exportPseudonymKeyCsvback to summary
private void exportPseudonymKeyCsv(Path pseudoCsvPath, Result result) throws IOException
pseudonymizeDatabaseback to summary
private void pseudonymizeDatabase(Path outputFilePath)