| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | adjustLinkedFilesForTarget(FilePreferences
File preferences for both contexts filePreferences, TransferInformation The source database context where files are currently located - and the transferMode transferInformation, BibDatabaseContext The target database context where files should be accessible targetContext, BibEntry The entry in the targetContext targetEntry)Adjusts linked files when copying entries from source to target context. |
| private static Optional | |
| pack-priv static Optional | Returns: Optional containing the primary directory path, or empty if none foundThe database context context, FilePreferences File preferences for the context filePreferences)Gets the primary directory path for the given context. |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| LinkedFileTransferHelper | back to summary |
|---|---|
| public LinkedFileTransferHelper() | |
| adjustLinkedFilesForTarget | back to summary |
|---|---|
| public static void adjustLinkedFilesForTarget(FilePreferences filePreferences, TransferInformation transferInformation, BibDatabaseContext targetContext, BibEntry targetEntry) Adjusts linked files when copying entries from source to target context. Files that are not reachable from the target context will be copied. Files in the target context whose relative paths differ from the source will have their paths adjusted. There is no need to know the source entry, because we are interested in the file paths only.
| |
| findInSubDirs | back to summary |
|---|---|
| private static Optional | |
| getPrimaryPath | back to summary |
|---|---|
| pack-priv static Optional Gets the primary directory path for the given context. This is a utility method extracted from the original implementation.
| |