From fb9b29ea23a4264607debd80133944afce5cd3e3 Mon Sep 17 00:00:00 2001 From: "marco.matteucci@eng.it" Date: Wed, 27 Nov 2024 11:44:53 +0100 Subject: [PATCH 1/8] feat:P4ADEV-1528-Treasury-Temporal-Activity-added-inteface --- .../treasury/TreasuryIngestionActivity.java | 18 ++++++++++++++++++ .../TreasuryIngestionActivityResult.java | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java create mode 100644 src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java diff --git a/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java new file mode 100644 index 00000000..af1d8d25 --- /dev/null +++ b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java @@ -0,0 +1,18 @@ +package it.gov.pagopa.payhub.activities.activity.treasury; + +import it.gov.pagopa.payhub.activities.dto.treasury.TreasuryIngestionActivityResult; + +/** + * Interface for the TreasuryIngestionActivity. + * Defines methods for processing files based on an IngestionFlow ID. + */ +public interface TreasuryIngestionActivity { + + /** + * Processes a file based on the provided IngestionFlow ID. + * + * @param ingestionFlowId the unique identifier related to the file to process. + * @return {@link TreasuryIngestionActivityResult} containing the list of IUFs and status. + */ + TreasuryIngestionActivityResult processFile(String ingestionFlowId); +} \ No newline at end of file diff --git a/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java b/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java new file mode 100644 index 00000000..c818eef9 --- /dev/null +++ b/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java @@ -0,0 +1,18 @@ +package it.gov.pagopa.payhub.activities.dto.treasury; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import java.util.List; + +/** + * DTO for the TreasuryIngestionResponse, representing the result of file processing. + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +public class TreasuryIngestionActivityResult { + /** List of extracted IUFs */ + private List iufs; + /** Success flag for the operation */ + private boolean success; +} From 93f8305c0d02f875366c2cec211363861e3df808 Mon Sep 17 00:00:00 2001 From: marcomatteuccieng Date: Thu, 28 Nov 2024 14:09:16 +0100 Subject: [PATCH 2/8] Update src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java Co-authored-by: antonioT90 <34568575+antonioT90@users.noreply.github.com> --- .../activities/activity/treasury/TreasuryIngestionActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java index af1d8d25..7f7b1c74 100644 --- a/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java +++ b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java @@ -6,7 +6,7 @@ * Interface for the TreasuryIngestionActivity. * Defines methods for processing files based on an IngestionFlow ID. */ -public interface TreasuryIngestionActivity { +public interface TreasuryOpiIngestionActivity { /** * Processes a file based on the provided IngestionFlow ID. From 9d6d592fa1bf6d29fc426fc0571cc9edd3d64e5c Mon Sep 17 00:00:00 2001 From: marcomatteuccieng Date: Thu, 28 Nov 2024 14:09:27 +0100 Subject: [PATCH 3/8] Update src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java Co-authored-by: antonioT90 <34568575+antonioT90@users.noreply.github.com> --- .../activities/activity/treasury/TreasuryIngestionActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java index 7f7b1c74..ab3d1a09 100644 --- a/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java +++ b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java @@ -1,4 +1,4 @@ -package it.gov.pagopa.payhub.activities.activity.treasury; +package it.gov.pagopa.payhub.activities.activity.treasury.opi; import it.gov.pagopa.payhub.activities.dto.treasury.TreasuryIngestionActivityResult; From 51cb6ecbfcb31f0c1e4cdd98c7fee31471856ff6 Mon Sep 17 00:00:00 2001 From: marcomatteuccieng Date: Thu, 28 Nov 2024 14:09:33 +0100 Subject: [PATCH 4/8] Update src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java Co-authored-by: antonioT90 <34568575+antonioT90@users.noreply.github.com> --- .../dto/treasury/TreasuryIngestionActivityResult.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java b/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java index c818eef9..e94aabc2 100644 --- a/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java +++ b/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java @@ -10,7 +10,7 @@ @Data @NoArgsConstructor @AllArgsConstructor -public class TreasuryIngestionActivityResult { +public class TreasuryOpiIngestionActivityResult { /** List of extracted IUFs */ private List iufs; /** Success flag for the operation */ From e71e5eb14e3e54d066090060070adf921569b4a1 Mon Sep 17 00:00:00 2001 From: "marco.matteucci@eng.it" Date: Thu, 28 Nov 2024 14:23:52 +0100 Subject: [PATCH 5/8] feat:P4ADEV-1528-Treasury-Temporal-Activity-added-inteface manage specific of OPI flow type --- ...ionActivity.java => TreasuryOpiIngestionActivity.java} | 8 ++++---- ...esult.java => TreasuryOpiIngestionActivityResult.java} | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/{TreasuryIngestionActivity.java => TreasuryOpiIngestionActivity.java} (53%) rename src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/{TreasuryIngestionActivityResult.java => TreasuryOpiIngestionActivityResult.java} (81%) diff --git a/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryOpiIngestionActivity.java similarity index 53% rename from src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java rename to src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryOpiIngestionActivity.java index ab3d1a09..71a3c6f0 100644 --- a/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryIngestionActivity.java +++ b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryOpiIngestionActivity.java @@ -1,9 +1,9 @@ package it.gov.pagopa.payhub.activities.activity.treasury.opi; -import it.gov.pagopa.payhub.activities.dto.treasury.TreasuryIngestionActivityResult; +import it.gov.pagopa.payhub.activities.dto.treasury.TreasuryOpiIngestionActivityResult; /** - * Interface for the TreasuryIngestionActivity. + * Interface for the TreasuryOpiIngestionActivity. * Defines methods for processing files based on an IngestionFlow ID. */ public interface TreasuryOpiIngestionActivity { @@ -12,7 +12,7 @@ public interface TreasuryOpiIngestionActivity { * Processes a file based on the provided IngestionFlow ID. * * @param ingestionFlowId the unique identifier related to the file to process. - * @return {@link TreasuryIngestionActivityResult} containing the list of IUFs and status. + * @return {@link TreasuryOpiIngestionActivityResult} containing the list of IUFs and status. */ - TreasuryIngestionActivityResult processFile(String ingestionFlowId); + TreasuryOpiIngestionActivityResult processFile(String ingestionFlowId); } \ No newline at end of file diff --git a/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java b/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryOpiIngestionActivityResult.java similarity index 81% rename from src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java rename to src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryOpiIngestionActivityResult.java index e94aabc2..f71b6348 100644 --- a/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIngestionActivityResult.java +++ b/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryOpiIngestionActivityResult.java @@ -5,7 +5,7 @@ import java.util.List; /** - * DTO for the TreasuryIngestionResponse, representing the result of file processing. + * DTO for the TreasuryOpiIngestionActivityResult, representing the result of file processing. */ @Data @NoArgsConstructor From bec52c2509a5ffc68fa14919553d2c403efbda04 Mon Sep 17 00:00:00 2001 From: "marco.matteucci@eng.it" Date: Thu, 28 Nov 2024 15:22:27 +0100 Subject: [PATCH 6/8] feat:P4ADEV-1528-Treasury-Temporal-Activity-added-inteface manage specific of OPI flow type - moved package --- .../activity/treasury/TreasuryOpiIngestionActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryOpiIngestionActivity.java b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryOpiIngestionActivity.java index 71a3c6f0..e8b2e85e 100644 --- a/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryOpiIngestionActivity.java +++ b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryOpiIngestionActivity.java @@ -1,4 +1,4 @@ -package it.gov.pagopa.payhub.activities.activity.treasury.opi; +package it.gov.pagopa.payhub.activities.activity.treasury; import it.gov.pagopa.payhub.activities.dto.treasury.TreasuryOpiIngestionActivityResult; From 2a79420259c8ee5bfaba5cc46f5c3c3bd21dadc1 Mon Sep 17 00:00:00 2001 From: "marco.matteucci@eng.it" Date: Thu, 28 Nov 2024 16:23:20 +0100 Subject: [PATCH 7/8] feat:P4ADEV-1528-Tes-Temporal-Activity - rename dto to TreasuryIufResult --- .../activity/treasury/TreasuryOpiIngestionActivity.java | 6 +++--- ...iIngestionActivityResult.java => TreasuryIufResult.java} | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/{TreasuryOpiIngestionActivityResult.java => TreasuryIufResult.java} (90%) diff --git a/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryOpiIngestionActivity.java b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryOpiIngestionActivity.java index e8b2e85e..909cbbff 100644 --- a/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryOpiIngestionActivity.java +++ b/src/main/java/it/gov/pagopa/payhub/activities/activity/treasury/TreasuryOpiIngestionActivity.java @@ -1,6 +1,6 @@ package it.gov.pagopa.payhub.activities.activity.treasury; -import it.gov.pagopa.payhub.activities.dto.treasury.TreasuryOpiIngestionActivityResult; +import it.gov.pagopa.payhub.activities.dto.treasury.TreasuryIufResult; /** * Interface for the TreasuryOpiIngestionActivity. @@ -12,7 +12,7 @@ public interface TreasuryOpiIngestionActivity { * Processes a file based on the provided IngestionFlow ID. * * @param ingestionFlowId the unique identifier related to the file to process. - * @return {@link TreasuryOpiIngestionActivityResult} containing the list of IUFs and status. + * @return {@link TreasuryIufResult} containing the list of IUFs and status. */ - TreasuryOpiIngestionActivityResult processFile(String ingestionFlowId); + TreasuryIufResult processFile(String ingestionFlowId); } \ No newline at end of file diff --git a/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryOpiIngestionActivityResult.java b/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIufResult.java similarity index 90% rename from src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryOpiIngestionActivityResult.java rename to src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIufResult.java index f71b6348..fc49da1b 100644 --- a/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryOpiIngestionActivityResult.java +++ b/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIufResult.java @@ -10,7 +10,7 @@ @Data @NoArgsConstructor @AllArgsConstructor -public class TreasuryOpiIngestionActivityResult { +public class TreasuryIufResult { /** List of extracted IUFs */ private List iufs; /** Success flag for the operation */ From cd383a0795fb21b65d892b549e9457b11b4ed120 Mon Sep 17 00:00:00 2001 From: "marco.matteucci@eng.it" Date: Thu, 28 Nov 2024 16:27:46 +0100 Subject: [PATCH 8/8] feat:P4ADEV-1528-Tes-Temporal-Activity - rename dto to TreasuryIufResult -- modify comment --- .../payhub/activities/dto/treasury/TreasuryIufResult.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIufResult.java b/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIufResult.java index fc49da1b..945bd395 100644 --- a/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIufResult.java +++ b/src/main/java/it/gov/pagopa/payhub/activities/dto/treasury/TreasuryIufResult.java @@ -5,7 +5,7 @@ import java.util.List; /** - * DTO for the TreasuryOpiIngestionActivityResult, representing the result of file processing. + * DTO for the TreasuryIufResult, representing the result of file processing. */ @Data @NoArgsConstructor