#1032: PollDO.kt

projectforge-business/src/main/kotlin/org/projectforge/business/poll/PollDO.kt JPA Entity (Poll), projectforge-business/src/main/kotlin/org/projectforge/business/poll/PollDO.kt 135 lines · 92 code · 22 comments · 21 blank
Central poll entity. Maps to t_poll table. Stores poll metadata (title, description, location, deadline), access control lists (CSV-encoded user IDs and group IDs for attendees and full access), input field definitions, and a state machine (RUNNING → FINISHED → FINISHED_AND_MAIL_SENT).

Entity Design

Extends DefaultBaseDO with @AUserRightId(value="poll", checkAccess=false). Key design elements:

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
67805f2fc ThreadLocalUserContext.user -> ThreadLocalUserContext.loggedInUser
4c04cfd65 MAJOR-CHANGE! Migration of integer id's to Long id's.
c04fb0d51 Migration stuff in progress...
b6092df09 Copyright 2023 -> 2024
b89441787 Added State.FINISHED_AND_MAIL_SENT and smaller fixes
598bfefe0 toIntArray changes
5cfd12067 Reformat code, some logging, i18n & Source Headers
5752ef33b Add Access and Attendee Filter to overview Page
70c983a5f Redo the filter for overview page.
25185faa0 Add Attendee and Access filter.
be1f00a8f accessuser and accessgroup
17c9ac5c6 change data object and database
1bde3ce8b begin to add Questions.
52b6be8ce Database model working
a8a0aedcb poll entries in database possible