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:
@@ -36,7 +36,7 @@ public class BudgetResource {
|
||||
BudgetService budgetService;
|
||||
|
||||
@GET
|
||||
@RolesAllowed({"ORG_ADMIN", "SUPER_ADMIN"})
|
||||
@RolesAllowed({"ADMIN_ORGANISATION", "SUPER_ADMIN"})
|
||||
@Operation(summary = "Récupère les budgets",
|
||||
description = "Liste tous les budgets d'une organisation avec filtres optionnels")
|
||||
public Response getBudgets(
|
||||
@@ -63,7 +63,7 @@ public class BudgetResource {
|
||||
|
||||
@GET
|
||||
@Path("/{budgetId}")
|
||||
@RolesAllowed({"ORG_ADMIN", "SUPER_ADMIN"})
|
||||
@RolesAllowed({"ADMIN_ORGANISATION", "SUPER_ADMIN"})
|
||||
@Operation(summary = "Récupère un budget par ID",
|
||||
description = "Retourne les détails complets d'un budget")
|
||||
public Response getBudgetById(@PathParam("budgetId") UUID budgetId) {
|
||||
@@ -85,7 +85,7 @@ public class BudgetResource {
|
||||
}
|
||||
|
||||
@POST
|
||||
@RolesAllowed({"ORG_ADMIN", "SUPER_ADMIN"})
|
||||
@RolesAllowed({"ADMIN_ORGANISATION", "SUPER_ADMIN"})
|
||||
@Operation(summary = "Crée un nouveau budget",
|
||||
description = "Crée un budget avec ses lignes budgétaires")
|
||||
public Response createBudget(@Valid CreateBudgetRequest request) {
|
||||
@@ -114,7 +114,7 @@ public class BudgetResource {
|
||||
|
||||
@GET
|
||||
@Path("/{budgetId}/tracking")
|
||||
@RolesAllowed({"ORG_ADMIN", "SUPER_ADMIN"})
|
||||
@RolesAllowed({"ADMIN_ORGANISATION", "SUPER_ADMIN"})
|
||||
@Operation(summary = "Récupère le suivi budgétaire",
|
||||
description = "Retourne les statistiques de suivi et réalisation du budget")
|
||||
public Response getBudgetTracking(@PathParam("budgetId") UUID budgetId) {
|
||||
@@ -137,7 +137,7 @@ public class BudgetResource {
|
||||
|
||||
@PUT
|
||||
@Path("/{budgetId}")
|
||||
@RolesAllowed({"ORG_ADMIN", "SUPER_ADMIN"})
|
||||
@RolesAllowed({"ADMIN_ORGANISATION", "SUPER_ADMIN"})
|
||||
@Operation(summary = "Met à jour un budget",
|
||||
description = "Modifie un budget existant (nom, description, lignes, statut)")
|
||||
public Response updateBudget(
|
||||
@@ -166,7 +166,7 @@ public class BudgetResource {
|
||||
|
||||
@DELETE
|
||||
@Path("/{budgetId}")
|
||||
@RolesAllowed({"ORG_ADMIN", "SUPER_ADMIN"})
|
||||
@RolesAllowed({"ADMIN_ORGANISATION", "SUPER_ADMIN"})
|
||||
@Operation(summary = "Supprime un budget",
|
||||
description = "Supprime logiquement un budget (soft delete)")
|
||||
public Response deleteBudget(@PathParam("budgetId") UUID budgetId) {
|
||||
|
||||
Reference in New Issue
Block a user