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

addNotification Testing

parent 877c440e
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
<column name="ID" type="CHAR(36)">
<constraints primaryKey="true" primaryKeyName="PK_ASYS_NOTIFICATIONS_ID"/>
</column>
<column name="CONTENTID" type="VARCHAR(512)"/>
<column name="CONTENTID" type="CHAR(36)"/>
<column name="STATE" type="VARCHAR(16)"/>
<column name="USERID" type="VARCHAR(63)"/>
</createTable>
......
<?xml version="1.0" encoding="UTF-8"?>
<neonNotificationType 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/neonNotificationType/1.1.0">
<name>AndisNotification</name>
<title>Andis Noti</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<resultFrameNeon></resultFrameNeon>
<onResultOpen>%aditoprj%/neonNotificationType/AndisNotification/onResultOpen.js</onResultOpen>
<context>Contact</context>
</neonNotificationType>
import("system.calendars")
var users = ["Admin", "Birgit Leicht", "John Doe"]
calendars.addPermissions(users, calendars.VEVENT, ["READ", "WRITE"], null, false, calendars.SORTSTRATEGY_NATURAL);
calendars.setCheckAttendeesOnWrite(false);
\ No newline at end of file
import("system.logging");
import("system.calendars")
import("system.notification")
import("system.text");
import("system.util");
var users = ["Admin", "Birgit Leicht", "John Doe"]
calendars.addPermissions(users, calendars.VEVENT, ["READ", "WRITE"], null, false, calendars.SORTSTRATEGY_NATURAL);
calendars.setCheckAttendeesOnWrite(false);
logging.log("autostartneon");
var linkinfo = text.encodeMS(["Person", "1a67eaa7-21da-4a18-97ab-755ac5cb74f7"]);
notification.addNotification(util.getNewUUID(), linkinfo, null, "Andi höhö", "AndisNotification", notification.PRIO_HIGH, 5, "UNSEEN", ["_____USER_bcdfb521-c7d0-4ef1-8916-78e7d3232046"], "AndiNotiCaption", "AndiNotiDescription");
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