153 lines
7.8 KiB
XML
Executable File
153 lines
7.8 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<service namespace="NotificationManagement" abbreviation="NOM" procNames="NotificationManagement" exerciseDependency="Global" groups="Core">
|
|
<rcs>
|
|
<Id Id="$Id: ea_export_script.txt 51656 2020-07-13 08:38:27Z diers $"/>
|
|
<HeadURL HeadURL="$HeadURL: svn://192.168.133.21/TDS/branches/product/devel/trunk/Lts/Common/CodeGen/ea_export_script.txt $"/>
|
|
<Author Author="$Author: diers $"/>
|
|
</rcs>
|
|
<tables>
|
|
<table name="address_type">
|
|
<column name="id" datatype="integer" isPrimaryKey="1">
|
|
<sequence start="1" increment="1"/>
|
|
</column>
|
|
<column name="name" datatype="text"/>
|
|
</table>
|
|
<table name="nom_address">
|
|
<column name="id" datatype="integer" isPrimaryKey="1">
|
|
<sequence start="1" increment="1"/>
|
|
</column>
|
|
<column name="address_type_id" datatype="integer" isForeignKey="1"/>
|
|
<column name="address_id" datatype="integer"/>
|
|
<column name="name" datatype="text"/>
|
|
<column name="address_sub_id" datatype="integer"/>
|
|
<column name="address_sub_sub_id" datatype="integer"/>
|
|
<column name="is_read" datatype="boolean"/>
|
|
<column name="notification_id" datatype="integer" isForeignKey="1"/>
|
|
<column name="is_sender" datatype="boolean"/>
|
|
<column name="is_deleted" datatype="boolean"/>
|
|
<foreignKey name="FK_nom_address_nom_notification">
|
|
<source table="nom_address" column="notification_id"/>
|
|
<destination table="nom_notification" column="id"/>
|
|
</foreignKey>
|
|
<foreignKey name="FK_nom_address_address_type">
|
|
<source table="nom_address" column="address_type_id"/>
|
|
<destination table="address_type" column="id"/>
|
|
</foreignKey>
|
|
</table>
|
|
<table name="nom_notification">
|
|
<column name="id" datatype="integer" isPrimaryKey="1">
|
|
<sequence start="1" increment="1"/>
|
|
</column>
|
|
<column name="content" datatype="text"/>
|
|
<column name="exercise_id" datatype="integer"/>
|
|
<column name="expiry_time" datatype="bigint"/>
|
|
<column name="priority_id" datatype="integer" isForeignKey="1"/>
|
|
<column name="processed" datatype="integer"/>
|
|
<column name="processed_priority" datatype="integer" isForeignKey="1"/>
|
|
<column name="process_time" datatype="bigint"/>
|
|
<column name="time_stamp" datatype="bigint"/>
|
|
<column name="title" datatype="text"/>
|
|
<column name="message_type" datatype="integer"/>
|
|
<column name="notification_type" datatype="integer"/>
|
|
<column name="properties" datatype="jsonb"/>
|
|
<foreignKey name="FK_nom_notification_priority_prio">
|
|
<source table="nom_notification" column="priority_id"/>
|
|
<destination table="priority" column="id"/>
|
|
</foreignKey>
|
|
<foreignKey name="FK_nom_notification_priority_processed">
|
|
<source table="nom_notification" column="processed_priority"/>
|
|
<destination table="priority" column="id"/>
|
|
</foreignKey>
|
|
</table>
|
|
<table name="priority">
|
|
<column name="id" datatype="integer" isPrimaryKey="1">
|
|
<sequence start="1" increment="1"/>
|
|
</column>
|
|
<column name="name" datatype="text"/>
|
|
</table>
|
|
</tables>
|
|
<views/>
|
|
<dbServiceStructs>
|
|
<serviceStruct name="NomAddress" table="nom_address"/>
|
|
<serviceStruct name="NomNotification" table="nom_notification"/>
|
|
<table name="nom_address"/>
|
|
<table name="nom_notification"/>
|
|
</dbServiceStructs>
|
|
<topicTypes>
|
|
<topicType name="Address">
|
|
<column name="id" idlType="long" isKey="1"/>
|
|
<column name="addressType" idlType="AddressType"/>
|
|
<column name="addressId" idlType="long"/>
|
|
<column name="name" idlType="string"/>
|
|
<column name="addressSubId" idlType="long"/>
|
|
<column name="addressSubSubId" idlType="long"/>
|
|
<column name="isRead" idlType="boolean"/>
|
|
<column name="isDeleted" idlType="boolean"/>
|
|
</topicType>
|
|
<topicType name="CreateNotification">
|
|
<column name="notification" idlType="NomNotification"/>
|
|
</topicType>
|
|
<topicType name="NomNotification" isDataObject="1" autosubscribe="1" routeToClient="1" routeToServer="0" routeInReplay="0">
|
|
<column name="content" idlType="string"/>
|
|
<column name="contentArgs" idlType="sequence<string>"/>
|
|
<column name="exerciseId" idlType="long" comment="When the exercise is deleted, all notifications have to be deleted as well..."/>
|
|
<column name="expiryTime" idlType="long long" comment="after expiration, the priority is always Low, no matter what priority says. 0 for never."/>
|
|
<column name="id" idlType="long" isKey="1"/>
|
|
<column name="priority" idlType="Priority"/>
|
|
<column name="processed" idlType="long" comment="address.id of the receipient who processed the notification"/>
|
|
<column name="processedPriority" idlType="Priority" comment="new Priority, this notification shall have for all other receipients, after the notification has been processed by one receipient (when erosion has taken place)."/>
|
|
<column name="processTime" idlType="long long"/>
|
|
<column name="recipientIds" idlType="sequence<Address>"/>
|
|
<column name="sender" idlType="Address"/>
|
|
<column name="timeStamp" idlType="long long"/>
|
|
<column name="title" idlType="string"/>
|
|
<column name="titleArgs" idlType="sequence<string>"/>
|
|
<column name="messageType" idlType="MessageType"/>
|
|
<column name="notificationType" idlType="NotificationType"/>
|
|
</topicType>
|
|
<topicType name="ReadReceipt">
|
|
<column name="addressId" idlType="long" comment="address.id of the receipient who read/processed the notificaton"/>
|
|
<column name="operatorId" idlType="long"/>
|
|
<column name="workstationId" idlType="long"/>
|
|
<column name="notificationIds" idlType="sequence<long>"/>
|
|
<column name="processed" idlType="boolean" comment="check, if the not only the notification has been read, but the task given was also processed."/>
|
|
</topicType>
|
|
<topicType name="DeleteMessage">
|
|
<column name="addressId" idlType="long" comment="address.id of the receipient who read/processed the notificaton"/>
|
|
<column name="operatorId" idlType="long"/>
|
|
<column name="workstationId" idlType="long"/>
|
|
<column name="notificationIds" idlType="sequence<long>"/>
|
|
</topicType>
|
|
</topicTypes>
|
|
<functionTopics>
|
|
<functionTopic name="CreateNotification" requestTopicType="CreateNotification" replyTopicType="Core::FunctionReply" requestTopicName="CreateNotificationRequest" replyTopicName="CreateNotificationReply" routeInReplay="0"/>
|
|
<functionTopic name="ReadReceipt" requestTopicType="ReadReceipt" replyTopicType="Core::FunctionReply" requestTopicName="ReadReceiptRequest" replyTopicName="ReadReceiptReply" routeInReplay="0"/>
|
|
<functionTopic name="DeleteMessage" requestTopicType="DeleteMessage" replyTopicType="Core::FunctionReply" requestTopicName="DeleteMessageRequest" replyTopicName="DeleteMessageReply" routeInReplay="0"/>
|
|
</functionTopics>
|
|
<enumerations>
|
|
<enumeration name="Priority" table="priority">
|
|
<attribute key="Highest" value="1"/>
|
|
<attribute key="High" value="2"/>
|
|
<attribute key="Normal" value="3"/>
|
|
<attribute key="Low" value="4"/>
|
|
</enumeration>
|
|
<enumeration name="AddressType" table="address_type">
|
|
<attribute key="Service" value="0"/>
|
|
<attribute key="Operator" value="1"/>
|
|
<attribute key="Workstation" value="2"/>
|
|
<attribute key="Participant" value="3"/>
|
|
</enumeration>
|
|
<enumeration name="NotificationType">
|
|
<attribute key="AdlerNotification" value="0"/>
|
|
<attribute key="CombatOrder" value="1"/>
|
|
</enumeration>
|
|
<enumeration name="MessageType">
|
|
<attribute key="Success" value="0"/>
|
|
<attribute key="Error" value="1"/>
|
|
<attribute key="Warning" value="2"/>
|
|
<attribute key="Info" value="3"/>
|
|
</enumeration>
|
|
</enumerations>
|
|
<operatorRights offset="54"/>
|
|
</service>
|