Portlet Development Guide

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Assembling Portlets into Desktops

You perform the tasks described in this chapter to prepare the individual portlets that are part of your portal application for public consumption. After you add portlets to desktops, you can configure and test the application as a whole, and then deploy it to the production environment when it is ready for public access.

Before you perform the tasks described in this chapter, use the Portal Development Guide to create the framework into which you will add the portlets— this includes the portal and its menus, layouts, the Look & Feel components for the overall portal, and the framework of the actual desktop. Also, you must have already created the set of portlets in the portlet library, from which you will choose the portlets to add to the desktop.

The primary tools used in this chapter are the WebLogic Portal Administration Console, the WebLogic Portal Propagation Utility (to move database and LDAP data between staging, development, and production), WebLogic Server application deployment tools, and any external content or security providers that you are using.

This chapter contains the following sections:

 


Portlet Library

The WebLogic Portal Administration Console organizes portal resources in a tree that consists of Library resources and desktop resources. Understanding the relationship between Library and desktop resources helps you to understand the effects and consequences of propagation.

The following text describes the relationships between the following instances of portal assets:

For more details on portlets in libraries and in desktops, refer to the Production Operations Guide.

 


Managing Portlets Using the Administration Console

This section contains instructions for performing portlet-related tasks using the WebLogic Portal Administration Console.

This section contains the following topics:

Copying a Portlet in the Library

You can use this feature of the WebLogic Portal Administration Console to duplicate an existing portlet and use it as a template for a “new” portlet.

Perform these steps:

  1. Expand the Library node in the Portal Resources tree and navigate to the portlet that you want to copy.
  2. Click Copy Portlet. The Copy Portlet dialog displays.
  3. Enter a title and description for the copied portlet.
  4. Click OK. The portlet is added at the bottom of the portlet list.

You can now customize the copied portlet by modifying its properties and preferences.

Modifying Library Portlet Properties

Portlet properties include all of the features and elements that make up the portlet. As a portal administrator, you can modify some of these properties from the Details tab. You can also edit the title, description, and locale information from the Title & Description tab, as described below.

To modify the properties of a portlet that resides in the library, perform these steps:

  1. Expand the Library node in the Portal Resources tree and navigate to the portlet that you want to modify.
  2. From the Details tab, select the type of property that you want to change. Use the table below for guidance.
  3. Table 13-1 Modifying Library Portlet Properties 
    Title and Description
    Change title and description of the portlet in the current locale
    1. Click Title & Description.
    2. Click the locale (for example, en) in the Locale cell; the Add a Localized Title & Description dialog displays.
    3. Enter a new Title and/or Description.
    4. Click Update.
    Add a localized title for the portlet
    1. Click Title & Description.
    2. Click Add Localized Title; the Add a Localized Title & Description dialog appears.
    3. Enter a Language and Country identifier, Variant if applicable, Title, and a Description for the localized title.
    4. Click Create.
    Portlet Preferences
    Portlet Theme
    1. Click Appearance; the Edit Appearance dialog displays.
    2. From the drop-down menu, select a Theme.
    3. Click Update.
    Render caching and timeout
    1. Click Advanced Properties.
    2. In the Render Caching Enabled drop-down menu, select True or False.
    3. If you selected True, enter a cache expiration value in the Cache Expiration field.
    4. Click Update.

Modifying Desktop Portlet Properties

Portlet properties include all of the features and elements that make up the portlet. As a portal administrator, you can modify some of these properties from the Details tab. You can also edit the title, description, and locale information from the Title & Description tab, as described below.

To modify the properties of a portlet that resides on a desktop, perform these steps:

  1. Expand the Portals node in the Portal Resources tree and navigate to the portlet that you want to modify.
  2. From the Details tab, select the type of property that you want to change. Use the table below as a guide.
  3. Table 13-2 Modifying Desktop Portlet Properties 
    Title and Description

    You must edit these values within the Library resource tree. Expand the Library node, select the portlet that you want to edit, and follow the instructions in Modifying Library Portlet Properties.

    Portlet Preferences

    Refer to Creating a Portlet Preference and Editing a Portlet Preference.

    Portlet Theme

    1. Click Appearance; the Edit Appearance dialog displays.
    2. From the drop-down menu, select a Theme.
    3. Click Update.

