Skip to content

Commit

Permalink
Merge branch 'appng-manager-1.18.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
appng-buildmaster committed Jan 13, 2022
2 parents 3b371a4 + 8907593 commit 05cf0e7
Show file tree
Hide file tree
Showing 37 changed files with 1,428 additions and 206 deletions.
5 changes: 3 additions & 2 deletions application-home/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<description>Administrator with all permissions</description>
<permission id="output-format.html" />
<permission id="output-type.webgui" />
<permission id="mail.send" />
<!-- site -->
<permission id="site.list" />
<permission id="site.create" />
Expand Down Expand Up @@ -218,6 +219,7 @@
<permission id="debug">debug view</permission>
<permission id="output-format.html">HTML Format</permission>
<permission id="output-type.webgui">Web-GUI type</permission>
<permission id="mail.send">Send a test E-mail</permission>
<!-- site -->
<permission id="site.list">List all sites</permission>
<permission id="site.create">Create a new site</permission>
Expand Down Expand Up @@ -337,8 +339,7 @@
<property id="eventReportSender" description="the sender for the event report email">report@example.com</property>
<property id="eventReportSubject" description="the subject for the event report email">appNG event report</property>
<property id="eventReportText" description="the text for the event report email">See attached file for a report of the recent appNG platform events.</property>
<property id="eventReportTypes"
description="the event types to be included in the even report email (CREATE, UPDATE, DELETE, INFO, ERROR, WARN)">CREATE UPDATE DELETE INFO ERROR WARN</property>
<property id="eventReportTypes" description="the event types to be included in the even report email (CREATE, UPDATE, DELETE, INFO, ERROR, WARN)">CREATE UPDATE DELETE INFO ERROR WARN</property>
<property id="databaseReportReceivers"
description="a semicolon separted list of receviers for DatabaseReportJob, additional to all users with role 'Database report receiver'"></property>
<property id="databaseReportSender" description="the sender for the database report email">report@example.com</property>
Expand Down
4 changes: 4 additions & 0 deletions application-home/conf/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
<session-param name="eU" />
<session-param name="eH" />
<session-param name="eN" />
<!-- site filtering -->
<session-param name="f_sn" />
<session-param name="f_sd" />
<session-param name="f_sa" />
</session-params>
</session>
</config>
Expand Down
10 changes: 10 additions & 0 deletions application-home/conf/datasources/ds-cache.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</permissions>
<params>
<param name="siteid" />
<param name="clearLink" />
</params>
<meta-data bindClass="java.util.Map$Entry">
<field name="key" type="longtext">
Expand All @@ -18,6 +19,15 @@
<label>value</label>
</field>
</meta-data>
<linkpanel location="bottom" id="other">
<link target="${clearLink}" mode="intern">
<icon>delete</icon>
<label id="cache.clear" />
<permissions>
<permission ref="cache.clear" mode="set" />
</permissions>
</link>
</linkpanel>
</config>
<bean id="cache">
<option name="mode" id="statistics" />
Expand Down
44 changes: 44 additions & 0 deletions application-home/conf/datasources/ds-mail.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns="http://www.appng.org/schema/platform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.appng.org/schema/platform http://www.appng.org/schema/platform/appng-platform.xsd">

<datasource id="mailForm">
<config>
<title>mailer</title>
<params>
<param name="siteid" />
</params>
<meta-data bindClass="org.appng.application.manager.form.MailForm">
<field name="mailHostAndPort" type="text" readonly="true">
<label id="mail.host" />
</field>
<field name="senderName" type="text">
<label id="mail.sender.name"/>
</field>
<field name="senderAddress" type="text">
<label id="mail.sender.email"/>
</field>
<field name="receiverName" type="text">
<label id="mail.receiver.name"/>
</field>
<field name="receiverAddress" type="text">
<label id="mail.receiver.email"/>
</field>
<field name="subject" type="text">
<label id="mail.subject"/>
</field>
<field name="textContent" type="longtext">
<label id="mail.content.text"/>
</field>
<field name="htmlContent" type="richtext">
<label id="mail.content.html"/>
</field>
<field name="attachment" type="file">
<label id="mail.attachment"/>
</field>
</meta-data>
</config>
<bean id="mailer" />
</datasource>

</datasources>
3 changes: 2 additions & 1 deletion application-home/conf/datasources/ds-sites.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<params>
<param name="name" />
<param name="domain" />
<param name="active" />
</params>
<meta-data bindClass="org.appng.api.model.Site">
<field name="name" type="text">
Expand Down Expand Up @@ -110,7 +111,7 @@
</linkpanel>
</config>
<bean id="sites">
<option name="site" siteName="${name}" siteDomain="${domain}" />
<option name="site" siteName="${name}" siteDomain="${domain}" siteActive="${active}"/>
</bean>
</datasource>

