-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request 'release_1.1.9' (#13) from release_1.1.9 into master
- v1.1.11
- v1.1.10
- v1.1.9
- 2025-03-05_08-26-49_UTC
- 2025-02-13_06-53-52_UTC
- 2025-01-14_08-19-51_UTC
- 2024-12-03_14-19-20_UTC
- 2024-12-03_14-12-02_UTC
- 2024-12-02_08-34-05_UTC
- 2024-11-29_08-34-36_UTC
- 2024-11-29_08-19-04_UTC
- 2024-11-25_10-27-38_UTC
- 2024-11-25_10-26-34_UTC
- 2024-11-25_10-19-03_UTC
- 2024-11-25_10-01-10_UTC
- 2024-11-25_09-29-02_UTC
- 2024-11-25_08-59-25_UTC
- 2024-11-25_08-48-54_UTC
- 2024-11-25_08-28-47_UTC
- 2024-11-25_07-43-31_UTC
- 2024-11-22_13-38-09_UTC
- 2024-11-22_13-07-05_UTC
- 2024-11-22_13-06-45_UTC
- 2024-11-22_10-37-35_UTC
- 2024-11-21_10-09-15_UTC
- 2024-11-21_08-01-04_UTC
- 2024-11-21_07-57-17_UTC
- 2024-11-21_07-47-40_UTC
- 2024-11-19_11-03-52_UTC
- 2024-11-15_14-47-51_UTC
Showing
24 changed files
with
264 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
module-core/src/main/java/io/goobi/vocabulary/api/FieldDefinitionController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package io.goobi.vocabulary.api; | ||
|
||
import io.goobi.vocabulary.api.assemblers.FieldDefinitionAssembler; | ||
import io.goobi.vocabulary.exchange.FieldDefinition; | ||
import io.goobi.vocabulary.service.manager.FieldDefinitionDTOManager; | ||
import org.springframework.hateoas.EntityModel; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
@RequestMapping("/api/v1") | ||
public class FieldDefinitionController { | ||
private final FieldDefinitionDTOManager manager; | ||
private final FieldDefinitionAssembler assembler; | ||
|
||
public FieldDefinitionController(FieldDefinitionDTOManager manager, FieldDefinitionAssembler assembler) { | ||
this.manager = manager; | ||
this.assembler = assembler; | ||
} | ||
|
||
@GetMapping("/fieldDefinitions/{id}") | ||
public EntityModel<FieldDefinition> one(@PathVariable long id) { | ||
return assembler.toModel(manager.get(id)); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
module-core/src/main/java/io/goobi/vocabulary/api/MaintenanceController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
module-core/src/main/java/io/goobi/vocabulary/api/MonitoringController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
module-core/src/main/java/io/goobi/vocabulary/api/assemblers/FieldDefinitionAssembler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package io.goobi.vocabulary.api.assemblers; | ||
|
||
import io.goobi.vocabulary.api.FieldTypeController; | ||
import io.goobi.vocabulary.api.VocabularySchemaController; | ||
import io.goobi.vocabulary.exchange.FieldDefinition; | ||
import org.springframework.hateoas.EntityModel; | ||
import org.springframework.hateoas.server.RepresentationModelAssembler; | ||
import org.springframework.stereotype.Component; | ||
|
||
import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.linkTo; | ||
import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.methodOn; | ||
|
||
@Component | ||
public class FieldDefinitionAssembler implements RepresentationModelAssembler<FieldDefinition, EntityModel<FieldDefinition>> { | ||
@Override | ||
public EntityModel<FieldDefinition> toModel(FieldDefinition entity) { | ||
return EntityModel.of(entity, | ||
linkTo(methodOn(FieldTypeController.class).one(entity.getId())).withSelfRel(), | ||
linkTo(methodOn(VocabularySchemaController.class).one(entity.getSchemaId())).withRel("schema") | ||
); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ocabulary/maintenance/ManifestReader.java → ...y/service/maintenance/ManifestReader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
module-core/src/main/java/io/goobi/vocabulary/service/manager/FieldDefinitionDTOManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package io.goobi.vocabulary.service.manager; | ||
|
||
import io.goobi.vocabulary.exception.EntityNotFoundException; | ||
import io.goobi.vocabulary.exchange.FieldDefinition; | ||
import io.goobi.vocabulary.repositories.FieldDefinitionRepository; | ||
import io.goobi.vocabulary.service.exchange.DTOMapper; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class FieldDefinitionDTOManager { | ||
private final FieldDefinitionRepository fieldDefinitionRepository; | ||
private final DTOMapper modelMapper; | ||
|
||
public FieldDefinitionDTOManager(FieldDefinitionRepository fieldDefinitionRepository, DTOMapper modelMapper) { | ||
this.fieldDefinitionRepository = fieldDefinitionRepository; | ||
this.modelMapper = modelMapper; | ||
} | ||
|
||
public FieldDefinition get(long id) { | ||
return modelMapper.toDTO( | ||
fieldDefinitionRepository.findById(id) | ||
.orElseThrow(() -> new EntityNotFoundException(FieldDefinition.class, id)) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...bulary/maintenance/FlywayInformation.java → ...abulary/monitoring/FlywayInformation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.goobi.vocabulary.maintenance; | ||
package io.goobi.vocabulary.monitoring; | ||
|
||
import java.util.Date; | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
...abulary/maintenance/MonitoringResult.java → ...cabulary/monitoring/MonitoringResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package io.goobi.vocabulary.maintenance; | ||
package io.goobi.vocabulary.monitoring; | ||
|
||
import io.goobi.vocabulary.maintenance.selfcheck.SelfCheckResult; | ||
import io.goobi.vocabulary.monitoring.SelfCheckResult; | ||
|
||
public record MonitoringResult(MonitoringState monitoring, VersionsCollection versions, FlywayInformation flyway, SelfCheckResult selfCheck) { | ||
} |
2 changes: 1 addition & 1 deletion
2
...cabulary/maintenance/MonitoringState.java → ...ocabulary/monitoring/MonitoringState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.goobi.vocabulary.maintenance; | ||
package io.goobi.vocabulary.monitoring; | ||
|
||
public record MonitoringState(String database, String selfCheck) { | ||
} |
2 changes: 1 addition & 1 deletion
2
...aintenance/selfcheck/SelfCheckResult.java → ...ocabulary/monitoring/SelfCheckResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...intenance/selfcheck/ValidationResult.java → ...cabulary/monitoring/ValidationResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ulary/maintenance/VersionInformation.java → ...bulary/monitoring/VersionInformation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.goobi.vocabulary.maintenance; | ||
package io.goobi.vocabulary.monitoring; | ||
|
||
public record VersionInformation(String version, String hash) { | ||
} |
2 changes: 1 addition & 1 deletion
2
...ulary/maintenance/VersionsCollection.java → ...bulary/monitoring/VersionsCollection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.goobi.vocabulary.maintenance; | ||
package io.goobi.vocabulary.monitoring; | ||
|
||
public record VersionsCollection(VersionInformation core) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters