-
Notifications
You must be signed in to change notification settings - Fork 2
/
pg-subjects.xml
129 lines (126 loc) · 3.6 KB
/
pg-subjects.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
<?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="users">
<config>
<title>users</title>
<permissions>
<permission ref="page.subjects" 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="userid" />
<get-param name="groupid" />
<get-param name="f_type" />
<get-param name="f_name" />
<get-param name="f_gn" />
<get-param name="f_gid" />
<get-param name="f_lckd" />
<get-param name="f_eml" />
<get-param name="f_rlnme" />
</get-params>
<post-params>
<post-param name="form_action" />
</post-params>
</url-schema>
</config>
<structure>
<!-- subjects -->
<section>
<!-- create -->
<element passive="true">
<action eventId="subjectEvent" id="create" onSuccess="/users">
<params>
<param name="form_action">${form_action}</param>
</params>
<condition expression="${action eq 'create' and entity eq 'user'}" />
</action>
</element>
<!-- update -->
<element passive="true">
<action eventId="subjectEvent" id="update" onSuccess="/users">
<params>
<param name="userId">${id}</param>
<param name="form_action">${form_action}</param>
</params>
<condition expression="${action eq 'update' and entity eq 'user'}" />
</action>
</element>
<!-- overview -->
<element>
<datasource id="users">
<params>
<param name="userId">${id}</param>
<param name="groupId">${f_gid}</param>
</params>
</datasource>
</element>
</section>
<!-- groups -->
<section>
<!-- create -->
<element passive="true">
<action eventId="groupEvent" id="createGroup" onSuccess="/users#tab_groups">
<params>
<param name="form_action">${form_action}</param>
</params>
<condition expression="${action eq 'create' and entity eq 'group'}" />
</action>
</element>
<!-- update -->
<element passive="true">
<action eventId="groupEvent" id="updateGroup" onSuccess="/users#tab_groups">
<params>
<param name="groupid">${id}</param>
<param name="form_action">${form_action}</param>
</params>
<condition expression="${action eq 'update' and entity eq 'group'}" />
</action>
</element>
<!-- overview -->
<element>
<datasource id="groups">
<params>
<param name="groupid">${id}</param>
<param name="groupName">${f_gn}</param>
</params>
</datasource>
</element>
</section>
<!-- LDAP -->
<section>
<element>
<datasource id="ldapSettings" />
</element>
<element>
<datasource id="ldapUsers" />
</element>
</section>
<!-- hidden inline actions -->
<section hidden="true">
<element>
<action eventId="subjectEvent" id="delete" onSuccess="/users">
<params>
<param name="userId">${userid}</param>
<param name="form_action">${act}</param>
</params>
</action>
</element>
<element>
<action eventId="groupEvent" id="deleteGroup" onSuccess="/users#tab_groups">
<params>
<param name="groupid">${groupid}</param>
<param name="form_action">${act}</param>
</params>
</action>
</element>
</section>
</structure>
</page>
</pages>