Performing a portlet search  Chapter 5: Advanced Portlet Creation

Chapter 4: Building Portlets

Finding and replacing portlets

As portlets change, you may need to replace existing portlets with newer versions or different portlet implementations. Use the Find/Replace Portlet window to perform this update.

This functionality is particularly useful to replace broken portlets in your production environment.

NoteUsing Find/Replace for any portlet with CGI parameters is limited to finding the same portlet with a different version. For example, if portlet A has CGI parameters, you can find or replace another portlet with the same name, portlet A, but the portlet must have a different version to find it using Find/Replace.

StepsEnabling find and replace portlet functionality

Enterprise Portal lets you enable the find and replace portlets functionality for Web Studio users with the PortalAdmin role, as described in the global.properties.xml portal configuration file:

<Property name="PortalAdministrationRole"
value="PortalAdmin" description="The J2EE role 
required to administer the Portal performing export/import and update operations." menugroup="-1" />
  1. To grant a Web Studio user the Portal Admin role, you must be the PSO or have the StudioAdmin role.

  2. Log in to Web Studio and select Administer | Organizations from the left pane.

  3. Select the organization in which the user resides to whom you want to give find and replace access.

  4. Select Users in the Organization Manager menu.

  5. Right-click the user in the detail view and select Edit Roles.

  6. When the Edit User Roles window displays, grant the user the PortalAdmin role, then click OK.

StepsFinding and replacing portlets

Users that have the PortalAdmin role and want to find and replace portlets, should follow this procedure.

  1. Enter this URL in an Internet Explorer browser to access Web Studio:

    http://HOSTNAME.PORTALDOMAIN:8080/onepage/index.html
    

    For example, if your machine name is “tahiti”, and your portal domain is “sybase.com,” enter:

    http://tahiti.sybase.com:8080/onepage/index.html
    

    If you are running the EP Demo version, enter:

    http://demo.sybase.com:4040/onepage/index.html
    
  2. At the Login page, enter your user name and password, then click Login.

  3. When the Web Studio main window displays, select Build | Portlets from the left pane on the left, then select Replace from the toolbar above the detail pane.

  4. Complete these fields:

  5. To view a log of the changes that would occur as a result of your selections, click Preview.

    Click OK.

  6. Once you click OK, the Details button is enabled. Click Details to see a detailed log of the changes that would occur:

  7. Once you preview the changes, click Replace to permanently implement the changes.

    You see an alert message similar to the one that displays when you click Preview.





Copyright © 2004. Sybase Inc. All rights reserved. Chapter 5: Advanced Portlet Creation

View this book as PDF