In Liferay, using the CA Service Catalog WAR files let you configure the display and behavior of CA Service Catalog widgets in portlets by using menu options. Review the following steps for producing the earlier Status widget example. Follow them as a model to configure the display and behavior of the Status widget in your implementation.
Follow these steps:
The list of preconfigured portlets appears.
The Status portlet gets added to Liferay.
The Editing Catalog Status Portlet Settings appears.
You have called the Status widget and configured its display and behavior in the portlet.
Key Parameters
The key parameters for the earlier Status widget example follow:
Important! You must include the "/usm" in the URL for the portlet to render correctly.
Specifies the URL for the catalog.
Use the same host name and port number as when you downloaded and installed the WAR Files in Liferay.
Specifies the business unit that catalog users can access while utilizing this Status widget. For this business unit and the business units under it, users can view the status of the requests for they have permission:
If you specify the root business unit, users can view the status of requests in all business units, including the root business unit. Conversely, if you specify the lowest level business unit, users can view the status of requests in that business unit only.
If you do not specify a value, the Catalog system uses the default business unit of the user accessing the widget.
Specifies whether to authenticate users using single sign-on (Windows NTLM) or login credentials. We recommend single-sign-on for widgets.
If you specify single-sign-on, users are not prompted for login credentials.
If you specify login credentials, use the following format:
User name=username and Password=password
Displays the options on the Status widget as buttons in a single row. The options are Cart, Open, Closed, and Pending.
Alternatively, you can specify the row layout: Each option appears on its own row in a table with a description.
Specifies that another widget on the same page listens to events from the Status widget and responds to them. In this scenario, when the user clicks a service, another widget responds by opening the target. The targets are as follows:
Option |
Target Function |
Widget |
Cart |
Shopping Cart |
Edit Request |
Open |
Open Requests |
Request List |
Closed |
Closed Requests |
Request List |
Pending |
Requests Pending Action |
Request List |
To enable these target functions to complete correctly when users click the option on the cart, add the following widgets to the page:
Open In specifies how a target opens when the user clicks it on the Status widget. Other possible values for this parameter follow:
Opens the target on a new page.
Opens the target in the catalog, on the same page.
Performs the same function as _self, except that the target opens in the top-most frame of the browser. If the target is a frame, then the first associated frame in the service option element is selected.
Opens the target using a custom URL. The URL can include a placeholder for the object ID of the source context, for example, the service.
An example follows:
http://www.google.com?id={action}
Note: You can also specify the following settings, as shown in the menu options: refresh rate in minutes and hide cart.
Copyright © 2013 CA.
All rights reserved.
|
|