Portal Guide
CHAPTER 26
This chapter describes how to use the Portlet Management section of the Director Administration Console (DAC). It has these sections:
The Portlet Management section of the Director Administration Console (DAC) allows portal administrators to view and modify information about portlets in a deployed exteNd Director application.
Using the DAC, portal administrators can monitor the following portlet elements:
The Portlet Management section of the DAC allows portal administrators to perform the following tasks related to portlet applications:
View information about portlet applications in a read-only panel
To access a portlet application on the server:
Start the DAC, as described in accessing the DAC.
Click the Portlet Management button:
A list of all portlet applications deployed to your server appears in the left navigation frame.
Using the DAC, the portal administrator can view the following information about each deployed portlet application:
Custom application information: portlet modes, window states, security constraints, and user attributes
NOTE: exteNd Director allows you to define this custom information. However, the exteNd Director portal recognizes only standard portlet modes (View, Edit, and Help) and standard window states (Normal, Minimized, and Maximized).
To view information about a portlet application:
Start the DAC, as described in accessing the DAC.
Navigate to portlet applications, as described in Accessing portlet applications on the server.
Select the portlet application of interest.
A General panel opens in the right content frame, displaying information about the portlet application:
When you want to remove a portlet application from your server, you must unregister the portlet application before undeploying it. Otherwise, the portlet application is automatically redeployed when the server restarts.
When you unregister a portlet application, all preferences and settings are removed from the exteNd Director database that stores your application data.
NOTE: You cannot unregister the local portlet container, which is a portlet application that is local to the portal. The local portlet container manages portlets that are contained within the portal application.
To unregister a portlet application:
Start the DAC, as described in accessing the DAC.
Navigate to portlet applications, as described in Accessing portlet applications on the server.
Select the portlet application of interest.
A tree view of portlet definitions appears in the left navigation frame and a General panel opens in the right content frame:
Click OK to confirm the action.
When the process completes, the unregistered portlet application is removed from the list in the navigation window.
To remove the portlet application from the server, use your server's tools to undeploy the archive containing the portlet application.
NOTE: To reregister an unregistered portlet application, you must redeploy it.
The Portlet Management section of the DAC allows portal administrators to perform the following tasks related to portlet definitions in a portlet application:
Access portlet definitions in the deployed portlet application
View information about portlet definitions in a read-only panel
To access portlet definitions in the deployed portlet application:
Start the DAC, as described in accessing the DAC.
A list of all portlet applications deployed to your server appears in the left navigation frame.
Expand the portlet application of interest.
A tree view appears in the left navigation frame listing all the portlet definitions in the selected portlet application:
To use a portlet in a portal application, the portal administrator must register the portlet definition with the portal. A registered portlet definition is called a portlet registration. You can create multiple registrations for a single portlet, allowing you to put multiple instances of that portlet on the same portal page.
The portlet registration inherits all the preferences and settings of the portlet class, but the portlet administrator has several opportunities to modify these values:
At registration time using the Portlet Management section of the DAC, as described in Administering registered portlets.
At page assignment time using the Portal Administration tool, as described in the chapter on administering your portal.
If the portlet definition provides an Edit mode, the portal user can modify specific preferences of the portlet registration at runtime, according to the logic of the portlet's doEdit() method.
TIP: exteNd Director also provides a default implementation for Edit mode. If the doEdit() method is not explicitly implemented, a default preference sheet is displayed. This sheet lets the user manage preferences for a given portlet and user.
All portlets that ship with exteNd Director are automatically registered. Portal administrators can enable automatic registration for any portlet by setting the <auto-register> property in the novell-portlet.xml deployment descriptor, as in this example:
<auto-register enabled="true"> <category>Content Management Portlets</category> </auto-register>
When this property is enabled, the portlet is automatically registered with the portal application and assigned to the specified categories at deployment time.
NOTE: You cannot change the category assignments for an auto-registered portlet by modifying its <category> property in novell-portlet.xml. Instead, the portal administrator must create a new portlet registration by following Procedure for registering a portlet, then assign the desired categories as described in Assigning categories to portlet registrations.
To register a portlet definition:
Start the DAC, as described in accessing the DAC.
Navigate to portlet definitions, as described in Accessing portlet definitions in the deployed portlet application.
Select the portlet definition of interest.
A General tab opens in the right content frame, displaying a panel at the bottom called Register New Portlet Instance:
All existing registrations of the selected portlet are displayed under the definition, marked by this symbol:
In the panel's text field, enter a unique name for the portlet registration, then click Register.
The portlet definition is registered with the portlet application. The name of the new definition is displayed in the left navigation frame under the portlet class.
If you want to modify the preferences and settings of the new portlet registration, see Administering registered portlets.
The portal administrator can view the following information in the DAC about portlet definitions:
To view information about portlet definitions:
Start the DAC, as described in accessing the DAC.
Navigate to portlet definitions, as described in Accessing portlet definitions in the deployed portlet application.
Select the portlet definition of interest.
A General panel opens in the right content frame, displaying information about the selected portlet definition:
Select the Additional Information tab to view more information about the selected portlet definition:
The Portlet Management section of the DAC allows portal administrators to perform the following tasks related to registered portlets in a portlet application (also called portlet registrations):
Start the DAC, as described in accessing the DAC.
A list of all portlet applications on your server appears in the left navigation frame, as in this example:
Expand the portlet application of interest.
A tree view appears in the left navigation frame listing all the portlet definitions in the selected portlet application:
Select the portlet definition of interest.
All registrations of the selected portlet appear in the left navigation window under the definition. Registered portlets are marked with the symbol, as in this example:
The portal administrator can view the following information in the DAC about registered portlets:
To view information about portlet registrations:
Start the DAC, as described in accessing the DAC.
Navigate to portlet registrations, as described in Accessing portlet registrations in the deployed portlet application.
Select the portlet registration of interest.
A General panel opens in the right content frame, displaying information about the selected portlet registration:
A single production-quality portal can contain a large number of portlets. To facilitate searching for specific portlets in a portlet application, you can organize portlets by category.
To assign categories to portlet registrations:
Start the DAC, as described in accessing the DAC.
Navigate to portlet registrations, as described in Accessing portlet registrations in the deployed portlet application.
A list of portal categories appears. The list displays only categories that were defined for portlets and legacy components in the portlet application.
Objective: |
Action: |
---|---|
Assign one or more categories to the portlet registration |
|
Assign all categories to the portlet registration |
|
Remove one or more category assignments |
|
Remove all category assignments |
Portlet settings define how the portal interacts with individual portlets. Each portlet is configured with the same settings:
Standard Java Portlet 1.0 settings are defined in portlet.xml; exteNd Director settings are defined in novell-portlet.xml.
The portal administrator can change the values of these settings on an registration by registration basis. In other words, when the portal administrator modifies settings, the new values take effect only for the selected portlet registration.
To modify portlet registration settings:
Start the DAC, as described in accessing the DAC.
Navigate to portlet registrations, as described in Accessing portlet registrations in the deployed portlet application.
A panel opens in the right content pane, listing all the settings defined for the selected portal registration along with their current values. The default values for settings are defined in the portlet definition.
TIP: After you modify a setting, the Reset control becomes active, allowing you to revert back to the default value at any time.
Portlet preferences are defined by the portlet developer at design time in the portlet deployment descriptors. Preferences vary from portlet to portlet, based on the portlet developer's implementation.
When the portal administrator modifies preferences, the new values take effect only for the selected portlet registration.
To modify portlet registration preferences:
Start the DAC, as described in accessing the DAC.
Navigate to portlet registrations, as described in Accessing portlet registrations in the deployed portlet application.
A panel opens in the right content pane, listing all the preferences defined for the selected portal registration along with their current values. The default values for preferences are defined in the portlet definition.
To get more information about preferences, click the Descriptions button at the bottom of the panel
Modify preferences as desired.
TIP: After you modify a preference, the Reset control becomes active, allowing you to revert back to the default value at any time.
To create a localized version of the preference for each locale specified in the portlet definition, follow these steps:
Click the Detail control next to the preference of interest.
A new panel appears, displaying the current default values for the selected preference and a list of all locales defined for the portlet definition.
For each locale, select Create New Localized Preference, enter localized values, and click Apply.
When you have created all localized preferences, click OK to return to the main Preferences panel.
You can assign the following security permissions to users and groups for registered portlet registrations:
Type of permission |
What it means |
---|---|
List |
Users can view the portlet registration from a selection list |
Execute |
Users can run the portlet registration on a portal page |
When you modify security permissions, the new values take effect only for the selected portlet registration.
To assign security permissions for portlet registrations:
Start the DAC, as described in accessing the DAC.
Navigate to portlet registrations, as described in Accessing portlet registrations in the deployed portlet application.
Choose the List or Execute tab, depending on what type of permission you want to assign
Enter the following information:
Field |
What to specify |
---|---|
Search for |
Select Users or Groups from the dropdown menu. |
Starts with |
The following procedure shows you how to unregister a portlet.
If you want to delete the portlet from the portal application, unregistering the portlet is just one step in a larger process that is described in Deleting portlets from portal applications.
Start the DAC, as described in accessing the DAC.
Navigate to portlet registrations, as described in Accessing portlet registrations in the deployed portlet application.
If a message box appears, informing you that the portlet is auto-registered, follow these steps:
Click OK to dismiss the message box and unregister the portlet.
Disable auto-registration by changing the preference in the portlet fragment deployment descriptor to:
<auto-register enabled="false"/>
The portlet fragment deployment descriptor specifies the preferences and settings for a single portlet. For more information, see the section on the exteNd Director portlet fragment deployment descriptor.
IMPORTANT: If you do not disable auto-registration, the portlet will be registered again automatically when you restart your server.
Copyright © 2004 Novell, Inc. All rights reserved. Copyright © 1997, 1998, 1999, 2000, 2001, 2002, 2003 SilverStream Software, LLC. All rights reserved. more ...