#586: TeamEventSubscription.java

projectforge-business/src/main/java/org/projectforge/business/teamcal/externalsubscription/TeamEventSubscription.java Type: JPA Entity (Subscription) · Purpose: JPA entity representing TeamEventSubscription — maps to database table for storing persistent data. · Source: projectforge-business/src/main/java/org/projectforge/business/teamcal/externalsubscription/TeamEventSubscription.java 332 lines · 224 code · 67 comments · 41 blank
JPA entity representing TeamEventSubscription — maps to database table for storing persistent data.

Class: TeamEventSubscription

Implements: Serializable

Fields

NameTypeAccessModifiers
serialVersionUIDlongprivatestatic final
teamCalIdLongprivate
initializedbooleanprivate
subscriptionSubscriptionHolderprivate
recurrenceEventsListprivate
currentInitializedHashStringprivate
numberOfFailedUpdatesintprivate
lastErrorMessageStringprivate
TIME_IN_THE_PASTLongprivatestatic final

Methods

NameReturn TypeAccess
getLastErrorMessage()Stringpublic
getNumberOfFailedUpdates()intpublic
getLastFailedUpdate()Longpublic
update()voidpublic
clear()voidprivate
error()voidprivate
error()voidprivate
calcHexHash()Stringprivate
getEvent()TeamEventDOpublic
getEvents()Listpublic
getTeamCalId()Longpublic
getLastUpdated()Longpublic
getRecurrenceEvents()Listpublic
isInitialized()booleanpublic
setInitialized()voidpublic

Architecture Analysis

Resides in projectforge-business, the core module containing domain logic, services, and persistence.

Git History

CommitWhat changed
868d6abb752025 -> 2026
63081666f6Source file headers: 2024-> 2025.
7b8172ed41TeamEventSubscription: stacktrace removed from error logs.
784a0e6148TeamEventSubscription: don't log stack trace on failed subscriptions.
c193e8288cIcal4j: migration stuff... (all tests OK)
61966790f6Ical4j: migration stuff...
87aaf6a5a5Migration stuff in progress... BaseDao refactored (not yet finished) internal* methods renamed.
3aeda5ef5aBig change: all save|update|...InTrans renamed (InTrans removed). PfPesistenceContext as param not needed anymore (ThreadLocal is used instead). (all tests of all packages: OK).
1135ccbca9Persistence: functions renamed: *NewTrans -> *InTrans
b095e6f7d1!!!!! Big change of Transaction handling: Re-uses PfPersistenceContext as much as possible (not yet finished). Tests doesn't yet run.
4c04cfd652MAJOR-CHANGE! Migration of integer id's to Long id's (including fk's etc.)
b6092df092Copyright 2023 -> 2024
c2701613a4Apache httpclient 5.2 (TeamEventSubscription, SmsSender, PhoneCallpage)
ab45d51fa4Copyright 2001-2022 -> 2001-2023.
c06db1dab7Nearly all jars updated (code changes required).
5f7ef41b8cCopyright 2021 -> 2022
ceb63e8a1bSource code header: (C) 2001-2021.
7c79f1922cCopyright of source header -> 2020.
d3a178833cWrong substitution of "calendar" -> "datetime" while refactoring, reverted commit from 12.12.2019.
9de5dc2773Merge branch 'develop' into TimeClassReplacements
398ebc060fTeamEventSubscription doesn't block calendar callees on start-up for long-running subscriptions.
1350b359e1Heavy WIP: get rid of HibernateTemplate.
73a9755df7More code cleanup: - Collapsed catch blocks that did the exact same things - Replaced ArrayList with ArrayList<> - Replaced StringBuffer with StringBuilder - Removed a few usages of deprecated classes (mainly HSSFColors in Excel) - Replace Collections.sort with List.sort
000ca723d8Remove pointless boolean expressions (business)
c7a1a3d07cTeamEventSubscription.getEvent(uid) searches now also for recurrent events.
b98917406dWIP: Calendar: view external subscribed events...
61a62ea2d9TeamEventSubscription: teamCalDO.setMinorChange(true9.
dd5ca38acdCopyRight of all java file-header updated or created.
f6fb1edbcfTeamCalDO.java -> TeamCalDO.kt
a5bbdca6aaChange logger to slf4j
f979e8a429MGC-UPDATE: Update auf Version 3.0.0-SNAPSHOT
6adb1e403ePROJECTFORGE-2758: Cleanup
2206e54e1bPROJECTFORGE-2758: - Remove TeamCalServiceImple - Split processing of events in validate and persist in ICalHandler - Remove unused stuff in multiple classes - Fix handling of errors in ICalHandler
d9e217bcd8PROJECTFORGE-2758: - Finish first version of ICalHandler - Remove usage of TeamCalServiceImpl - Implement first test for ICalHandler
cc9f1a6564PROJECTFORGE-2758: Start implementing ical handler
2ada8b3772PROJECTFORGE-2758: Refactoring of ical stuff
481fb5528ePROJECTFORGE-2748 Fix CalDAV recurrence bug, TeamCal and TeamEventService has to be refactored more
53bd455267PROJECTFORGE-2675 Add attendees to event
c85751fab8CALDAV Refactoring
9ebb885224Initial commit