#1265: CandHHistoryEntryWrapper.kt
projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/candh/CandHHistoryEntryWrapper.kt History Entry Wrapper, projectforge-business/src/main/kotlin/org/projectforge/framework/persistence/candh/CandHHistoryEntryWrapper.kt 84 lines · 48 code · 30 comments · 6 blank
Wraps a HistoryEntryDO with entity reference and a set of CandHHistoryAttrWrapper attributes. Built up during CandH processing, then finalized via prepareAndGetHistoryEntry() which creates all HistoryEntryAttrDO children and attaches them to the entry. Supports the stack-based entity tracking in HistoryContext.
Architecture
Properties
| Property | Type | Description |
historyEntry | HistoryEntryDO | The underlying history entry |
entity | IdObject<Long> | Reference to the source entity |
attributeWrappers | MutableSet<CandHHistoryAttrWrapper>? | Collected attribute wrappers |
Key Methods
| Method | Description |
addAttribute(...) | Creates and adds a CandHHistoryAttrWrapper to the set |
prepareAndGetHistoryEntry() | Converts all attribute wrappers into HistoryEntryAttrDO and returns the finalized HistoryEntryDO |
Companion create() factory constructs from entity, entityOpType, entity name, and modified-by user ID.
Git History
868d6abb7 2025 -> 2026
feb661d79 Employee: displaying history for time attrs
63081666f Source file headers: 2024-> 2025.
bbc198d03 Migration stuff in progress... (all tests of all packages: OK).
b79a1edca Migration stuff in progress... (all tests of all packages: OK).