-
Notifications
You must be signed in to change notification settings - Fork 2
/
SubjectsTest-testShowAll.xml
137 lines (137 loc) · 4.82 KB
/
SubjectsTest-testShowAll.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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasource xmlns="http://www.appng.org/schema/platform" id="users">
<config>
<title id="subjects">Users</title>
<permissions>
<permission ref="subject.list" mode="set"></permission>
</permissions>
<params>
<param name="userId" />
<param name="groupId" />
</params>
<meta-data bindClass="org.appng.api.model.Subject" result-selector="${current.id eq userId}">
<field name="name" type="text" binding="name">
<sort />
<label id="name">Name</label>
</field>
<field name="realname" type="text" binding="realname">
<sort />
<label id="realname">Real name</label>
</field>
<field name="email" type="text" binding="email">
<sort />
<label id="email">E-mail</label>
</field>
<field name="typeName" type="text" binding="typeName">
<label id="userType">Type</label>
</field>
<field name="description" type="text" displayLength="40" binding="description">
<sort />
<label id="description">Description</label>
</field>
<field name="locked" type="image" binding="locked">
<label id="locked">Locked</label>
<icon condition="${current.locked}">led_red</icon>
<icon condition="${not current.locked}">led_green</icon>
</field>
<field name="actions" type="linkpanel" binding="actions">
<label id="actions">Actions</label>
</field>
</meta-data>
<linkpanel id="other" location="both">
<link id="other[1]" mode="intern" target="/users/user/create">
<permissions>
<permission ref="subject.create" mode="set"></permission>
</permissions>
<label id="subject.create">Create user</label>
<icon>new</icon>
</link>
</linkpanel>
<linkpanel id="actions" location="inline">
<link id="actions[1]" mode="intern" target="/users/user/update/${current.id}" default="true">
<permissions>
<permission ref="subject.edit" mode="set"></permission>
</permissions>
<label id="edit">Edit</label>
<icon>edit</icon>
</link>
<link id="actions[2]" mode="intern" target="/users?act=delete&userid=${current.id}">
<permissions>
<permission ref="subject.delete" mode="set"></permission>
</permissions>
<label id="delete">Delete</label>
<icon>delete</icon>
<confirmation id="subject.delete.confirm" params="#{name}">Do you really want to delete the user "#{name}"?</confirmation>
</link>
</linkpanel>
</config>
<data>
<selectionGroup>
<selection id="f_name" type="text">
<title id="name">Name</title>
<option value="" name="" selected="true" />
</selection>
<selection id="f_rlnme" type="text">
<title id="realname">Real name</title>
<option value="" name="" selected="true" />
</selection>
<selection id="f_eml" type="text">
<title id="email">E-mail</title>
<option value="" name="" selected="true" />
</selection>
<selection id="f_type" type="select">
<title id="type">Type</title>
<option />
<option value="LOCAL_USER" name="Local User" selected="false" />
<option value="GLOBAL_USER" name="LDAP User" selected="false" />
<option value="GLOBAL_GROUP" name="LDAP Group" selected="false" />
</selection>
<selection id="f_gid" type="select">
<title id="group">Group</title>
<option value="" name="" />
<option value="1" name="admins" selected="false" />
<option value="2" name="users" selected="false" />
</selection>
<selection id="f_lckd" type="radio">
<title id="locked">Locked</title>
<option value="all" name="All" selected="false" />
<option value="true" name="Yes" selected="false" />
<option value="false" name="No" selected="false" />
</selection>
</selectionGroup>
<resultset chunk="0" chunkname="users" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="1">
<result>
<field name="name" type="text">
<value>admin</value>
</field>
<field name="realname" type="text">
<value>John Doe</value>
</field>
<field name="email" type="text">
<value>foo@example.com</value>
</field>
<field name="typeName" type="text">
<value>Local User</value>
</field>
<field name="description" type="text">
<value></value>
</field>
<field name="locked" type="image">
<value>false</value>
<icon type="class">led_green</icon>
</field>
<linkpanel id="actions" location="inline">
<link id="actions[1]" mode="intern" target="/users/user/update/1" default="true">
<label id="edit">Edit</label>
<icon>edit</icon>
</link>
<link id="actions[2]" mode="intern" target="/users?act=delete&userid=1">
<label id="delete">Delete</label>
<icon>delete</icon>
<confirmation id="subject.delete.confirm" params="#{name}">Do you really want to delete the user "admin"?</confirmation>
</link>
</linkpanel>
</result>
</resultset>
</data>
</datasource>