#1093: TeamEventDO.kt
projectforge-business/src/main/kotlin/org/projectforge/business/teamcal/event/model/TeamEventDO.kt JPA Entity / Team Calendar Event, projectforge-business/src/main/kotlin/org/projectforge/business/teamcal/event/model/TeamEventDO.kt 1005 lines · 753 code · 166 comments · 86 blank
Core JPA entity for calendar events (table T_PLUGIN_CALENDAR_EVENT), implementing ICalendarEvent and Cloneable. Comprehensive iCal-compatible event with: subject, location, allDay flag, startDate/endDate (Date in UTC), dtStamp, calendar FK, originalIcsEntry (preserves iCal properties not yet supported), recurrence support (recurrenceRule as RRULE string, recurrenceExDate as CSV, recurrenceUntil, recurrenceReferenceDate/Id), note/description, attendees (transient set of TeamEventAttendeeDO), organizer with additional params, sequence (for iCal updates), UID, reminders (duration, unit, actionType), attachments (transient set). Recurrence methods: setRecurrence(rRule), setRecurrence(data) builds Recur from TeamEventRecurrenceData with full support for weekly/monthly/yearly patterns, getRecurrenceData() reverses to data object, addRecurrenceExDate() appends exclusion dates. clearFields() redacts sensitive data for minimal-access viewers. mustIncSequence() checks if any field changed requiring a sequence bump. Unique constraint on (uid, calendar_fk).
Git History
868d6abb7 2025 -> 2026
ee32b3e3a Code deprecations.
b309e9be9 MailAttachments improved (effected BirthdayButler, Polls). E-Mail is sent automatically, if nightly sanity check has errors.
63081666f Source file headers: 2024-> 2025.
0237d5eba Json serialization refactored: IdOnlySerializer and IdsOnlySerializer introduced.
40e721b9c VCardUtils
c193e8288 Ical4j: migration stuff... (all tests OK)
61966790f Ical4j: migration stuff...
d394f410f Migration stuff in progress... (all tests of all packages: OK).
c8f8ed935 Declared all entities as FetchType.LAZY (was EAGER).
fa194d7f8 Migration stuff in progress...
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
ad9ac6b63 Migration stuff in progress...
f5c09f87f Migration stuff in progress...
4f5a458c9 Migration stuff in progress...
c04fb0d51 Migration stuff in progress...
06828f490 Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
c06db1dab Nearly all jars updated (code changes required).
ef89f322f Constants (Const) refactored.
5f7ef41b8 Copyright 2021 -> 2022
c3a3a7476 PurgeCalendarEntriesJob (privacy protection) deletes now also history entries of events to purge.
534dab9cd PROJECTFORGE-3687: CronPrivacyProtectionJob implemented. Removes older events from specified calendars (such as illness calendars etc.).
c0f2b9de0 Tenants functionality removed everywhere (untested).
ceb63e8a1 Source code header: (C) 2001-2021.
1be32b03c PFUser.timeZone refactored (timeZoneString). timeZoneObject removed.
7c1c48782 Replacing more instance of java.sql.Date with java.time.LocalDate Replacing instances of java sql.Timestamp with java.util.Date
7c79f1922 Copyright of source header -> 2020.
d3a178833 Wrong substitution of "calendar" -> "datetime" while refactoring, reverted commit from 12.12.2019.
45e1c6d2b LicenseDO, ScriptDO, TeamEventDO and GroupTaskAccessDO: NoHistory annotation fixed.
19b97fcc3 DateBridge: encoding = EncodingType.STRING for all DateBridges in all DO's.
8675a1dbe Found big performance issue: Declared all Kotlin JPA entities and their properties as open. Lazy loading wasn't supported by Hibernate and results in thousands of JPA queries...
39cdd224c Hibernate search: DateBridge...
02e3f2c4c TeamEventDO: code warning fixed: log is now member of companien (annotation Transient fixed).
aab28d48a TeamEvent.java -> ICalendarEvent as Kotlin interface.
0e34ffee4 Calendar event editing: recurrency works.
28bf9a8ca TeamEventDO: fix: column name organizer_additional_params. Some props must be nullable. Now the calendar seems to work again.
13efef1ee TeamEventDO.java -> TeamEventDO.kt