-
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.
Showing
6 changed files
with
69 additions
and
23 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
26 changes: 26 additions & 0 deletions
26
.../main/java/de/bund/digitalservice/ris/norms/application/port/output/LoadArticlesPort.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,26 @@ | ||
package de.bund.digitalservice.ris.norms.application.port.output; | ||
|
||
import de.bund.digitalservice.ris.norms.domain.entity.Article; | ||
import java.util.List; | ||
|
||
/** Port interface for loading all articles of a given amending law from the storage. */ | ||
public interface LoadArticlesPort { | ||
|
||
/** | ||
* Loads all {@link Article}s available in the system of a given amending law. | ||
* | ||
* @param command The command specifying the ELI to identify the amending law of the articles to | ||
* be loaded. | ||
* @return A {@link List} of {@link Article}, which may be empty if no articles are found. | ||
*/ | ||
List<Article> loadArticlesByAmendingLaw(final Command command); | ||
|
||
/** | ||
* A record representing the command for loading articles. The command includes the ELI (European | ||
* Legislation Identifier) to identify the amending law. | ||
* | ||
* @param eli The ELI (European Legislation Identifier) used to identify the amending law in the | ||
* command. | ||
*/ | ||
record Command(String 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