Files
qt5-legatus-legacy/Lts/Services/SituationReplayManagement/srm_service.xml
T
2026-08-13 18:33:10 +02:00

99 lines
5.3 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<service namespace="SituationReplayManagement" abbreviation="SRM" procNames="SituationReplayManagement" exerciseDependency="Global">
<rcs>
<Id Id="$Id$"/>
<HeadURL HeadURL="$HeadURL$"/>
<Author Author="$Author$"/>
</rcs>
<operatorRights offset="37">
<guiPlugin name="SituationReplayManagement" offset="1">
<operatorRightGroup name="Replay Management" description="Manage Replays">
<operatorRight right="ReplayManagement" value="1" description="Manage Replays"/>
</operatorRightGroup>
</guiPlugin>
</operatorRights>
<tables>
<table name="replay_partition">
<column name="id" datatype="integer" isPrimaryKey="1" comment="not serial, since partition_no &amp;lt; 256"/>
<column name="exercise_id" datatype="integer" isForeignKey="1"/>
<column name="workstation_id" datatype="integer" isForeignKey="1"/>
<column name="operator_id" datatype="integer" isForeignKey="1"/>
<column name="replay_type_id" datatype="integer" isForeignKey="1"/>
<column name="is_used" datatype="boolean" default="false"/>
<column name="created" datatype="timestamp" default="now()"/>
<foreignKey name="FK_replay_exercise">
<source table="replay_partition" column="exercise_id"/>
<destination service="ExerciseManagement" serviceAbbr="exm" schema="exm" table="exercise" column="id"/>
</foreignKey>
<foreignKey name="FK_replay_replay_type">
<source table="replay_partition" column="replay_type_id"/>
<destination service="Core" serviceAbbr="core" schema="core" table="replay_type" column="id"/>
</foreignKey>
<foreignKey name="FK_replay_partition_opm_operator">
<source table="replay_partition" column="operator_id"/>
<destination service="OperatorManagement" serviceAbbr="opm" schema="opm" table="opm_operator" column="id"/>
</foreignKey>
<foreignKey name="FK_replay_partition_asm_asset">
<source table="replay_partition" column="workstation_id"/>
<destination service="AssetManagement" serviceAbbr="asm" schema="asm" table="asm_asset" column="id"/>
</foreignKey>
</table>
<table name="replay_partition_journal" comment="Information about past and currently used replay partitions (as a journal)">
<column name="id" datatype="bigint" isPrimaryKey="1">
<sequence start="1" increment="1"/>
</column>
<column name="replay_partition_id" datatype="integer" default="0"/>
<column name="replay_type_id" datatype="integer" isForeignKey="1"/>
<column name="exercise_id" datatype="integer" isForeignKey="1"/>
<column name="workstation_id" datatype="integer" isForeignKey="1"/>
<column name="operator_id" datatype="bigint" isForeignKey="1"/>
<column name="created" datatype="timestamp" default="now()"/>
<foreignKey name="FK_replay_journal_replay_type">
<source table="replay_partition_journal" column="replay_type_id"/>
<destination service="Core" serviceAbbr="core" schema="core" table="replay_type" column="id"/>
</foreignKey>
<foreignKey name="FK_replay_journal_exercise">
<source table="replay_partition_journal" column="exercise_id"/>
<destination service="ExerciseManagement" serviceAbbr="exm" schema="exm" table="exercise" column="id"/>
</foreignKey>
<foreignKey name="FK_replay_partition_journal_opm_operator">
<source table="replay_partition_journal" column="operator_id"/>
<destination service="OperatorManagement" serviceAbbr="opm" schema="opm" table="opm_operator" column="id"/>
</foreignKey>
<foreignKey name="FK_replay_partition_journal_asm_asset">
<source table="replay_partition_journal" column="workstation_id"/>
<destination service="AssetManagement" serviceAbbr="asm" schema="asm" table="asm_asset" column="id"/>
</foreignKey>
</table>
</tables>
<views/>
<dbServiceStructs>
<serviceStruct name="SrmReplayPartition" table="replay_partition"/>
<serviceStruct name="SrmReplayPartitionJournal" table="replay_partition_journal"/>
<table name="replay_partition"/>
<table name="replay_partition_journal"/>
</dbServiceStructs>
<topicTypes>
<topicType name="ReplayPartitionCreateRequest">
<column name="workstationId" idlType="long"/>
<column name="exerciseId" idlType="long"/>
<column name="operatorId" idlType="long"/>
<column name="replayType" idlType="Core::ReplayType"/>
</topicType>
<topicType name="ReplayPartitionRemoveRequest">
<column name="id" idlType="long"/>
<column name="workstationId" idlType="long"/>
<column name="operatorId" idlType="long"/>
</topicType>
</topicTypes>
<functionTopics>
<functionTopic name="ReplayPartitionCreate" requestTopicType="ReplayPartitionCreateRequest" replyTopicType="Core::FunctionReply" requestTopicName="ReplayPartitionCreateRequest" replyTopicName="ReplayPartitionCreateReply" routeInReplay="0"/>
<functionTopic name="ReplayPartitionRemove" requestTopicType="ReplayPartitionRemoveRequest" replyTopicType="Core::FunctionReply" requestTopicName="ReplayPartitionRemoveRequest" replyTopicName="ReplayPartitionRemoveReply" routeInReplay="0"/>
</functionTopics>
<enumerations>
<enumeration name="DummyEnum">
<attribute key="Dummy" value="0"/>
</enumeration>
</enumerations>
</service>