| Modifier and Type | Field and Description |
|---|---|
| private final Exporter | |
| private final CliPreferences | |
| private final BibEntryTypesManager | |
| private final ExporterFactory | |
| private static final Logger | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ExportService | |
| private Exporter | |
| public void | exportBibDatabaseContextToFile(BibDatabaseContext databaseContext, List<BibEntry> matches, Path outputFile, String outputFormat)
|
| public void | |
| public void | |
| public void | |
| private static void | generateCitationKeys(BibDatabaseContext databaseContext, CitationKeyPatternPreferences citationKeyPatternPreferences)
Generates a citation key if there is no key existing |
| public List | |
| private Exporter | |
| private void | |
| public void | |
| public void | |
| private void | |
| private void | |
| public void | |
| public void | |
| public void | |
| private void | tryExportWithExporter(Exporter exporter, Path outputFile, BibDatabaseContext databaseContext, List<BibEntry> entries, List<Path> fileDirForDatabase)
|
| bibtexExporter | back to summary |
|---|---|
| private final Exporter bibtexExporter | |
| cliPreferences | back to summary |
|---|---|
| private final CliPreferences cliPreferences | |
| entryTypesManager | back to summary |
|---|---|
| private final BibEntryTypesManager entryTypesManager | |
| exporterFactory | back to summary |
|---|---|
| private final ExporterFactory exporterFactory | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| porcelain | back to summary |
|---|---|
| private final boolean porcelain | |
| ExportService | back to summary |
|---|---|
| public ExportService(CliPreferences cliPreferences, boolean porcelain) | |
| create | back to summary |
|---|---|
| public static ExportService create(CliPreferences cliPreferences, boolean porcelain) | |
| createBibtexExporter | back to summary |
|---|---|
| private Exporter createBibtexExporter() | |
| exportBibDatabaseContextToFile | back to summary |
|---|---|
| public void exportBibDatabaseContextToFile(BibDatabaseContext databaseContext, List<BibEntry> matches, Path outputFile, String outputFormat) throws ExportServiceException | |
| exportEntriesToFile | back to summary |
|---|---|
| public void exportEntriesToFile(List<BibEntry> entries, Path outputFile, String outputFormat) throws ExportServiceException | |
| exportParserResultToFile | back to summary |
|---|---|
| public void exportParserResultToFile(ParserResult parserResult, Path outputFile, String format) throws ExportServiceException | |
| exportParserResultToStdOut | back to summary |
|---|---|
| public void exportParserResultToStdOut(ParserResult parserResult, String format) throws ExportServiceException | |
| generateCitationKeys | back to summary |
|---|---|
| private static void generateCitationKeys(BibDatabaseContext databaseContext, CitationKeyPatternPreferences citationKeyPatternPreferences) Generates a citation key if there is no key existing | |
| getAvailableExportFormats | back to summary |
|---|---|
| public List | |
| getExporterByName | back to summary |
|---|---|
| private Exporter getExporterByName(String exporterId) throws ExportServiceException | |
| internalSaveDatabaseContext | back to summary |
|---|---|
| private void internalSaveDatabaseContext(BibDatabaseContext bibDatabaseContext, Path outputFile) throws IOException | |
| printBibEntriesToStdOut | back to summary |
|---|---|
| public void printBibEntriesToStdOut(List<BibEntry> entries) throws ExportServiceException | |
| printDatabaseContextToStdOut | back to summary |
|---|---|
| public void printDatabaseContextToStdOut(BibDatabaseContext bibDatabaseContext) throws ExportServiceException | |
| printErr | back to summary |
|---|---|
| private void printErr(String s) | |
| printOut | back to summary |
|---|---|
| private void printOut(String s) | |
| saveBibEntries | back to summary |
|---|---|
| public void saveBibEntries(List<BibEntry> matches, Path outputFile) throws ExportServiceException | |
| saveDatabase | back to summary |
|---|---|
| public void saveDatabase(BibDatabase newBase, Path outputFile) throws ExportServiceException | |
| saveDatabaseContext | back to summary |
|---|---|
| public void saveDatabaseContext(BibDatabaseContext bibDatabaseContext, Path outputFile) throws ExportServiceException | |
| tryExportWithExporter | back to summary |
|---|---|
| private void tryExportWithExporter(Exporter exporter, Path outputFile, BibDatabaseContext databaseContext, List<BibEntry> entries, List<Path> fileDirForDatabase) throws ExportServiceException | |