diff --git a/LocationDTO.java b/LocationDTO.java
deleted file mode 100644
index e13247b..0000000
--- a/LocationDTO.java
+++ /dev/null
@@ -1,81 +0,0 @@
-package de.avatic.lcc.dto.generic;
-
-import java.util.Objects;
-
-/**
- * Represents a geographical location with latitude and longitude.
- * This immutable DTO (Data Transfer Object) is used to transfer location data across system layers.
- */
-public class LocationDTO {
-
- /**
- * The latitude of the location.
- * Positive values indicate north and negative values indicate south.
- */
- private final double latitude;
-
- /**
- * The longitude of the location.
- * Positive values indicate east and negative values indicate west.
- */
- private final double longitude;
-
- /**
- * Constructs a new {@code LocationDTO} with the specified latitude and longitude.
- *
- * @param latitude the latitude of the location, where north is positive and south is negative
- * @param longitude the longitude of the location, where east is positive and west is negative
- */
- public LocationDTO(double latitude, double longitude) {
- this.latitude = latitude;
- this.longitude = longitude;
- }
-
- /**
- * Default constructor for creating a {@code LocationDTO} at origin (0,0).
- * Required for frameworks that use default constructors.
- */
- public LocationDTO() {
- this(0.0, 0.0);
- }
-
- /**
- * Gets the latitude of the location.
- *
- * @return the latitude, where positive values indicate north and negative values indicate south
- */
- public double getLatitude() {
- return latitude;
- }
-
- /**
- * Gets the longitude of the location.
- *
- * @return the longitude, where positive values indicate east and negative values indicate west
- */
- public double getLongitude() {
- return longitude;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- LocationDTO that = (LocationDTO) o;
- return Double.compare(that.latitude, latitude) == 0 &&
- Double.compare(that.longitude, longitude) == 0;
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(latitude, longitude);
- }
-
- @Override
- public String toString() {
- return "LocationDTO{" +
- "latitude=" + latitude +
- ", longitude=" + longitude +
- '}';
- }
-}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 8113385..13da216 100644
--- a/pom.xml
+++ b/pom.xml
@@ -83,10 +83,17 @@
org.apache.poi
poi
+ 5.4.1
org.apache.poi
poi-ooxml
+ 5.4.1
+
+
+ org.dhatim
+ fastexcel
+ 0.18.4
diff --git a/src/main/java/de/avatic/lcc/controller/bulk/BulkOperationController.java b/src/main/java/de/avatic/lcc/controller/bulk/BulkOperationController.java
index 9503761..5eca2be 100644
--- a/src/main/java/de/avatic/lcc/controller/bulk/BulkOperationController.java
+++ b/src/main/java/de/avatic/lcc/controller/bulk/BulkOperationController.java
@@ -6,7 +6,7 @@ import de.avatic.lcc.dto.bulk.BulkProcessingType;
import de.avatic.lcc.dto.bulk.BulkStatus;
import de.avatic.lcc.service.bulk.BulkExportService;
import de.avatic.lcc.service.bulk.BulkFileProcessingService;
-import de.avatic.lcc.service.bulk.TemplateGenerationService;
+import de.avatic.lcc.service.bulk.TemplateExportService;
import org.springframework.core.io.InputStreamResource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
@@ -24,12 +24,12 @@ import org.springframework.web.multipart.MultipartFile;
public class BulkOperationController {
private final BulkFileProcessingService bulkProcessingService;
- private final TemplateGenerationService templateGenerationService;
+ private final TemplateExportService templateExportService;
private final BulkExportService bulkExportService;
- public BulkOperationController(BulkFileProcessingService bulkProcessingService, TemplateGenerationService templateGenerationService, BulkExportService bulkExportService) {
+ public BulkOperationController(BulkFileProcessingService bulkProcessingService, TemplateExportService templateExportService, BulkExportService bulkExportService) {
this.bulkProcessingService = bulkProcessingService;
- this.templateGenerationService = templateGenerationService;
+ this.templateExportService = templateExportService;
this.bulkExportService = bulkExportService;
}
@@ -75,7 +75,7 @@ public class BulkOperationController {
.ok()
.headers(headers)
.contentType(MediaType.parseMediaType("application/vnd.ms-excel"))
- .body(new InputStreamResource(templateGenerationService.generateTemplate(BulkFileType.valueOf(type.name().toUpperCase()))));
+ .body(new InputStreamResource(templateExportService.generateTemplate(BulkFileType.valueOf(type.name().toUpperCase()))));
}
/**
diff --git a/src/main/java/de/avatic/lcc/dto/configuration/nodes/view/NodeDetailDTO.java b/src/main/java/de/avatic/lcc/dto/configuration/nodes/view/NodeDetailDTO.java
index bb178d7..3e80159 100644
--- a/src/main/java/de/avatic/lcc/dto/configuration/nodes/view/NodeDetailDTO.java
+++ b/src/main/java/de/avatic/lcc/dto/configuration/nodes/view/NodeDetailDTO.java
@@ -19,7 +19,7 @@ public class NodeDetailDTO {
private LocationDTO location;
@JsonProperty("is_deprecated")
private Boolean isDeprecated;
- private Map predecessors;
+ private List