Expand Down
12 changes: 7 additions & 5 deletions application-home/conf/datasources/ds-subjects.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@
<sort ignore-case="true" />
<label>realname</label>
</field>
<field name="description" type="text">
<label>description</label>
<field name="email" type="text">
<sort ignore-case="true" />
<label>email</label>
</field>
<field name="typeName" type="text">
<label>userType</label>
</field>
<field name="language" type="text">
<label>language</label>
<field name="description" type="text" displayLength="40">
<sort ignore-case="true" />
<label>description</label>
</field>
<field name="locked" type="image">
<label>locked</label>
Expand Down Expand Up @@ -67,7 +69,7 @@
</linkpanel>
</config>
<bean id="subjects">
<option name="subject" groupId="${groupId}"/>
<option name="subject" groupId="${groupId}" />
</bean>
</datasource>

Expand Down
22 changes: 22 additions & 0 deletions application-home/conf/events/ev-mail.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<event id="mailEvent" xmlns="http://www.appng.org/schema/platform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.appng.org/schema/platform http://www.appng.org/schema/platform/appng-platform.xsd">

<config />

<action id="sendMail">
<config>
<title id="mail.test" />
<permissions>
<permission ref="mail.send" mode="set" />
</permissions>
<params>
<param name="form_action" />
</params>
</config>
<condition expression="${form_action eq 'sendMail'}" />
<datasource id="mailForm" />
<bean id="mailer" />
</action>

</event>
3 changes: 3 additions & 0 deletions application-home/conf/pages/pg-sites.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<get-param name="fCtpe" />
<get-param name="f_sn" />
<get-param name="f_sd" />
<get-param name="f_sa" />
</get-params>
<post-params>
<post-param name="form_action" />
Expand All @@ -55,6 +56,7 @@
<params>
<param name="name">${f_sn}</param>
<param name="domain">${f_sd}</param>
<param name="active">${f_sa}</param>
</params>
</datasource>
</element>
Expand Down Expand Up @@ -275,6 +277,7 @@
<datasource id="cacheStatistics">
<params>
<param name="siteid">${siteid}</param>
<param name="clearLink">/sites/update/${siteid}&#63;act=clearCache</param>
</params>
<condition expression="${not empty siteid}" />
</datasource>
Expand Down
5 changes: 5 additions & 0 deletions application-home/conf/pages/pg-system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@
</datasource>
</element>
</section>
<section>
<element>
<action id="sendMail" onSuccess="/system#tab_sendMail" eventId="mailEvent" />
</element>
</section>

<!-- hidden inline actions -->
<section hidden="true">
Expand Down
13 changes: 13 additions & 0 deletions application-home/dictionary/manager-messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,19 @@ logconfig.reloaded=Log4j Configuration has been reloaded!
logconfig.spreadClusterWide=Apply to all cluster nodes
logfile=Logfile
longDescription=Long Description
mail.disabled=Sending E-Mails is disabled by site-property 'mailDisabled'!
mail.success=E-Mail has been sent to {0}
mail.error=Sending E-mail to {0} failed!
mail.test=Send E-mail
mail.host=Host
mail.sender.name=Sender name
mail.sender.email=Sender address
mail.receiver.name=Receiver name
mail.receiver.email=Receiver address
mail.subject=Subject
mail.content.text=Text content
mail.content.html=HTML content
mail.attachment=Attachment
managed=managed
maxConnections=Max. number of connections
memory=Memory
Expand Down
13 changes: 13 additions & 0 deletions application-home/dictionary/manager-messages_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,19 @@ logconfig.reloaded=Log4j Konfiguration wurde neu geladen!
logconfig.spreadClusterWide=Auf alle Cluster-Nodes anwenden
logfile=Log-Datei
longDescription=Langbeschreibung
mail.disabled=Versand von E-Mails ist durch Site-Property 'mailDisabled' deaktiviert!
mail.success=E-Mail wurde versand an {0}
mail.error=Senden der E-Mail an {0} schlug fehl!
mail.test=Sende E-mail
mail.host=Mail-Server
mail.sender.name=Absender Name
mail.sender.email=Absender Adresse
mail.receiver.name=Empfänger Name
mail.receiver.email=Empfänger Adresse
mail.subject=Betreff
mail.content.text=Text Nachricht
mail.content.html=HTML Nachricht
mail.attachment=Anhang
managed=verwaltet
maxConnections=Max. Anzahl Verbindungen
memory=Speicher
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>appng-manager</artifactId>
<packaging>jar</packaging>
<name>appNG Manager</name>
<version>1.17.2</version>
<version>1.19.0</version>
<description><![CDATA[Global appNG administration]]></description>
<url>https://appng.org</url>

Expand Down
Loading

0 comments on commit 05cf0e7

Please sign in to comment.