#880: CustomFieldDef.kt

projectforge-business/src/main/kotlin/org/projectforge/business/dvelop/CustomFieldDef.kt

Type: Kotlin data class — DTO

Purpose: Represents the definition / schema of a custom field in the D-velop system, as returned by the D-velop API's custom field metadata endpoint.

Source path: projectforge-business/src/main/kotlin/org/projectforge/business/dvelop/CustomFieldDef.kt

33 lines · 6 code · 25 comments · 2 blank

A simple serialization DTO for D-velop's custom field definitions. When ProjectForge synchronizes with D-velop, it fetches the list of available custom field schemas. Each definition has an id (the API identifier), a name (human-readable label), and an entity (the D-velop domain object type it belongs to, e.g. "trading_partner"). This class is used during the D-velop integration bootstrapping to discover which custom fields exist.

Properties

PropertyTypeDescription
idString?Unique identifier of the custom field definition in D-velop (e.g., UUID)
nameString?Human-readable name of the custom field (e.g., "datevKonto")
entityString?The entity type this field belongs to (e.g., "trading_partner")

Architecture Notes

This is a pure data transfer object with no business logic. All properties are declared as constructor parameters with default null values, making it compatible with Jackson deserialization from D-velop's JSON API responses and Kotlin's named-argument instantiation.

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
b6092df09 Copyright 2023 -> 2024
be750e77e WIP D.velop
ab45d51fa Copyright 2001-2022 -> 2001-2023.
7c0185105 AG grid state (sort order etc.) is preserved if returned from edit page to list page.
a492027b4 AGGrid: column states (size is now persisted in user's preferences)
ec7f46aa1 WIP: scripting
5f7ef41b8 Copyright 2021 -> 2022
0ab100d21 Configuration refactored (GlobalConfiguration not needed anymore). SEPA export should now erease unprintable chars.
ceb63e8a1 Source code header: (C) 2001-2021.
7c79f1922 Copyright of source header -> 2020.
dd5ca38ac CopyRight of all java file-header updated or created.
9ebb88522 Initial commit