Rebrand project: DocumentOperator to DocumentService

This commit implements a complete rebranding of the project:
- Updated all namespaces from `DocumentOperator` to `DocumentService`.
- Renamed file paths, embedded resources, and test data references.
- Updated configuration keys, logging paths, and Redis instance names.
- Revised documentation to reflect the new project name.
- Modified project and solution files to align with the new structure.
- Updated class names, DTOs, commands, queries, and handlers.
- Adjusted middleware, controllers, and API endpoints.
- Updated Swagger metadata and API titles to `DocumentService API`.
- Refactored test namespaces, resource paths, and embedded resources.
- Updated build and deployment configurations for the new name.
- Replaced all references to `DocumentOperator` in comments and literals.

These changes ensure consistency across the codebase and documentation.
This commit is contained in:
2026-07-30 14:02:56 +02:00
parent b6bb894257
commit 0e88b349d7
88 changed files with 307 additions and 222 deletions

View File

@@ -1,9 +1,9 @@
using DocumentOperator.Application.Common.Interfaces;
using DocumentOperator.Domain.Models.ValueObjects;
using DocumentService.Application.Common.Interfaces;
using DocumentService.Domain.Models.ValueObjects;
using FluentValidation;
using MediatR;
namespace DocumentOperator.Application.AddAnnotation;
namespace DocumentService.Application.AddAnnotation;
/// <summary>
/// Command to add an annotation to a PDF document.

View File

@@ -1,8 +1,8 @@
using DocumentOperator.Application.Common.Interfaces;
using DocumentService.Application.Common.Interfaces;
using FluentValidation;
using MediatR;
namespace DocumentOperator.Application.AddAttachments;
namespace DocumentService.Application.AddAttachments;
/// <summary>
/// Command to add one or more attachments to a PDF document (supports PDF/A-3)

View File

@@ -1,7 +1,7 @@
using FluentValidation;
using MediatR;
namespace DocumentOperator.Application.AddStamp;
namespace DocumentService.Application.AddStamp;
/// <summary>
/// Command to add a stamp (text, image, or predefined) to PDF pages.

View File

@@ -1,9 +1,9 @@
using AutoMapper;
using DocumentOperator.Application.Common.DTOs;
using DocumentOperator.Application.Common.Interfaces;
using DocumentService.Application.Common.DTOs;
using DocumentService.Application.Common.Interfaces;
using MediatR;
namespace DocumentOperator.Application.CheckPdfAttachments.Queries;
namespace DocumentService.Application.CheckPdfAttachments.Queries;
/// <summary>
/// Query for checking PDF attachments (Stream-based)

View File

@@ -1,6 +1,6 @@
using FluentValidation;
namespace DocumentOperator.Application.CheckPdfAttachments.Queries;
namespace DocumentService.Application.CheckPdfAttachments.Queries;
/// <summary>
/// Validator for CheckPdfAttachmentsQuery

View File

@@ -2,7 +2,7 @@ using MediatR;
using Microsoft.Extensions.Logging;
using System.Diagnostics;
namespace DocumentOperator.Application.Common.Behaviors;
namespace DocumentService.Application.Common.Behaviors;
/// <summary>
/// MediatR Pipeline Behavior that logs requests and tracks performance

View File

@@ -1,7 +1,7 @@
using FluentValidation;
using MediatR;
namespace DocumentOperator.Application.Common.Behaviors;
namespace DocumentService.Application.Common.Behaviors;
/// <summary>
/// MediatR Pipeline Behavior that validates requests using FluentValidation

View File

@@ -1,4 +1,4 @@
namespace DocumentOperator.Application.Common.Configuration;
namespace DocumentService.Application.Common.Configuration;
/// <summary>
/// Configuration settings for ZUGFeRD/Factur-X/XRechnung detection

View File

@@ -1,4 +1,4 @@
namespace DocumentOperator.Application.Common.DTOs;
namespace DocumentService.Application.Common.DTOs;
/// <summary>
/// DTO for attachment check result returned to API layer

View File

@@ -1,4 +1,4 @@
namespace DocumentOperator.Application.Common.DTOs;
namespace DocumentService.Application.Common.DTOs;
/// <summary>
/// Represents complete attachment information for a PDF document.

View File

@@ -1,4 +1,4 @@
namespace DocumentOperator.Application.Common.DTOs;
namespace DocumentService.Application.Common.DTOs;
/// <summary>
/// Represents metadata of a single PDF attachment (embedded file).

