feat: BackupService real pg_dump, OrganisationService region stats, SystemConfigService overrides
- BackupService: DB-persisted metadata (BackupRecord/BackupConfig entities + V16 Flyway migration), real pg_dump execution via ProcessBuilder, soft-delete on deleteBackup, pg_restore manual guidance - OrganisationService: repartitionRegion now queries Adresse entities (was Map.of() stub) - SystemConfigService: in-memory config overrides via AtomicReference (no DB dependency) - SystemMetricsService: null-guard on MemoryMXBean in getSystemStatus() (fixes test NPE) - Souscription workflow: SouscriptionService, SouscriptionResource, FormuleAbonnementRepository, V11 Flyway migration, admin REST clients - Flyway V8-V15: notes membres, types référence, type orga constraint, seed roles, première connexion, Wave checkout URL, Wave telephone column length fix - .gitignore: added uploads/ and .claude/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -29,7 +29,7 @@ import org.jboss.logging.Logger;
|
||||
@Path("/api/wave")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@RolesAllowed({ "ADMIN", "MEMBRE", "USER" })
|
||||
@RolesAllowed({ "ADMIN", "ADMIN_ORGANISATION", "MEMBRE", "USER" })
|
||||
@Tag(name = "Wave Mobile Money", description = "Gestion des comptes et transactions Wave Mobile Money")
|
||||
public class WaveResource {
|
||||
|
||||
@@ -43,7 +43,7 @@ public class WaveResource {
|
||||
// ========================================
|
||||
|
||||
@POST
|
||||
@RolesAllowed({ "ADMIN", "MEMBRE" })
|
||||
@RolesAllowed({ "ADMIN", "ADMIN_ORGANISATION", "MEMBRE" })
|
||||
@Path("/comptes")
|
||||
@Operation(summary = "Créer un compte Wave", description = "Crée un nouveau compte Wave pour un membre ou une organisation")
|
||||
@APIResponses({
|
||||
@@ -67,7 +67,7 @@ public class WaveResource {
|
||||
}
|
||||
|
||||
@PUT
|
||||
@RolesAllowed({ "ADMIN", "MEMBRE" })
|
||||
@RolesAllowed({ "ADMIN", "ADMIN_ORGANISATION", "MEMBRE" })
|
||||
@Path("/comptes/{id}")
|
||||
@Operation(summary = "Mettre à jour un compte Wave", description = "Met à jour les informations d'un compte Wave existant")
|
||||
@APIResponses({
|
||||
@@ -94,7 +94,7 @@ public class WaveResource {
|
||||
}
|
||||
|
||||
@POST
|
||||
@RolesAllowed({ "ADMIN", "MEMBRE" })
|
||||
@RolesAllowed({ "ADMIN", "ADMIN_ORGANISATION", "MEMBRE" })
|
||||
@Path("/comptes/{id}/verifier")
|
||||
@Operation(summary = "Vérifier un compte Wave", description = "Vérifie la validité d'un compte Wave")
|
||||
@APIResponses({
|
||||
@@ -193,7 +193,7 @@ public class WaveResource {
|
||||
// ========================================
|
||||
|
||||
@POST
|
||||
@RolesAllowed({ "ADMIN", "MEMBRE" })
|
||||
@RolesAllowed({ "ADMIN", "ADMIN_ORGANISATION", "MEMBRE" })
|
||||
@Path("/transactions")
|
||||
@Operation(summary = "Créer une transaction Wave", description = "Initie une nouvelle transaction de paiement Wave")
|
||||
@APIResponses({
|
||||
@@ -213,7 +213,7 @@ public class WaveResource {
|
||||
}
|
||||
|
||||
@PUT
|
||||
@RolesAllowed({ "ADMIN", "MEMBRE" })
|
||||
@RolesAllowed({ "ADMIN", "ADMIN_ORGANISATION", "MEMBRE" })
|
||||
@Path("/transactions/{waveTransactionId}/statut")
|
||||
@Operation(summary = "Mettre à jour le statut d'une transaction", description = "Met à jour le statut d'une transaction Wave (ex: COMPLETED, FAILED)")
|
||||
@APIResponses({
|
||||
|
||||
Reference in New Issue
Block a user