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

146 lines
7.5 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<service namespace="MarkerManagement" abbreviation="MRK" procNames="MarkerManagement" exerciseDependency="Exercise">
<rcs>
<Id Id="$Id$"/>
<HeadURL HeadURL="$HeadURL$"/>
<Author Author="$Author$"/>
</rcs>
<operatorRights offset="20">
<guiPlugin name="MarkerManagement" offset="1">
<operatorRightGroup name="Marker Management" description="Edit/Create Marker">
<operatorRight right="MarkerEdit" value="1" description="Edit/Create Marker"/>
<operatorRight right="MarkerShow" value="2" description="Show Marker"/>
</operatorRightGroup>
<operatorRightGroup name="Snapshots" description="Edit/Create Snapshots">
<operatorRight right="SnapshotEdit" value="3" description="Edit/Create Snapshots"/>
<operatorRight right="SnapshotShow" value="4" description="Show Snapshots"/>
</operatorRightGroup>
</guiPlugin>
</operatorRights>
<tables>
<table name="mrk_marker">
<column name="id" datatype="integer" isPrimaryKey="1">
<sequence start="1" increment="1"/>
</column>
<column name="note" datatype="text" comment="Describes the reason of the marker"/>
<column name="operator_id" datatype="bigint" isForeignKey="1"/>
<column name="time_stamp" datatype="bigint" comment="Time on which the mark was set"/>
<column name="time_stamp_offset" datatype="bigint" comment="Offset to timestamp, used to get history of the marked event."/>
<column name="map_settings" datatype="text"/>
<column name="filter" datatype="text"/>
<column name="position" datatype="point_2d"/>
<column name="file_content_id" datatype="bigint"/>
<constraint name="UQ_mrk_marker_id" type="unique">
<column name="id"/>
</constraint>
<foreignKey name="FK_mrk_marker_opm_operator">
<source table="mrk_marker" column="operator_id"/>
<destination service="OperatorManagement" serviceAbbr="opm" schema="opm" table="opm_operator" column="id"/>
</foreignKey>
</table>
<table name="mrk_marker_description">
<column name="id" datatype="integer" isPrimaryKey="1">
<sequence start="1" increment="1"/>
</column>
<column name="marker_id" datatype="integer" isForeignKey="1"/>
<column name="marker_type_id" datatype="integer" isForeignKey="1"/>
<column name="content" datatype="text" comment="Contains the name of the available devices eg. CAM07, CAM08*, TVC01, TVC02... The asterisk denotes the name for this data set. For each record is only one asterisk possible."/>
<constraint name="UQ_mrk_marker_description_id" type="unique">
<column name="id"/>
</constraint>
<constraint name="IDX_mrk_marker_description_marker_id" type="index">
<column name="marker_id"/>
</constraint>
<foreignKey name="FK_mrk_marker_description_mrk_marker_type">
<source table="mrk_marker_description" column="marker_type_id"/>
<destination table="mrk_marker_type" column="id"/>
</foreignKey>
<foreignKey name="FK_mrk_marker_description_mrk_marker">
<source table="mrk_marker_description" column="marker_id"/>
<destination table="mrk_marker" column="id"/>
</foreignKey>
</table>
<table name="mrk_marker_type">
<column name="id" datatype="integer" isPrimaryKey="1">
<sequence start="1" increment="1"/>
</column>
<column name="name" datatype="text" comment="Contains the name of the MarkerType"/>
<constraint name="UQ_marker_type_id" type="unique">
<column name="id"/>
</constraint>
</table>
<table name="mrk_snapshot">
<column name="id" datatype="bigint" isPrimaryKey="1">
<sequence start="1" increment="1"/>
</column>
<column name="name" datatype="text"/>
<column name="description" datatype="text"/>
<column name="file_content_id" datatype="bigint"/>
<column name="map_settings" datatype="text"/>
<column name="movement_tracks" datatype="text"/>
<column name="operator_id" datatype="bigint" isForeignKey="1"/>
<column name="time_stamp" datatype="bigint"/>
<column name="filter" datatype="text"/>
<column name="plan_overlay" datatype="text"/>
<foreignKey name="FK_mrk_snapshot_opm_operator">
<source table="mrk_snapshot" column="operator_id"/>
<destination service="OperatorManagement" serviceAbbr="opm" schema="opm" table="opm_operator" column="id"/>
</foreignKey>
</table>
</tables>
<views/>
<dbServiceStructs>
<serviceStruct name="MrkMarker" table="mrk_marker"/>
<serviceStruct name="MrkMarkerDescription" table="mrk_marker_description"/>
<serviceStruct name="MrkSnapshot" table="mrk_snapshot"/>
<table name="mrk_marker_type"/>
<table name="mrk_marker"/>
<table name="mrk_marker_description"/>
<table name="mrk_snapshot"/>
</dbServiceStructs>
<topicTypes>
<topicType name="Marker" isDataObject="1" routeToClient="1" routeToServer="0" routeInReplay="1" baseValueType="Core::BaseEntity">
<column name="note" idlType="string" comment="Describes the reason of the marker"/>
<column name="operatorId" idlType="long"/>
<column name="timeStamp" idlType="long long"/>
<column name="timeStampOffset" idlType="long long"/>
<column name="descriptions" idlType="sequence&lt;MarkerDescription&gt;"/>
<column name="mapSettings" idlType="string"/>
<column name="filter" idlType="string"/>
<column name="position" idlType="Core::GeoPosition"/>
<column name="fileContentId" idlType="long long"/>
</topicType>
<topicType name="MarkerDescription">
<column name="id" idlType="long" comment="FK marker"/>
<column name="markerType" idlType="MarkerType"/>
<column name="content" idlType="string"/>
</topicType>
<topicType name="Snapshot" isDataObject="1" routeToClient="1" routeToServer="0" routeInReplay="1" baseValueType="Core::BaseEntity">
<column name="description" idlType="string"/>
<column name="fileContentId" idlType="long long"/>
<column name="mapSettings" idlType="string"/>
<column name="movementTracks" idlType="string"/>
<column name="operatorId" idlType="long"/>
<column name="timeStamp" idlType="long long"/>
<column name="filter" idlType="string"/>
<column name="planOverlay" idlType="string"/>
</topicType>
</topicTypes>
<functionTopics>
<functionTopic name="MarkerModify" requestTopicType="Marker" replyTopicType="Core::FunctionReply" requestTopicName="MarkerModifyRequest" replyTopicName="MarkerModifyReply" routeInReplay="1"/>
<functionTopic name="MarkerRemove" requestTopicType="Core::RemoveElementRequest" replyTopicType="Core::FunctionReply" requestTopicName="MarkerRemoveRequest" replyTopicName="MarkerRemoveReply" routeInReplay="1"/>
<functionTopic name="SnapshotModify" requestTopicType="Snapshot" replyTopicType="Core::FunctionReply" requestTopicName="SnapshotModifyRequest" replyTopicName="SnapshotModifyReply" routeInReplay="1"/>
<functionTopic name="SnapshotRemove" requestTopicType="Core::RemoveElementRequest" replyTopicType="Core::FunctionReply" requestTopicName="SnapshotRemoveRequest" replyTopicName="SnapshotRemoveReply" routeInReplay="1"/>
</functionTopics>
<customDtcFunctions>
<customDtcFunction/>
</customDtcFunctions>
<enumerations>
<enumeration name="MarkerType" table="mrk_marker_type">
<attribute key="Situation" value="1"/>
<attribute key="Audio" value="2"/>
<attribute key="Video" value="4"/>
</enumeration>
</enumerations>
</service>