| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static @NonNull BibDatabaseContext | getBibDatabaseContext(String
- also "demo" for the bundled Chocolate.bib demo library, and "current" for the active GUI database id, SrvStateManager srvStateManager, ImportFormatPreferences importFormatPreferences)Returns the Looks up the context from the state manager's open databases. |
| public static @NonNull Path | getLibraryPath(String id, SrvStateManager srvStateManager)
Returns the on-disk path of the library with the given id, looking it up in the
state manager's open databases (the same source as |
| public static List | openLibraryIds(SrvStateManager srvStateManager)
Returns ids of all libraries the state manager currently considers open. |
| public static Optional | parsePlainCitation(CliPreferences preferences, String citationText)
Parses a single plain-text bibliography reference into a |
| ServerUtils | back to summary |
|---|---|
| public ServerUtils() | |
| getBibDatabaseContext | back to summary |
|---|---|
| public static @NonNull BibDatabaseContext getBibDatabaseContext(String id, SrvStateManager srvStateManager, ImportFormatPreferences importFormatPreferences) throws IOException Returns the Looks up the context from the state manager's open databases. In stand-alone server
mode those are parsed once at startup and held for the lifetime of the process; in
GUI mode they are the user's open library tabs. Either way, the returned context is
the same object the state manager registered a
| |
| getLibraryPath | back to summary |
|---|---|
| public static @NonNull Path getLibraryPath(String id, SrvStateManager srvStateManager) Returns the on-disk path of the library with the given id, looking it up in the
state manager's open databases (the same source as
| |
| openLibraryIds | back to summary |
|---|---|
| public static List Returns ids of all libraries the state manager currently considers open. Used by every resource that operates across the open collection (libraries listing, batch query, ...). | |
| parsePlainCitation | back to summary |
|---|---|
| public static Optional Parses a single plain-text bibliography reference into a Shared by the | |