Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MGR-77 allow filters of suers by group (#15)
- Loading branch information
1 parent
818c7a1
commit d96964a
Showing
11 changed files
with
184 additions
and
28 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
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
113 changes: 113 additions & 0 deletions
113
src/test/resources/xml/SubjectsTest-testShowAllFilterGroup.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,113 @@ | ||
<?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">1</param> | ||
</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="description" type="text" binding="description"> | ||
<label id="description">Description</label> | ||
</field> | ||
<field name="typeName" type="text" binding="typeName"> | ||
<label id="userType">userType</label> | ||
</field> | ||
<field name="language" type="text" binding="language"> | ||
<label id="language">Language</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/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?form_action=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_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="true" /> | ||
<option value="2" name="users" 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="description" type="text"> | ||
<value></value> | ||
</field> | ||
<field name="typeName" type="text"> | ||
<value>Local User</value> | ||
</field> | ||
<field name="language" type="text"> | ||
<value>en</value> | ||
</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?form_action=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> |
Oops, something went wrong.