Skip to content
Snippets Groups Projects
Commit 84fff35b authored by Andreas Schindlbeck's avatar Andreas Schindlbeck
Browse files

Notification_entity erstellt

parent 4c46e3fa
No related branches found
No related tags found
No related merge requests found
Showing
with 467 additions and 0 deletions
......@@ -2954,6 +2954,208 @@
</entityFieldDb>
</entityFields>
</entityDb>
<entityDb>
<name>ASYS_NOTIFICATIONCONTENTS</name>
<dbName></dbName>
<idColumn>CONTENTID</idColumn>
<idGeneratorType v="0" />
<idGeneratorInterval v="1" />
<documentation></documentation>
<title></title>
<description></description>
<auditSyncConfig>
<name>auditSyncConfig</name>
<auditMode v="0" />
<syncActive v="false" />
<syncComplete v="true" />
<syncDirection v="1" />
<syncIds></syncIds>
</auditSyncConfig>
<entityFields>
<entityFieldDb>
<name>CONTENTID</name>
<dbName></dbName>
<primaryKey v="true" />
<columnType v="1" />
<size v="36" />
<scale v="0" />
<notNull v="true" />
<isUnique v="true" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>FORCEDPRIORITY</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="4" />
<size v="10" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ICON_INFO</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="1023" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>CREATIONDATE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="-5" />
<size v="19" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>LIFETIME</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="-5" />
<size v="19" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>DESCRIPTION</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="1023" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>LINK_INFO</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="1023" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>VERSION</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="4" />
<size v="10" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>RECIPIENTUSERIDS</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="2005" />
<size v="2147483647" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>TYPECODE</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="63" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>BACKPACK</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="2005" />
<size v="2147483647" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>CAPTION</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="512" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
<entityFieldDb>
<name>ORIGINATORNAME</name>
<dbName></dbName>
<primaryKey v="false" />
<columnType v="12" />
<size v="63" />
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<documentation></documentation>
<title></title>
<description></description>
</entityFieldDb>
</entityFields>
</entityDb>
</entities>
</entityGroup>
</aliasDefDb>
......
......@@ -36,6 +36,7 @@
<node name="ADMINISTRATION" kind="123" title="Administration">
<icon>VAADIN:CONTROLLER</icon>
<node name="Group3" kind="123" title="">
<node name="Notification" kind="10077" />
<node name="Attribute" kind="10077" />
<node name="KeywordEntry" kind="10077" />
<node name="KeywordAttribute" kind="10077" />
......
<?xml version="1.0" encoding="UTF-8"?>
<entity xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.3.2" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/entity/1.3.2">
<name>Notification_entity</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<recordContainer>db</recordContainer>
<entityFields>
<entityProvider>
<name>#PROVIDER</name>
<targetContextField>LINKCONTEXT</targetContextField>
<targetIdField>LINKID</targetIdField>
<recordContainer>db</recordContainer>
</entityProvider>
<entityField>
<name>UID</name>
</entityField>
<entityField>
<name>CONTENTID</name>
</entityField>
<entityField>
<name>USER</name>
</entityField>
<entityField>
<name>STATE</name>
</entityField>
<entityField>
<name>BACKPACK</name>
</entityField>
<entityField>
<name>CAPTION</name>
</entityField>
<entityField>
<name>CREATIONDATE</name>
</entityField>
<entityField>
<name>DESCRIPTION</name>
</entityField>
<entityField>
<name>FORCEDPRIORITY</name>
</entityField>
<entityField>
<name>ICON</name>
</entityField>
<entityField>
<name>LIFETIME</name>
</entityField>
<entityField>
<name>ORIGINATORNAME</name>
</entityField>
<entityField>
<name>RECIPIENTUSERIDS</name>
</entityField>
<entityField>
<name>TYPECODE</name>
</entityField>
<entityField>
<name>VERSION</name>
</entityField>
<entityField>
<name>LINKCONTEXT</name>
<valueProcess>%aditoprj%/entity/Notification_entity/entityfields/linkcontext/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>LINKID</name>
<valueProcess>%aditoprj%/entity/Notification_entity/entityfields/linkid/valueProcess.js</valueProcess>
</entityField>
<entityField>
<name>LINKINFO</name>
</entityField>
</entityFields>
<recordContainers>
<dbRecordContainer>
<name>db</name>
<alias>_____SYSTEMALIAS</alias>
<isPageable v="false" />
<conditionProcess>%aditoprj%/entity/Notification_entity/recordcontainers/db/conditionProcess.js</conditionProcess>
<linkInformation>
<linkInformation>
<name>33b9740c-cd3d-43ec-97e6-65c9e880655a</name>
<tableName>ASYS_NOTIFICATIONS</tableName>
<primaryKey>ID</primaryKey>
<isUIDTable v="true" />
<readonly v="false" />
</linkInformation>
<linkInformation>
<name>b9a8b01d-bdc5-4132-801f-be4e799fff1c</name>
<tableName>ASYS_NOTIFICATIONCONTENTS</tableName>
<primaryKey>CONTENTID</primaryKey>
<isUIDTable v="false" />
<readonly v="true" />
</linkInformation>
</linkInformation>
<recordFieldMappings>
<dbRecordFieldMapping>
<name>BACKPACK.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.BACKPACK</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>CAPTION.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.CAPTION</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>CONTENTID.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.CONTENTID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>CREATIONDATE.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.CREATIONDATE</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>DESCRIPTION.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.DESCRIPTION</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>FORCEDPRIORITY.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.FORCEDPRIORITY</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>ICON.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.ICON_INFO</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>LIFETIME.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.LIFETIME</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>ORIGINATORNAME.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.ORIGINATORNAME</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>RECIPIENTUSERIDS.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.RECIPIENTUSERIDS</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>STATE.value</name>
<recordfield>ASYS_NOTIFICATIONS.STATE</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>TYPECODE.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.TYPECODE</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>UID.value</name>
<recordfield>ASYS_NOTIFICATIONS.ID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>USER.value</name>
<recordfield>ASYS_NOTIFICATIONS.USERID</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>VERSION.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.VERSION</recordfield>
</dbRecordFieldMapping>
<dbRecordFieldMapping>
<name>LINKINFO.value</name>
<recordfield>ASYS_NOTIFICATIONCONTENTS.LINK_INFO</recordfield>
</dbRecordFieldMapping>
</recordFieldMappings>
</dbRecordContainer>
</recordContainers>
</entity>
import("system.logging");
import("system.vars");
import("system.result");
import("system.text");
var context = text.decodeMS(vars.get("$field.LINKINFO"))[0];
logging.log("context: " + context);
result.string(context);
\ No newline at end of file
import("system.logging");
import("system.vars");
import("system.result");
import("system.text");
var id = text.decodeMS(vars.get("$field.LINKINFO"))[1];
logging.log("id: " + id);
result.string(id);
\ No newline at end of file
import("system.logging");
import("system.result");
import("system.vars");
import("system.util");
import("system.tools");
var user = tools.getCurrentUser();
var userid = user["name"];
result.object("ASYS_NOTIFICATIONS.CONTENTID = ASYS_NOTIFICATIONCONTENTS.CONTENTID and USERID = '" + userid + "'");
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<neonContext xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonContext/1.1.0">
<name>Notification</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<filterview>NotificationFilter_view</filterview>
<preview>NotificationPreview_view</preview>
<entity>Notification_entity</entity>
<references>
<neonViewReference>
<name>110703ad-3509-4472-90e6-6825a05ff55b</name>
<view>NotificationFilter_view</view>
</neonViewReference>
<neonViewReference>
<name>f47542b9-ccf9-4487-ae3f-cdfda61cff3a</name>
<view>NotificationPreview_view</view>
</neonViewReference>
</references>
</neonContext>
......@@ -3,6 +3,7 @@
<name>AndisNotification</name>
<title>Andis Noti</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<icon>VAADIN:ASTERISK</icon>
<resultFrameNeon></resultFrameNeon>
<onResultOpen>%aditoprj%/neonNotificationType/AndisNotification/onResultOpen.js</onResultOpen>
</neonNotificationType>
<?xml version="1.0" encoding="UTF-8"?>
<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.1" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.1">
<name>NotificationFilter_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<filterable v="true" />
<layout>
<boxLayout>
<name>layout</name>
</boxLayout>
</layout>
<children>
<tableViewTemplate>
<name>Table</name>
<entityField>#ENTITY</entityField>
<columns>
<neonTableColumn>
<name>0ed20b46-be6a-424c-a583-a3f7496ec3f9</name>
<entityField>ICON</entityField>
</neonTableColumn>
<neonTableColumn>
<name>3bf425ed-227c-4768-b339-4794aa0d6063</name>
<entityField>CAPTION</entityField>
</neonTableColumn>
<neonTableColumn>
<name>ff33a6c1-7ac6-4acd-a083-e56a36f89977</name>
<entityField>DESCRIPTION</entityField>
</neonTableColumn>
<neonTableColumn>
<name>63df503b-2502-4123-917a-77c932f61268</name>
<entityField>ORIGINATORNAME</entityField>
</neonTableColumn>
<neonTableColumn>
<name>5cb09de4-4413-41e5-8a7c-4970a3cf6a62</name>
<entityField>STATE</entityField>
</neonTableColumn>
</columns>
</tableViewTemplate>
</children>
</neonView>
<?xml version="1.0" encoding="UTF-8"?>
<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.1" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.1">
<name>NotificationPreview_view</name>
<majorModelMode>DISTRIBUTED</majorModelMode>
<filterable v="false" />
<layout>
<boxLayout>
<name>layout</name>
</boxLayout>
</layout>
<children>
<cardViewTemplate>
<name>Card</name>
<iconField>#ICON</iconField>
<titleField>CAPTION</titleField>
<descriptionField>DESCRIPTION</descriptionField>
<entityField>#ENTITY</entityField>
</cardViewTemplate>
</children>
</neonView>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment