-
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.
Merge pull request #1009 from digitalservicebund/delete-after-publish…
…-finished delete-after-publish-finished
- Loading branch information
Showing
11 changed files
with
184 additions
and
150 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
25 changes: 25 additions & 0 deletions
25
.../bund/digitalservice/ris/norms/application/port/output/DeleteAllPrivateDokumentePort.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.Dokument; | ||
import java.time.Instant; | ||
|
||
/** | ||
* Interface representing the output port for deleting multiple {@link Dokument} entities from a storage location designated | ||
* for private data. | ||
*/ | ||
public interface DeleteAllPrivateDokumentePort { | ||
/** | ||
* Deletes all {@link Dokument} entities that have not been edited since the given date from a designated private | ||
* storage location. | ||
* | ||
* @param command command for deleting Dokumente | ||
*/ | ||
void deleteAllPrivateDokumente(DeleteAllPrivateDokumentePort.Command command); | ||
|
||
/** | ||
* Command for deleting dokumente | ||
* | ||
* @param lastChangeBefore Dokumente last edited after the given date are not deleted. | ||
*/ | ||
record Command(Instant lastChangeBefore) {} | ||
} |
15 changes: 0 additions & 15 deletions
15
...a/de/bund/digitalservice/ris/norms/application/port/output/DeleteAllPrivateNormsPort.java
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...e/bund/digitalservice/ris/norms/application/port/output/DeleteAllPublicDokumentePort.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.Dokument; | ||
import java.time.Instant; | ||
|
||
/** | ||
* Interface representing the output port for deleting all {@link Dokument} entities from a storage location designated | ||
* for public data. | ||
*/ | ||
public interface DeleteAllPublicDokumentePort { | ||
/** | ||
* Deletes all {@link Dokument} entities that have not been edited since the given date from a designated public | ||
* storage location. | ||
* | ||
* @param command command for deleting Dokumente | ||
*/ | ||
void deleteAllPublicDokumente(DeleteAllPublicDokumentePort.Command command); | ||
|
||
/** | ||
* Command for deleting dokumente | ||
* | ||
* @param lastChangeBefore Dokumente last edited after the given date are not deleted. | ||
*/ | ||
record Command(Instant lastChangeBefore) {} | ||
} |
14 changes: 0 additions & 14 deletions
14
...va/de/bund/digitalservice/ris/norms/application/port/output/DeleteAllPublicNormsPort.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.