clean code

This commit is contained in:
CITE\amentis 2024-10-01 13:14:07 +03:00
parent 6ebe3228ae
commit 0ae9ad4ed1
2 changed files with 0 additions and 29 deletions

View File

@ -184,18 +184,4 @@ public class DescriptionStatusController {
this.auditService.track(AuditableAction.DescriptionStatus_Delete, "id", id);
}
@GetMapping("available-transitions/{descriptionId}")
@OperationWithTenantHeader(summary = "Get available status transitions for description", description = "",
responses = @ApiResponse(description = "OK", responseCode = "200"))
@Swagger404
public List<DescriptionStatus> GetAvailableTransitions(
@Parameter(name = "descriptionId", description = "The id of description", example = "c0c163dc-2965-45a5-9608-f76030578609", required = true) @PathVariable UUID descriptionId
) throws InvalidApplicationException {
logger.debug(new MapLogEntry("retrieving available statuses" + DescriptionStatus.class.getSimpleName()));
List<DescriptionStatus> availableTransitionStatuses = this.descriptionStatusService.getAvailableTransitionStatuses(descriptionId);
this.auditService.track(AuditableAction.DescriptionStatus_Delete, "descriptionId", descriptionId);
return availableTransitionStatuses;
}
}

View File

@ -184,19 +184,4 @@ public class PlanStatusController {
this.auditService.track(AuditableAction.PlanStatus_Delete, "id", id);
}
@GetMapping("available-transitions/{planId}")
@OperationWithTenantHeader(summary = "Get available status transitions for plan", description = "",
responses = @ApiResponse(description = "OK", responseCode = "200"))
@Swagger404
public List<PlanStatus> GetAvailableTransitions(
@Parameter(name = "planId", description = "The id of plan", example = "c0c163dc-2965-45a5-9608-f76030578609", required = true) @PathVariable UUID planId
) throws InvalidApplicationException {
logger.debug(new MapLogEntry("retrieving available statuses" + PlanStatus.class.getSimpleName()));
List<PlanStatus> availableTransitionStatuses = this.planStatusService.getAvailableTransitionStatuses(planId);
this.auditService.track(AuditableAction.PlanStatus_Delete, "planId", planId);
return availableTransitionStatuses;
}
}