Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MGR-76 support filtering sites (#14)
- Loading branch information
1 parent
565d734
commit 818c7a1
Showing
8 changed files
with
204 additions
and
6 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
135 changes: 135 additions & 0 deletions
135
src/test/resources/xml/SitesTest-testShowSitesFiltered.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,135 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<datasource xmlns="http://www.appng.org/schema/platform" id="sites"> | ||
<config> | ||
<title id="sites">Sites</title> | ||
<permissions> | ||
<permission ref="site.list" mode="set"></permission> | ||
</permissions> | ||
<params> | ||
<param name="name">site</param> | ||
<param name="domain">example</param> | ||
</params> | ||
<meta-data bindClass="org.appng.api.model.Site"> | ||
<field name="name" type="text" binding="name"> | ||
<sort /> | ||
<label id="name">Name</label> | ||
</field> | ||
<field name="host" type="text" binding="host"> | ||
<sort /> | ||
<label id="host">Host</label> | ||
</field> | ||
<field name="domain" type="text" binding="domain"> | ||
<sort /> | ||
<label id="domain">Domain</label> | ||
</field> | ||
<field name="description" type="text" binding="description"> | ||
<label id="description">Description</label> | ||
</field> | ||
<field name="active" type="image" binding="active"> | ||
<sort /> | ||
<label id="active">Active</label> | ||
<icon condition="${current.active}">led_green</icon> | ||
<icon condition="${!current.active}">led_red</icon> | ||
</field> | ||
<field name="running" type="image" binding="running"> | ||
<label id="running">Running</label> | ||
<icon condition="${current.running}">led_green</icon> | ||
<icon condition="${!current.running}">led_red</icon> | ||
</field> | ||
<field name="startupTime" type="date" format="yyyy-MM-dd HH:mm:ss" binding="startupTime"> | ||
<label id="startupTime">Startup time</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="/sites/create"> | ||
<permissions> | ||
<permission ref="site.create" mode="set"></permission> | ||
</permissions> | ||
<label id="site.create">Create site</label> | ||
<icon>new</icon> | ||
</link> | ||
</linkpanel> | ||
<linkpanel id="actions" location="inline"> | ||
<link id="actions[1]" mode="intern" target="/sites/update/${current.id}" default="true"> | ||
<permissions> | ||
<permission ref="site.edit" mode="set"></permission> | ||
</permissions> | ||
<label id="edit">Edit</label> | ||
<icon>edit</icon> | ||
</link> | ||
<link id="actions[2]" mode="intern" target="/sites?form_action=delete&siteid=${current.id}"> | ||
<permissions> | ||
<permission ref="site.delete" mode="set"></permission> | ||
</permissions> | ||
<label id="delete">Delete</label> | ||
<icon>delete</icon> | ||
<confirmation id="site.delete.confirm" params="#{name}">Do you really want to delete the site "#{name}"?</confirmation> | ||
</link> | ||
<link id="actions[3]" mode="intern" target="/sites?form_action=reload&siteid=${current.id}"> | ||
<permissions> | ||
<permission ref="site.reload" mode="set"></permission> | ||
</permissions> | ||
<label id="reload">Reload</label> | ||
<icon>reload</icon> | ||
</link> | ||
</linkpanel> | ||
</config> | ||
<data> | ||
<selectionGroup> | ||
<selection id="f_sn" type="text"> | ||
<title id="name">Name</title> | ||
<option value="site" name="f_sn" /> | ||
</selection> | ||
<selection id="f_sd" type="text"> | ||
<title id="domain">Domain</title> | ||
<option value="example" name="f_sd" /> | ||
</selection> | ||
</selectionGroup> | ||
<resultset chunk="0" chunkname="sites" chunksize="10" nextchunk="0" previouschunk="0" firstchunk="0" | ||
lastchunk="0" hits="1"> | ||
<result> | ||
<field name="name" type="text"> | ||
<value>site2</value> | ||
</field> | ||
<field name="host" type="text"> | ||
<value>example.com</value> | ||
</field> | ||
<field name="domain" type="text"> | ||
<value>example.com</value> | ||
</field> | ||
<field name="description" type="text"> | ||
<value>a description</value> | ||
</field> | ||
<field name="active" type="image"> | ||
<value>true</value> | ||
<icon type="class">led_green</icon> | ||
</field> | ||
<field name="running" type="image"> | ||
<value>false</value> | ||
<icon type="class">led_red</icon> | ||
</field> | ||
<field name="startupTime" type="date"> | ||
<value></value> | ||
</field> | ||
<linkpanel id="actions" location="inline"> | ||
<link id="actions[1]" mode="intern" target="/sites/update/3" default="true"> | ||
<label id="edit">Edit</label> | ||
<icon>edit</icon> | ||
</link> | ||
<link id="actions[2]" mode="intern" target="/sites?form_action=delete&siteid=3"> | ||
<label id="delete">Delete</label> | ||
<icon>delete</icon> | ||
<confirmation id="site.delete.confirm" params="#{name}">Do you really want to delete the site "site2"?</confirmation> | ||
</link> | ||
<link id="actions[3]" mode="intern" target="/sites?form_action=reload&siteid=3"> | ||
<label id="reload">Reload</label> | ||
<icon>reload</icon> | ||
</link> | ||
</linkpanel> | ||
</result> | ||
</resultset> | ||
</data> | ||
</datasource> |