Contents: MashupHub User and Administrator Guide : Mashup Center 2.0
The administrator can modify the server.config.ini file to control whether users can add or deploy iWidget and lightweight packages from MashupHub to the mashup builder and to WebSphere Portal. The settings do not affect widgets that have been registered in the catalog by specifying a URL, nor do the settings affect generic widgets.

About this task

The settings in the server.config.ini file determine which of the following actions appear in the widget Details page:

Procedure

Use the WebSphere Application Server administrative console to stop MashupHub.

Go to the directory: <install-dir>/Hub/installedApps/mashuphub.ear/mashuphub-enterprise.war/META-INF/config/.

Open the server.config.ini file in a text editor.

In the deployIWidgetPackage flag controls section, change the deployIWidgetPackage flag to the desired setting. The possible settings are all, admin-only, none, and lightweight-only. The default setting is all.

Widgets must be deployed to the server before they can be added. If only the Add to action appears, the Deploy to action is implicit. When the setting is set to admin-only, only administrators see the Deploy to action. If other users want to add a widget to a palette and the widget is not deployed, they will receive an error message

The following table shows the effects of the settings in the deployIWidgetPackage file by user role.

Table 1. Available widget actions based on the deployIWidgetPackage settings

Role

all

admin-only

none

lightweight-only

Authenticated users (not Administrators)

Add to Mashup Builder

Add to WebSphere Portal

Add to Mashup Builder

Add to WebSphere Portal

Add to Mashup Builder

Deploy to Mashup Builder (Users can only deploy lightweight widgets.)

Add to WebSphere Portal

Deploy to WebSphere Portal (Users can only deploy lightweight widgets.)

Administrators

Add to Mashup Builder

Add to WebSphere Portal

Add to Mashup Builder

Deploy to Mashup Builder

Add to WebSphere Portal

Deploy to WebSphere Portal

Add to Mashup Builder

Deploy to Mashup Builder (Users can deploy lightweight widgets and also widget WAR packages.)

Add to WebSphere Portal

Deploy to WebSphere Portal (Users can deploy lightweight widgets and also widget WAR packages.)

Save and close the server.config.ini file.

Use the WebSphere Application Server administrative console to restart MashupHub.

VERSION 2.0.0.1 NOTICE: Bug Bz:6977 - PROBLEM: Setting deployWidgetPackage=none caused the "Add to Mashup Builder" option to be hidden (not available) in the Home:Catalog drop-down list of options. "Add to Mashup builder" should be there even "deployIWidgetPackage" is set to none.

WORKAROUND: do not set deployWidgetPackage=none if widgets need to be Added to Mashup Builder from the catalog