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

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


Kanagaraj M has submitted this change and it was merged.

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


webadmin: UI plugin API - revealPlace

This patch adds new UI plugin API function ('revealPlace')
that can be used to reveal desired application place, e.g.
main or sub tab. An application place denotes a logical
state of the web application, represented as '#placeToken'
in application's URL, for example:

  WebAdmin.html#vms          // 'VM' main tab place
  WebAdmin.html#vms-general  // 'VM General' sub tab place

revealPlace function works for both standard (built-in) and
custom (UI-plugin-contributed) places, assuming that given
place to reveal is available at time the function is called.
(Otherwise, WebAdmin will transition to its default place,
currently set to 'VM' main tab.)

API signature:

  revealPlace(placeToken)

Example usage:

  // switch to 'Hosts' main tab
  api.revealPlace('hosts');

  // add custom main tab and switch to it
  api.addMainTab('Test', 'test', 'plugin/TestPlugin/tab.html');
  api.revealPlace('test');

Note: setting place parameters, such as:

  WebAdmin.html#placeToken;paramName=paramValue

is not supported (yet) since there currently aren't
any application places utilizing such parameters.

Change-Id: Ib4ae30f62c5bcd6793e19c8be6806f32bf68eee1
Bug-Url: https://bugzilla.redhat.com/1168334
Signed-off-by: Vojtech Szocs <vszocs at redhat.com>
---
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
2 files changed, 24 insertions(+), 1 deletion(-)

Approvals:
  Shubhendu Tripathi: Verified
  Vojtech Szocs: Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib4ae30f62c5bcd6793e19c8be6806f32bf68eee1
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5-gluster
Gerrit-Owner: Ramesh N <rnachimu 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