|
8 | 8 |
|
9 | 9 | /** A POJO with the configs for MServer. */ |
10 | 10 | public class MServerConfigDTO extends MServerBasicConfigDTO implements ConfigDTO { |
| 11 | + private MServerDBConfig databaseConfig; |
11 | 12 | private final MServerCopySettings copySettings; |
12 | 13 | private final Boolean writeFilmlistHashFileEnabled; |
13 | 14 | private final String filmlistHashFilePath; |
14 | 15 | private final Boolean writeFilmlistIdFileEnabled; |
15 | 16 | private final String filmlistIdFilePath; |
16 | | - private final MServerDBConfig mServerDBConfig; |
| 17 | + |
17 | 18 | /** ignore certain film by title **/ |
18 | 19 | private String ignoreFilmlistPath; |
19 | 20 | /** add livestreams from external list **/ |
@@ -49,7 +50,7 @@ public MServerConfigDTO() { |
49 | 50 | filmlistSavePaths = new EnumMap<>(FilmlistFormats.class); |
50 | 51 | filmlistDiffSavePaths = new EnumMap<>(FilmlistFormats.class); |
51 | 52 | copySettings = new MServerCopySettings(); |
52 | | - mServerDBConfig = new MServerDBConfig(); |
| 53 | + databaseConfig = new MServerDBConfig(); |
53 | 54 | logSettings = new MServerLogSettingsDTO(); |
54 | 55 | crawlerURLs = new EnumMap<>(CrawlerUrlType.class); |
55 | 56 |
|
@@ -245,8 +246,12 @@ public List<ImportFilmlistConfiguration> getImportFilmlistConfigurations() { |
245 | 246 | return importFilmlistConfigurations; |
246 | 247 | } |
247 | 248 |
|
248 | | - public MServerDBConfig getMServerDBConfig() { |
249 | | - return mServerDBConfig; |
| 249 | + public MServerDBConfig getDatabaseConfig() { |
| 250 | + return databaseConfig; |
| 251 | + } |
| 252 | + |
| 253 | + public void setDatabaseConfig(MServerDBConfig databaseConfig) { |
| 254 | + this.databaseConfig = databaseConfig; |
250 | 255 | } |
251 | 256 |
|
252 | 257 | /** |
@@ -293,7 +298,7 @@ public boolean equals(final Object o) { |
293 | 298 | && Objects.equals(getIgnoreFilmslistPath(), that.getIgnoreFilmslistPath()) |
294 | 299 | && Objects.equals(getImportLivestreamConfiguration(), that.getImportLivestreamConfiguration()) |
295 | 300 | && Objects.equals(getImportFilmlistConfigurations(), that.getImportFilmlistConfigurations()) |
296 | | - && Objects.equals(getMServerDBConfig(), that.getMServerDBConfig()); |
| 301 | + && Objects.equals(getDatabaseConfig(), that.getDatabaseConfig()); |
297 | 302 | } |
298 | 303 |
|
299 | 304 | @Override |
@@ -321,7 +326,7 @@ public int hashCode() { |
321 | 326 | getIgnoreFilmslistPath(), |
322 | 327 | getImportLivestreamConfiguration(), |
323 | 328 | getImportFilmlistConfigurations(), |
324 | | - getMServerDBConfig()); |
| 329 | + getDatabaseConfig()); |
325 | 330 | } |
326 | 331 |
|
327 | 332 | public void initializeSenderConfigurations() { |
|
0 commit comments