-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename LoadNormXmlUseCase to LoadRegelungstextXmlUseCase
RISDEV-6261
- Loading branch information
1 parent
c9d17ed
commit 344a5ae
Showing
9 changed files
with
92 additions
and
94 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
28 changes: 0 additions & 28 deletions
28
...main/java/de/bund/digitalservice/ris/norms/application/port/input/LoadNormXmlUseCase.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
.../de/bund/digitalservice/ris/norms/application/port/input/LoadRegelungstextXmlUseCase.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 de.bund.digitalservice.ris.norms.application.port.input; | ||
|
||
import de.bund.digitalservice.ris.norms.domain.entity.Regelungstext; | ||
import de.bund.digitalservice.ris.norms.domain.entity.eli.DokumentEli; | ||
import java.util.Optional; | ||
|
||
/** | ||
* Interface representing the use case for loading the xml representation of a {@link Regelungstext}. | ||
*/ | ||
public interface LoadRegelungstextXmlUseCase { | ||
/** | ||
* Retrieves the xml representation of a dokument based on the provided query. | ||
* | ||
* @param query The query containing the ELI (European Legislation Identifier) of the dokument. | ||
* @return An {@link Optional} containing the loaded {@link Regelungstext} if found, or empty if not found. | ||
*/ | ||
String loadRegelungstextXml(Query query); | ||
|
||
/** | ||
* A record representing the query for loading the xml representation of a dokument. | ||
* | ||
* @param eli The ELI (European Legislation Identifier) used to identify the dokument in the query. | ||
*/ | ||
record Query(DokumentEli eli) {} | ||
} |
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