View File

@@ -1,4 +1,4 @@
namespace DocumentOperator.Application.Common.DTOs;
namespace DocumentService.Application.Common.DTOs;
/// <summary>
/// PDF/A validation metadata including conformance level and validation errors/warnings

View File

@@ -1,4 +1,4 @@
namespace DocumentOperator.Application.Common.DTOs;
namespace DocumentService.Application.Common.DTOs;
/// <summary>
/// PDF/A validation result including conformance level and validation errors/warnings

View File

@@ -1,4 +1,4 @@
namespace DocumentOperator.Application.Common.DTOs;
namespace DocumentService.Application.Common.DTOs;
public sealed class PdfMetadata(
int pageCount,

View File

@@ -1,4 +1,4 @@
namespace DocumentOperator.Application.Common.DTOs;
namespace DocumentService.Application.Common.DTOs;
/// <summary>
/// Response mit PDF-Metadaten

View File

@@ -1,4 +1,4 @@
namespace DocumentOperator.Application.Common.DTOs;
namespace DocumentService.Application.Common.DTOs;
/// <summary>
/// Swiss QR Bill data transfer object (mapped from Codecrete Bill)

View File

@@ -1,4 +1,4 @@
namespace DocumentOperator.Application.Common.DTOs;
namespace DocumentService.Application.Common.DTOs;
/// <summary>
/// Response containing extracted Swiss QR Code in dual format.

View File

@@ -1,4 +1,4 @@
namespace DocumentOperator.Application.Common.DTOs;
namespace DocumentService.Application.Common.DTOs;
/// <summary>
/// DTO for ZUGFeRD check result

View File

@@ -1,6 +1,6 @@
using DocumentOperator.Application.Common.DTOs;
using DocumentService.Application.Common.DTOs;
namespace DocumentOperator.Application.Common.Interfaces;
namespace DocumentService.Application.Common.Interfaces;
public interface IPdfProcessor
{

View File

@@ -1,6 +1,6 @@
using Codecrete.SwissQRBill.Generator;
namespace DocumentOperator.Application.Common.Interfaces;
namespace DocumentService.Application.Common.Interfaces;
/// <summary>
/// Interface for Swiss QR Code processing operations.

View File

@@ -1,9 +1,9 @@
using AutoMapper;
using Codecrete.SwissQRBill.Generator;
using DocumentOperator.Application.Common.DTOs;
using DocumentOperator.Domain.Models.ValueObjects;
using DocumentService.Application.Common.DTOs;
using DocumentService.Domain.Models.ValueObjects;
namespace DocumentOperator.Application.Common.Mapping;
namespace DocumentService.Application.Common.Mapping;
/// <summary>
/// AutoMapper profile for mapping domain entities and external models to DTOs.

View File

@@ -1,8 +1,8 @@
using DocumentOperator.Application.Common.Interfaces;
using DocumentService.Application.Common.Interfaces;
using FluentValidation;
using MediatR;
namespace DocumentOperator.Application.ConvertFromPdfA;
namespace DocumentService.Application.ConvertFromPdfA;
/// <summary>
/// Command to convert a PDF/A document to a standard PDF (removes PDF/A restrictions)

View File

@@ -1,8 +1,8 @@
using DocumentOperator.Application.Common.Interfaces;
using DocumentService.Application.Common.Interfaces;
using FluentValidation;
using MediatR;
namespace DocumentOperator.Application.ConvertToPdfA;
namespace DocumentService.Application.ConvertToPdfA;
/// <summary>
/// Command to convert a standard PDF to PDF/A format

View File

@@ -2,7 +2,7 @@ using FluentValidation;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
namespace DocumentOperator.Application;
namespace DocumentService.Application;
/// <summary>
/// Dependency Injection configuration for Application Layer

View File

@@ -1,8 +1,8 @@
using DocumentOperator.Application.Common.Interfaces;
using DocumentService.Application.Common.Interfaces;
using FluentValidation;
using MediatR;
namespace DocumentOperator.Application.ExtractPdfAttachments;
namespace DocumentService.Application.ExtractPdfAttachments;
/// <summary>
/// Command to extract all embedded files from a PDF document and return as ZIP archive.

View File

@@ -1,11 +1,11 @@
using DocumentOperator.Application.Common.Configuration;
using DocumentOperator.Application.Common.Interfaces;
using DocumentOperator.Domain.Common.Exceptions;
using DocumentService.Application.Common.Configuration;
using DocumentService.Application.Common.Interfaces;
using DocumentService.Domain.Common.Exceptions;
using FluentValidation;
using MediatR;
using Microsoft.Extensions.Options;
namespace DocumentOperator.Application.ExtractZugferd;
namespace DocumentService.Application.ExtractZugferd;
/// <summary>
/// Command to extract ZUGFeRD XML from a PDF document

View File

@@ -1,10 +1,10 @@
using DocumentOperator.Application.Common.Configuration;
using DocumentOperator.Application.Common.DTOs;
using DocumentOperator.Application.Common.Interfaces;
using DocumentService.Application.Common.Configuration;
using DocumentService.Application.Common.DTOs;
using DocumentService.Application.Common.Interfaces;
using MediatR;
using Microsoft.Extensions.Options;
namespace DocumentOperator.Application.HasZugferd.Queries;
namespace DocumentService.Application.HasZugferd.Queries;
/// <summary>
/// Query for checking if PDF contains ZUGFeRD XML attachment

View File

@@ -1,6 +1,6 @@
using FluentValidation;
namespace DocumentOperator.Application.HasZugferd.Queries;
namespace DocumentService.Application.HasZugferd.Queries;
/// <summary>
/// Validator for HasZugferdQuery

View File

@@ -1,8 +1,8 @@
using DocumentOperator.Application.Common.Interfaces;
using DocumentService.Application.Common.Interfaces;
using FluentValidation;
using MediatR;
namespace DocumentOperator.Application.MergePdfs;
namespace DocumentService.Application.MergePdfs;
/// <summary>
/// Command to merge multiple PDF documents into a single PDF.

View File

@@ -1,9 +1,9 @@
using AutoMapper;
using DocumentOperator.Application.Common.DTOs;
using DocumentOperator.Application.Common.Interfaces;
using DocumentService.Application.Common.DTOs;
using DocumentService.Application.Common.Interfaces;
using MediatR;
namespace DocumentOperator.Application.SwissQrCode.Queries;
namespace DocumentService.Application.SwissQrCode.Queries;
/// <summary>
/// Query for extracting Swiss QR Code from PDF (Stream-based)

View File

@@ -1,7 +1,7 @@
using DocumentOperator.Application.SwissQrCode.Queries;
using DocumentService.Application.SwissQrCode.Queries;
using FluentValidation;
namespace DocumentOperator.Application.SwissQrCode.Queries;
namespace DocumentService.Application.SwissQrCode.Queries;
/// <summary>
/// Validates ExtractSwissQrCodeQuery before handler execution.

View File

@@ -1,9 +1,9 @@
using AutoMapper;
using DocumentOperator.Application.Common.DTOs;
using DocumentOperator.Application.Common.Interfaces;
using DocumentService.Application.Common.DTOs;
using DocumentService.Application.Common.Interfaces;
using MediatR;
namespace DocumentOperator.Application.ValidatePdf.Queries;
namespace DocumentService.Application.ValidatePdf.Queries;
/// <summary>
/// Query for PDF validation (Stream-based)

View File

@@ -1,7 +1,7 @@
using DocumentOperator.Application.ValidatePdf.Queries;
using DocumentService.Application.ValidatePdf.Queries;
using FluentValidation;
namespace DocumentOperator.Application.ValidatePdf.Queries;
namespace DocumentService.Application.ValidatePdf.Queries;
/// <summary>
/// Validator for ValidatePdfQuery

View File

@@ -1,9 +1,9 @@
using AutoMapper;
using DocumentOperator.Application.Common.DTOs;
using DocumentOperator.Application.Common.Interfaces;
using DocumentService.Application.Common.DTOs;
using DocumentService.Application.Common.Interfaces;
using MediatR;
namespace DocumentOperator.Application.ValidatePdfA.Queries;
namespace DocumentService.Application.ValidatePdfA.Queries;
/// <summary>
/// Query for PDF/A validation (Stream-based)

View File

@@ -1,6 +1,6 @@
using FluentValidation;
namespace DocumentOperator.Application.ValidatePdfA.Validators;
namespace DocumentService.Application.ValidatePdfA.Validators;
/// <summary>
/// Validator for ValidatePdfAQuery