Change in ovirt-engine[ovirt-engine-3.5-gluster]: webadmin: UI plugin API - setSearchString

kmayilsa at redhat.com kmayilsa at redhat.com
Wed May 20 04:24:47 UTC 2015


Kanagaraj M has submitted this change and it was merged.

Change subject: webadmin: UI plugin API - setSearchString
......................................................................


webadmin: UI plugin API - setSearchString

This patch adds new UI plugin API function ('setSearchString')
that can be used to apply given search string in WebAdmin's
search panel.

Just like the Search button, calling setSearchString function
triggers transition to the corresponding application place,
e.g. following code:

  api.setSearchString('Vms:');

causes the application to reveal following place:

  WebAdmin.html#vms // 'VM' main tab place

API signature:

  setSearchString(searchString)

Example usage:

  api.setSearchString('Hosts: name = abc');

Change-Id: I36eb8647577e974bddefe9462d302165a39b1c27
Bug-Url: https://bugzilla.redhat.com/1081028
Signed-off-by: Vojtech Szocs <vszocs at redhat.com>
---
M frontend/webadmin/modules/gwt-common/src/main/java/org/ovirt/engine/ui/common/uicommon/model/CommonModelManager.java
A frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/ApplySearchStringEvent.java
M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/CommonModel.java
M frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/PluginManager.java
M frontend/webadmin/modules/webadmin/src/main/java/org/ovirt/engine/ui/webadmin/plugin/api/PluginUiFunctions.java
5 files changed, 159 insertions(+), 6 deletions(-)

Approvals:
  Alexander Wels: Looks good to me, approved
  Shubhendu Tripathi: Verified
  Vojtech Szocs: Looks good to me, but someone else must approve



-- 
To view, visit https://gerrit.ovirt.org/41030
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I36eb8647577e974bddefe9462d302165a39b1c27
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5-gluster
Gerrit-Owner: Ramesh N <rnachimu at redhat.com>
Gerrit-Reviewer: Alexander Wels <awels at redhat.com>
Gerrit-Reviewer: Kanagaraj M <kmayilsa at redhat.com>
Gerrit-Reviewer: Shubhendu Tripathi <shtripat at redhat.com>
Gerrit-Reviewer: Vojtech Szocs <vszocs at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list