#884: Option.kt

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

Type: Kotlin data class — DTO

Purpose: Represents a selectable option / list-of-values entry in the D-velop system, used for field dropdowns (e.g., contact type, trading partner type) in the D-velop UI and API.

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

33 lines · 6 code · 25 comments · 2 blank

A minimal DTO for D-velop's option/list-of-values model. Each option has an id (the internal key), a value (the display string), and an optional color for UI rendering. Used when ProjectForge needs to map its internal enum values to D-velop's option IDs during synchronization.

Properties

PropertyTypeDescription
idString?Unique identifier of the option in D-velop (e.g., UUID for a list-of-values entry)
valueString?The human-readable display value
colorString?Optional color associated with the option for UI rendering

Architecture Notes

All three properties are constructor parameters with default null values, making this compatible with Jackson deserialization from D-velop's JSON API. No business logic — pure data transfer. Likely used in D-velop integration code that needs to resolve option IDs for fields like type, contactType, and active on TradingPartner.

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