Deleting a Portlet

You can delete portlets from the Administration Console only if they were created there; for example, if you used the Copy Portlet feature to duplicate the portlet. Portlets created in Workshop for WebLogic cannot be deleted using the Administration Console.

Perform these steps:

  1. Expand the Library node in the Portal Resources tree and navigate to the portlet that you want to delete.
  2. Click Delete Portlet.

Managing Portlets on Pages

The contents of a page include portlets and books. You can view the portlets that are already on your page, and add and remove portlets to construct your page.

Adding Portlets to a Page

Library: To add a content to a page, perform these steps:

  1. In the Portal Resource tree, expand the Library node and navigate to a page. The Details tab displays.
  2. Click Page Contents. The Edit Contents tab displays.
  3. Click Add Contents. The Add Books and Portlets to Placeholder dialog displays.
  4. Display the pages that you want to choose from, using the Search area if needed.
  5. Choose the portlets that you want to add by selecting the desired check boxes, and click Add.
  6. When finished, click Save.

Desktop: To add a portlets to a page, perform these steps:

  1. In the Portal Resource tree, expand the Portals node and navigate to a page. The Details tab displays.
  2. Click Page Contents. The Edit Contents tab displays.
  3. Click Add Contents; search for existing portlets if needed, then select the portlets that you want, and click Add. When finished, click Save.

Positioning Elements on a Page

The page layout is the grid structure of a page that holds placeholders for portlets and books on the page. You can select a layout for your portlets/books, and drag and drop them between the placeholders to customize the layout of each page.

Perform these steps:

  1. In the Portal Resource tree, expand either the Library node or the Portals node as applicable, and select a page. The Details tab displays.
  2. Click Page Contents. The Edit Contents tab displays.
  3. If you want to change to a different layout, select a layout in the Layout drop-down menu.
  4. Select the method that you want to use to position the elements on the page by selecting an option in the Position Elements area. The default is Drag & Drop.
  5. Move portlets or books between placeholder columns.
  6. If you want to prevent users from moving or deleting elements from a placeholder, select the Lock Placeholder check box.
  7. When finished, click Save Changes.

Overview of Portlet Categories

Portlet categories provide for the classification of portlets, which is useful when organizing a large collection of portlets into meaningful groupings. The portlet categories are similar to other hierarchical structures in that parent “folders” can contain child folders and/or portlets. You must first create a portlet category, and then you can manage portlets by adding them to a category or moving them between categories.

Creating a Portlet Category

To create a portlet category:

  1. In the Portal Resources tree, expand the Library folder and select Portlet Categories. The Browse Category tab displays.
  2. Click Create New Category.
  3. Type a title and description for the new category in the pop-up window.
  4. Click Create.

Modifying Portlet Category Properties

Portlet category properties include all of the features and elements that make up the category. As a portal administrator, you can modify some of these properties from the Summary tab. You can also edit the title, description, and locale information from the Titles & Descriptions tab, as described below.

Perform these steps:

  1. In the Portal Resources tree, expand the Library node and navigate to a portlet category.
  2. From the Summary tab, select the type of property that you want to change. Use the table below as a guide.
  3. Table 13-3 Modifying Portlet Category Properties 

    Title and Description

    Change title and description of the category in the current locale
    1. Click Title & Description.
    2. Click the locale (for example, en) in the Locale cell; the Add a Localized Title & Description dialog displays.
    3. Enter a new Title and/or Description.
    4. Click Update.
    Add a localized title for the category
    1. Click Title & Description.
    2. Click Add Localized Title; the Add a Localized Title & Description dialog appears.
    3. Enter a Language and Country identifier, Variant if applicable, Title, and a Description for the localized title.
    4. Click Create.
    Portlets in Category
    Categories in Category
    1. Click Categories In Category; the Browse Category tab displays.
    2. Click Create New Category; the Create New Category dialog displays.
    3. Enter a Title and Description for the new category.
    4. Click Create. The category is created and added to the currently selected category.

