| Modifier and Type | Class and Description |
|---|---|
| public static record |
| Modifier and Type | Field and Description |
|---|---|
| private final Function |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | SharedDatabaseSessionService(Function<String, DBMSConnectionProperties> connectionPropertiesFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| public List | getDatabasesToReconnect(LastFilesOpenedPreferences lastFilesOpenedPreferences)
Returns all shared databases remembered for reconnection, including databases with an empty password. |
| public void | persistConnections(Map<String, DatabaseConnectionProperties> sharedDatabases)
Persists the connection settings of the shared databases that remain open until quit is confirmed. |
| public void | restoreSharedDatabaseId(BibDatabaseContext databaseContext, String sharedDatabaseId)
Restores the identifier used to find a shared database's stored connection settings. |
| connectionPropertiesFactory | back to summary |
|---|---|
| private final Function<String, DBMSConnectionProperties> connectionPropertiesFactory | |
| SharedDatabaseSessionService | back to summary |
|---|---|
| public SharedDatabaseSessionService() | |
| SharedDatabaseSessionService | back to summary |
|---|---|
| pack-priv SharedDatabaseSessionService(Function<String, DBMSConnectionProperties> connectionPropertiesFactory) | |
| getDatabasesToReconnect | back to summary |
|---|---|
| public List Returns all shared databases remembered for reconnection, including databases with an empty password. | |
| persistConnections | back to summary |
|---|---|
| public void persistConnections(Map<String, DatabaseConnectionProperties> sharedDatabases) Persists the connection settings of the shared databases that remain open until quit is confirmed. | |
| restoreSharedDatabaseId | back to summary |
|---|---|
| public void restoreSharedDatabaseId(BibDatabaseContext databaseContext, String sharedDatabaseId) Restores the identifier used to find a shared database's stored connection settings. | |