Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MGR-67 filter groups, display users (#10)
- Loading branch information
1 parent
e46e978
commit 7bfb565
Showing
8 changed files
with
158 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
src/test/resources/xml/GroupsTest-testShowGroupsFilterName.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<datasource xmlns="http://www.appng.org/schema/platform" id="groups"> | ||
<config> | ||
<title id="groups">Groups</title> | ||
<permissions> | ||
<permission ref="group.list" mode="set"></permission> | ||
</permissions> | ||
<params> | ||
<param name="groupid"/> | ||
<param name="groupName">admin</param> | ||
</params> | ||
<meta-data bindClass="org.appng.api.model.Group" result-selector="${current.id eq groupid}"> | ||
<field name="name" type="text" binding="name"> | ||
<sort order="desc" prio="0"/> | ||
<label id="name">Name</label> | ||
</field> | ||
<field name="description" type="text" binding="description"> | ||
<label id="description">Description</label> | ||
</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/group/create#tab_groups"> | ||
<permissions> | ||
<permission ref="group.create" mode="set"></permission> | ||
</permissions> | ||
<label id="group.create">Create group</label> | ||
<icon>new</icon> | ||
</link> | ||
</linkpanel> | ||
<linkpanel id="actions" location="inline"> | ||
<link id="actions[1]" mode="intern" target="/users/group/update/${current.id}#tab_groups" default="true"> | ||
<permissions> | ||
<permission ref="group.edit" mode="set"></permission> | ||
</permissions> | ||
<label id="edit">Edit</label> | ||
<icon>edit</icon> | ||
</link> | ||
<link id="actions[2]" mode="intern" target="/users?form_action=deleteGroup&groupid=${current.id}"> | ||
<condition expression="${not current.defaultAdmin}"/> | ||
<permissions> | ||
<permission ref="group.delete" mode="set"></permission> | ||
</permissions> | ||
<label id="delete">Delete</label> | ||
<icon>delete</icon> | ||
<confirmation id="group.delete.confirm" params="${current.name}">Do you really want to delete the group "${current.name}"?</confirmation> | ||
</link> | ||
</linkpanel> | ||
</config> | ||
<data> | ||
<selectionGroup> | ||
<selection id="f_gn" type="text"> | ||
<title id="name">Name</title> | ||
<option value="admin" name="f_gn"/> | ||
</selection> | ||
</selectionGroup> | ||
<resultset chunk="0" chunkname="groups" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" lastchunk="0" hits="1"> | ||
<result> | ||
<field name="name" type="text"> | ||
<value>admin</value> | ||
</field> | ||
<field name="description" type="text"> | ||
<value>admins</value> | ||
</field> | ||
<linkpanel id="actions" location="inline"> | ||
<link id="actions[1]" mode="intern" target="/users/group/update/1#tab_groups" default="true"> | ||
<label id="edit">Edit</label> | ||
<icon>edit</icon> | ||
</link> | ||
<link id="actions[2]" mode="intern" target="/users?form_action=deleteGroup&groupid=1"> | ||
<label id="delete">Delete</label> | ||
<icon>delete</icon> | ||
<confirmation id="group.delete.confirm" params="${current.name}">Do you really want to delete the group "admin"?</confirmation> | ||
</link> | ||
</linkpanel> | ||
</result> | ||
</resultset> | ||
</data> | ||
</datasource> |