Adding Portlets to a Portlet Category

To add portlets into a category:

  1. Expand the Library node in the Portal Resources tree and navigate to a portlet category. The Summary tab displays.
  2. Click Portlets In Category.
  3. Click Add Portlets.
  4. In the Available Portlets area, select the portlets that you want to add, and click Add to include them in the Selected Portlets area.
  5. Click Save.

Overview of Portlet Preferences

A portlet preference is a property in a portlet that can be customized by either an administrator or a user. Your portlet might already have preferences, but if you have the appropriate Delegated Administration rights you can create additional portlet preferences.

Creating a Portlet Preference

To create a portlet preference, perform these steps:

  1. Expand the Portals node or the Library node in the Portal Resources tree, as appropriate, and navigate to the portlet for which you want to create a preference. The Details tab displays.
  2. Click Add Portlet Preference.
  3. Fill in the information in the fields. Use the table below as a guide.
  4. Table 13-4 Creating a Portlet Preference 
    For this field:
    Enter this information:
    Name
    The name you want to give this preference.
    Description
    A description of this preference.
    Value(s)
    A value for a preference.
    Is Modifiable? (checkbox)
    Select this check box if you want to allow end users to modify this preference.
    Is Multi-Valued? (checkbox)
    Select this check box if you want to enter multiple values for the preference. If you select this box, an additional data entry field displays for you to enter additional values. Click Add Another Value after entering each value, until you are finished.

  5. Click Save.
  6. For library instances of portlets, when you add a preference it automatically proliferates to library page instances and desktop page instances if the instances have not been decoupled.

  7. If you want to force proliferation of this preference to every instance of this portlet, click Propagate to Instances; WebLogic Portal overwrites all desktop instance's preferences with the library preferences are. When complete, a message appears at the top of the Administration Console.

Here are some tips related to portlet preferences that you might find useful:

Editing a Portlet Preference

If you have the appropriate Delegated Administration rights, you can edit a portlet's preferences to change the way a portlet behaves.

To edit a portlet preference:

  1. Expand the Portals node or the Library node in the Portal Resources tree, as appropriate, and navigate to the portlet for which you want to edit a preference. The Details tab displays.
  2. Click Portlet Preferences.
  3. Select the portlet preference by clicking its name in the Name column.
  4. Edit the information in the fields. Use the table below as a guide.
  5. Table 13-5 Editing a Portlet Preference 
    For this field:
    Enter this information:
    Name
    The name you want to give this preference.
    Description
    A description of this preference.
    Value(s)
    A value for a preference.
    Is Modifiable? (checkbox)
    Select this check box if you want to allow end users to modify this preference.
    Is Multi-Valued? (checkbox)
    Select this check box if you want to enter multiple values for the preference. If you select this box, an additional data entry field displays for you to enter additional values. Click Add Another Value after entering each value, until you are finished.

  6. Click Save.
  7. For library instances of portlets, when you edit a preference it automatically proliferates to library page instances and desktop page instances if the instances have not been decoupled.

  8. If you want to force proliferation of this change to every instance of this portlet, click Propagate to Instances. When complete, a message appears at the top of the Administration Console.

Overview of Delegated Administration

In your organization, you typically want individuals to have different access privileges to various administration tasks and resources. For example, a system administrator might have access to every feature in the WebLogic Portal Administration Console. The system administrator might then create a portal administrator role that can manage instances of portal resources in specific desktop views of your portal, and a library administrator role that can manage your portal resource library. Other delegated administration roles only have access to resources if that access has been explicitly granted.

For more information about using delegated administration as a part of your security strategy, see the Security Guide on e-docs.

Overview of Visitor Entitlements

Visitor entitlements allow you to define who can access the resources in a portal application and what they can do with those resources. This access is based on the role assigned to a portal visitor, allowing for flexible management of the resources.

For more information about using visitor entitlements as a part of your security strategy, see the Security Guide on e-docs.


  Back to Top       Previous  Next