Add handling for "null" values in "BulkImport.BulkImportSource".

When setting an "application.yml" property to "null", then its value is registered as "empty". So, specifically for "BulkImport", where we do not want empty values, only nulls or valid values, convert the empty values to null, upon initialization.
This commit is contained in:
Lampros Smyrnaios 2024-06-14 12:32:39 +03:00
parent fc258e2e26
commit 3417e5c68c
1 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@ public class BulkImport {
}
public void setDatasourceID(String datasourceID) {
this.datasourceID = datasourceID;
this.datasourceID = (datasourceID.isEmpty() ? null : datasourceID);
}
public String getDatasourcePrefix() {
@ -88,7 +88,7 @@ public class BulkImport {
}
public void setDatasourcePrefix(String datasourcePrefix) {
this.datasourcePrefix = datasourcePrefix;
this.datasourcePrefix = (datasourcePrefix.isEmpty() ? null : datasourcePrefix);
}
public String getFulltextUrlPrefix() {
@ -96,7 +96,7 @@ public class BulkImport {
}
public void setFulltextUrlPrefix(String fulltextUrlPrefix) {
this.fulltextUrlPrefix = fulltextUrlPrefix;
this.fulltextUrlPrefix = (fulltextUrlPrefix.isEmpty() ? null : fulltextUrlPrefix);
}
public String getMimeType() {
@ -104,7 +104,7 @@ public class BulkImport {
}
public void setMimeType(String mimeType) {
this.mimeType = mimeType;
this.mimeType = (mimeType.isEmpty() ? null : mimeType);
}
public boolean getIsAuthoritative() {