#2742 Events tab: decode events from all channels stored in the database

- EventManager collects decode events from all channels (tracked by identity, re-checked for in-place updates)
  and saves/broadcasts EventRecord snapshots for the Events tab and future API subscribers.
- Schema version 3: events and event_patched_talkgroups tables; IEventRepository/EventRepository for H2,
  MariaDB and PostgreSQL.
- Events tab after Calls: paging, page size, talkgroup/radio alias search, category, event type, protocol,
  system, details and date filters, live updates, talkgroup hold context menu.
- Aliases resolved at display time from the stored alias list name (shared IdentifierRecord base with calls,
  SqlSupport filter helpers).
- Database switch transfers events; event age-off rule (default 30 days) in the database preferences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
denny
2026-11-22 02:29:09 -05:00
parent 6dc1f0fdcb
commit d92070bd11
27 changed files with 3744 additions and 588 deletions

View File

@@ -21,7 +21,7 @@ package io.github.dsheirer.gui.calls;
import io.github.dsheirer.alias.Alias;
import io.github.dsheirer.alias.AliasList;
import io.github.dsheirer.alias.AliasModel;
import io.github.dsheirer.database.call.CallRecord;
import io.github.dsheirer.database.IdentifierRecord;
import io.github.dsheirer.database.call.PatchedTalkgroup;
/**
@@ -41,7 +41,7 @@ public class CallAliasResolver
mAliasModel = aliasModel;
}
private AliasList getAliasList(CallRecord call)
private AliasList getAliasList(IdentifierRecord call)
{
if(mAliasModel == null || call == null || call.getAliasList() == null || call.getAliasList().isEmpty())
{
@@ -54,7 +54,7 @@ public class CallAliasResolver
/**
* Current alias for the TO talkgroup, patch group or radio of the call, or null.
*/
public Alias getToAlias(CallRecord call)
public Alias getToAlias(IdentifierRecord call)
{
AliasList aliasList = getAliasList(call);
@@ -70,7 +70,7 @@ public class CallAliasResolver
return aliasList.getTalkgroupAlias(call.getProtocolValue(), value, call.getToFullyQualified());
}
if(CallRecord.FORM_RADIO.equals(call.getToForm()))
if(IdentifierRecord.FORM_RADIO.equals(call.getToForm()))
{
return aliasList.getRadioAlias(call.getProtocolValue(), value, call.getToFullyQualified());
}
@@ -81,7 +81,7 @@ public class CallAliasResolver
/**
* Current alias for the FROM radio of the call, or null.
*/
public Alias getFromAlias(CallRecord call)
public Alias getFromAlias(IdentifierRecord call)
{
AliasList aliasList = getAliasList(call);
@@ -99,7 +99,7 @@ public class CallAliasResolver
* Talkgroups patched into the TO patch group, with their current alias names, e.g. "1001 Fire Dispatch, 1002",
* or null when the call isn't a patch group call.
*/
public String getPatchedTalkgroups(CallRecord call)
public String getPatchedTalkgroups(IdentifierRecord call)
{
if(call == null || call.getPatchedTalkgroups().isEmpty())
{
@@ -134,7 +134,7 @@ public class CallAliasResolver
/**
* Name of the current TO alias, or null
*/
public String getToAliasName(CallRecord call)
public String getToAliasName(IdentifierRecord call)
{
Alias alias = getToAlias(call);
return alias != null ? alias.getName() : null;
@@ -143,7 +143,7 @@ public class CallAliasResolver
/**
* Name of the current FROM alias, or null
*/
public String getFromAliasName(CallRecord call)
public String getFromAliasName(IdentifierRecord call)
{
Alias alias = getFromAlias(call);
return alias != null ? alias.getName() : null;