-
Notifications
You must be signed in to change notification settings - Fork 2
/
pg-platform.xml
184 lines (176 loc) · 5.62 KB
/
pg-platform.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<?xml version="1.0" encoding="UTF-8"?>
<pages 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">
<page id="platform">
<config>
<title>platform</title>
<permissions>
<permission ref="page.platform" mode="set" />
</permissions>
<url-schema>
<url-params>
<url-param name="entity" />
<url-param name="action" />
<url-param name="id" />
</url-params>
<get-params>
<get-param name="act" />
<get-param name="propertyid" />
<get-param name="id" />
<get-param name="expandSql" />
<!-- event filtering -->
<get-param name="eAp" />
<get-param name="eA" />
<get-param name="eB" />
<get-param name="eT" />
<get-param name="eX" />
<get-param name="eU" />
<get-param name="eH" />
<get-param name="eN" />
</get-params>
<post-params>
<post-param name="form_action" />
</post-params>
</url-schema>
</config>
<structure>
<!-- platform properties -->
<!-- create -->
<section>
<element passive="true">
<action id="create-platform-property" onSuccess="/platform#tab_platformProperties" eventId="propertyEvent">
<condition expression="${entity eq 'property' and action eq 'create'}" />
<params>
<param name="form_action">${form_action}</param>
</params>
</action>
</element>
<!-- update -->
<element passive="true">
<action eventId="propertyEvent" id="update-platform-property" onSuccess="/platform#tab_platformProperties">
<params>
<param name="propertyid">${id}</param>
<param name="form_action">${form_action}</param>
</params>
<condition expression="${entity eq 'property' and action eq 'update' and not empty id}" />
</action>
</element>
<!-- overview -->
<element>
<datasource id="platformProperties">
<params>
<param name="propId">${id}</param>
</params>
</datasource>
</element>
</section>
<!-- Database Connections -->
<section>
<element passive="true">
<action eventId="databaseConnectionEvent" id="updateConnection" onSuccess="/platform#tab_databaseConnections">
<params>
<param name="id">${id}</param>
<param name="form_action">${form_action}</param>
</params>
<condition expression="${entity eq 'connection' and action eq 'update' and not empty id}" />
<permissions>
<permission ref="platform.database.edit" mode="set" />
</permissions>
</action>
</element>
<element folded="true" passive="true">
<datasource id="migrations">
<params>
<param name="id">${id}</param>
</params>
<condition expression="${entity eq 'connection' and action eq 'update' and not empty id}" />
</datasource>
</element>
<element folded="${expandSql ne 'true'}" passive="true">
<action eventId="databaseConnectionEvent" id="executeSql" onSuccess="/platform/connection/update/${id}?expandSql=true#tab_databaseConnections">
<params>
<param name="id">${id}</param>
<param name="form_action">${form_action}</param>
</params>
<condition expression="${entity eq 'connection' and action eq 'update' and not empty id}" />
<permissions>
<permission ref="platform.database.edit" mode="set" />
</permissions>
</action>
</element>
<element>
<datasource id="databaseConnections">
<params>
<param name="editLink">/platform/connection/update/</param>
<param name="testLink">/platform?act=testConnection&id=</param>
<param name="linkTab">#tab_databaseConnections</param>
<param name="editTab">#tab_databaseConnections</param>
</params>
<permissions>
<permission ref="platform.databases" mode="set" />
</permissions>
</datasource>
</element>
</section>
<!-- jar's -->
<section>
<element>
<datasource id="jars" />
</element>
<element>
<datasource id="tomcatJars" />
</element>
</section>
<!-- platform events -->
<section hidden="true">
<element>
<datasource id="eventFilter" />
</element>
</section>
<section>
<element>
<datasource id="platformEvents" />
</element>
</section>
<!-- dictionary -->
<section>
<element>
<datasource id="dictionary" />
</element>
</section>
<!-- hidden inline actions -->
<section hidden="true">
<element>
<action eventId="databaseConnectionEvent" id="testConnection" onSuccess="/platform#tab_databaseConnections">
<params>
<param name="form_action">${act}</param>
<param name="id">${id}</param>
</params>
<permissions>
<permission ref="platform.database.test" mode="set" />
</permissions>
</action>
</element>
<element>
<action eventId="propertyEvent" id="delete-platform-property" onSuccess="/platform#tab_platformProperties">
<params>
<param name="form_action">${act}</param>
<param name="propertyid">${propertyid}</param>
</params>
</action>
</element>
</section>
<!-- hidden inline actions -->
<section hidden="true">
<element>
<!-- this needs to be the very last action, because the old site and application have been destroyed after execution! -->
<action eventId="platformEvent" id="reloadPlatform" onSuccess="/platform#tab_platformProperties">
<params>
<param name="action">${act}</param>
</params>
</action>
</element>
</section>
</structure>
</page>
</pages>