-
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.
Remove link between Announcements and Releases
RISDEV-0000
- Loading branch information
1 parent
f4d124c
commit eda5eeb
Showing
19 changed files
with
382 additions
and
342 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
26 changes: 26 additions & 0 deletions
26
...gitalservice/ris/norms/application/port/input/LoadReleasesByNormExpressionEliUseCase.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.input; | ||
|
||
import de.bund.digitalservice.ris.norms.domain.entity.Release; | ||
import de.bund.digitalservice.ris.norms.domain.entity.eli.NormExpressionEli; | ||
import java.util.List; | ||
|
||
/** | ||
* Interface representing the use case for loading {@link Release}s of a specific norm expression. | ||
*/ | ||
public interface LoadReleasesByNormExpressionEliUseCase { | ||
/** | ||
* Loads all {@link Release}s associated with the norm expression. | ||
* | ||
* @param query Query for loading the releases | ||
* @return A {@link List} of {@link Release} objects, which may be empty if no {@link | ||
* Release}s are found. | ||
*/ | ||
List<Release> loadReleasesByNormExpressionEli(Query query); | ||
|
||
/** | ||
* A record representing the query for loading {@link Release}s of a specific norm expression. | ||
* | ||
* @param eli The ELI (European Legislation Identifier) used to identify the norm expression. | ||
*/ | ||
record Query(NormExpressionEli eli) {} | ||
} |
29 changes: 0 additions & 29 deletions
29
...a/de/bund/digitalservice/ris/norms/application/port/input/ReleaseAnnouncementUseCase.java
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
...de/bund/digitalservice/ris/norms/application/port/input/ReleaseNormExpressionUseCase.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.input; | ||
|
||
import de.bund.digitalservice.ris.norms.domain.entity.Norm; | ||
import de.bund.digitalservice.ris.norms.domain.entity.Release; | ||
import de.bund.digitalservice.ris.norms.domain.entity.eli.NormExpressionEli; | ||
|
||
/** | ||
* Interface representing the use case for releasing a new expression of a {@link Norm}. | ||
*/ | ||
public interface ReleaseNormExpressionUseCase { | ||
/** | ||
* Releases a new expression of a {@link Norm} based on the provided query. | ||
* | ||
* @param query The query specifying the {@link Norm} to be released. | ||
* @return The created {@link Release}. | ||
*/ | ||
Release releaseNormExpression(Query query); | ||
|
||
/** | ||
* A record representing the query for releasing a new expression of a {@link Norm}. The query includes the | ||
* ELI (European Legislation Identifier) to identify the {@link Norm}. | ||
* | ||
* @param eli The ELI (European Legislation Identifier) used to identify the {@link Norm}. | ||
*/ | ||
record Query(NormExpressionEli eli) {} | ||
} |
25 changes: 25 additions & 0 deletions
25
...digitalservice/ris/norms/application/port/output/LoadReleasesByNormExpressionEliPort.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.output; | ||
|
||
import de.bund.digitalservice.ris.norms.domain.entity.Release; | ||
import de.bund.digitalservice.ris.norms.domain.entity.eli.NormExpressionEli; | ||
import java.util.List; | ||
|
||
/** | ||
* Interface representing a port for loading {@link Release}s of a specific norm expression. | ||
*/ | ||
public interface LoadReleasesByNormExpressionEliPort { | ||
/** | ||
* Loads {@link Release}s of a specific norm expression. | ||
* | ||
* @param command The command specifying the ELI to identify the norm. | ||
* @return A {@link List} of {@link Release}s, which may be empty if no {@link Release} is found. | ||
*/ | ||
List<Release> loadReleasesByNormExpressionEli(final Command command); | ||
|
||
/** | ||
* A record representing the command for loading releases of a norm. | ||
* | ||
* @param eli The ELI (European Legislation Identifier) used to identify the norm in the command. | ||
*/ | ||
record Command(NormExpressionEli eli) {} | ||
} |
23 changes: 23 additions & 0 deletions
23
...c/main/java/de/bund/digitalservice/ris/norms/application/port/output/SaveReleasePort.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,23 @@ | ||
package de.bund.digitalservice.ris.norms.application.port.output; | ||
|
||
import de.bund.digitalservice.ris.norms.domain.entity.Release; | ||
|
||
/** | ||
* Interface representing a port for saving a {@link Release}. | ||
*/ | ||
public interface SaveReleasePort { | ||
/** | ||
* Saves a {@link Release}. | ||
* | ||
* @param command The command specifying the release. | ||
* @return the {@link Release}. | ||
*/ | ||
Release saveRelease(final Command command); | ||
|
||
/** | ||
* A record representing the command for saving a release. | ||
* | ||
* @param release The release to be saved to the announcement | ||
*/ | ||
record Command(Release release) {} | ||
} |
Oops, something went wrong.