Interface TenantMapper

  • All Known Implementing Classes:
    TenantMapperImpl

    public interface TenantMapper
    Maps the legacy Mandant entity to the tenant domain's TenantDTO read model. Only the fields the DTO exposes (id, name) are copied; the entity is never handed out across the domain boundary.
    Since:
    8.5.6
    Author:
    Norman Lorenz
    • Field Detail

      • INSTANCE

        static final TenantMapper INSTANCE
        Shared stateless instance.
    • Method Detail

      • toDto

        TenantDTO toDto​(Mandant tenant)
        Converts a legacy tenant entity to its read model.
        Parameters:
        tenant - the entity. May be null.
        Returns:
        the DTO, or null if tenant is null.
        Since:
        8.5.6