...
If this new service has a UI component associated to itSupportit, you need will be required to create a UISupport class to and register them it in the UISupportRegistery class.
...
IAclManager service has a UI component and for that we created a UISupport class extending AbstractRepositoryExplorerUISupport class and implemented the setup method.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
@Override protected void setup() { overlays.add(new DefaultXulOverlay( "org/pentaho/di/ui/repository/repositoryexplorer/xul/acl-enabled-layout-overlay.xul")); //$NON-NLS-1$ PermissionsController permissionsController = new PermissionsController(); controllerNames.add(permissionsController.getName()); handlers.add(permissionsController); } |
In the setup method we need to add added any overlays or/and event handlers this service will have. Finally we need register UI Support class.
...
UISupport class needs to register with the its corresponding service interface in order to get consumed correctly.
...