Oracle Portal-to-Go Implementation Guide Release 1.0.2.2 A86635-02 |
|
This document explains the Personalization Portal architecture. Topics include:
The Personalization Portal is a Web-based interface that allows end-users to manage their mobile device portals. At the Personalization Portal, users select the services that appear on their mobile devices, store frequently used parameters (such as email addresses and account numbers), and create notifications. Any change that a user makes at the Personalization Portal is immediately reflected on the users mobile device.
The Portal-to-Go Personalization Portal is both a framework for the personalization interface and a sample implementation of that framework. The framework consists of JavaServer Pages (JSP) files, JavaBean modules, JavaScript, and such static elements as images, style sheets, and HTML files. Another element of the framework is the logical sequence in which the elements execute. You can rebrand the Personalization Portal based on the existing framework or, by altering the logic in the JSP files and JavaBeans, restructure the framework itself.
The following sections acquaint you with the elements that generate the portal and their order of execution, as well as the file naming conventions and the directory structure used.
A user accesses the Personalization Portal by entering a valid user name and password at the login page. The login page is generated by the JSP file, login.jsp.
If the user name and password is valid, the user's main page appears. The JSP file PapzMain.jsp generates the main page, which appears as follows:
The service tree provides an easy way for users to browse through their folders and services. The service view presents a desktop view of the user's folders and services. The service view includes links for invoking and editing services. The edit link allows users to customize their services. Users can add, move, and rename folders and services. For services, users can also create jobs (or notifications) and store service input values. For folders, users can also enable or disable services in that folder and create bookmarks.
When a user clicks the edit link for a service, for example, the following window appears:
When a user clicks a link in the Edit User Service window, a form appears where the user completes the action. For example, when a user clicks the Rename Service link, the following form appears:
The form contains instructions for renaming a service and a text field where the user enters a new value for the service name.
Note: The user must be the owner of the service to be able to change the service. You grant ownership privileges in the Service Designer. For a user, you would typically grant ownership to a service alias rather than the master service. For more information, see "Creating a Service Alias" in Chapter 5, "Portal-to-Go Services". |
When finished, users click the Log Off button to close the Personalization Portal session.
To rebrand the Personalization Portal, you modify the files that generate the Personalization Portal. After installing Portal-to-Go, these files are located in the papz directory. The papz directory has the following structure:
The directory contain the following:
The login.jsp file generates the user login page. When the user clicks the Log In button, the flow moves to the loginAuthenticate.jsp file. The loginAuthenticate.jsp file validates the user. There are three possible results:
The flow of a login action is displayed in the following figure.
The JSP file PapzMain.jsp generates the Personalization Portal home page. PapzMain.jsp is a container file; it is accessed directly by browsers. It invokes other JSP files to generate each component of the main page. The following illustrates the files that generate the Personalization Portal home page.
topBar.jsp generates the function buttons at the top of the page. These buttons enable end users to change their profiles, log off, and invoke help. treeView.jsp, which is included by mainView.jsp, presents a tree view of the services available to the user. tableView.jsp provides a desktop view of folders and services, and includes links for editing service and folder attributes.
The edit and action JSP files execute the tasks associated with user customization:
For example, to rename a folder, Portal-to-Go first invokes edFolderRenameForm.jsp, then doFolderRename.jsp. The edit files are invoked by the JavaScript file papz.js.
Users can customize or configure the following:
The following sections discuss the files that execute the customization and the sequences in which they execute.
The edService.jsp file displays the Edit Service dialog, which allows users to customize their services. The dialog contains two frames:
The following figure shows the edit service window.
Depending on the option selected by the user, an input form is displayed in the bottom frame by an edNameActionForm.jsp file. When the user clicks the Finish button on the input form, the flow moves to a doNameAction.jsp file. The doNameAction.jsp file posts and processes input values, and, depending on the validity of the input values, displays a success or an error message. The following figure displays the flow of control when a user edits a service.
The following lists the actions a user can perform in the Edit Services dialog and the corresponding JSP files.
The architecture of the edit folder files is similar to that of the edit services files. The edFolder.jsp frameset file invokes the Edit Folder dialog, which allows users to customize their folders. The dialog contains two frames:
Depending on the option that the user selects in the top frame, the flow moves to a edNameAction.jsp file. This file displays an input form in the bottom frame. Once the user clicks the Finish button on the input form, the flow moves to doNameAction.jsp file. The doNameAction.jsp file posts and processes the input values, and, depending on the validity of the input values, displays a success or an error message.
The following lists the actions a user can perform in the Edit Services dialog and the corresponding JSP files.
Users can edit their jobs by clicking the Edit link corresponding to that job. The edJob.jsp frameset file displays the Edit User Jobs dialog. The dialog contains two frames:
Depending on the option selected by the user, the input form in the bottom frame is displayed by the edNameActionForm.jsp file. When the user clicks the Finish button on the input form, the flow moves to a doNameAction.jsp file. The doNameAction.jsp file posts and processes the input values, and, depending on the validity of the input values, displays a success or an error message. The following displays the flow of control when a user edits a job.
The following lists the actions a user can perform in the Edit User Jobs dialog and the corresponding JSP files.
The edUserPref.jsp file is the frameset file that displays the Edit User Preferences dialog. This dialog consists of two frames:
The Edit User Preferences dialog allows users to perform two types of actions:
The edUserPref.jsp file displays the Edit User Preferences dialog. Once the user selects the Change Password option, the flow moves to the edPasswordChangeForm.jsp file. This file displays the input form for retrieving the old and new password from the user. Once the user clicks the Finish button on the input form, the flow moves to the doPasswordChange.jsp file. Depending on the validity of user input (old and new passwords), a success or error message is displayed. The following displays the flow of control when a user changes passwords.
Agents enable Portal-to-Go to transmit notifications to users. Notifications are alerts that are sent to a user's device to notify the user of a specific event, such as a stock reaching a target price, in the case of a stock service, or a flight delay, in the case of a travel service.
The edUserPref.jsp file displays the Edit User Preferences dialog, which allows users to perform the following actions. These actions are displayed in the top frame:
Depending on the action selected by the user, an input form is displayed in the bottom frame by an edNameActionForm.jsp file. When the user clicks the Finish button on the input form, the flow moves to a doNameAction.jsp file. The doNameAction.jsp file posts and processes the input values, and, depending on the validity of the input values, displays a success or an error message.
The following displays the actions a user can perform to manipulate agent information and the corresponding JSP files.
A debug feature in the Personalization Portal puts detailed information in the sys_panama.log file. The .jsp file initPRequst.jsp initializes the papzRequest bean. The last argument of the initialize method call is true or false, which indicates whether you want the debug messages to appear in the log file or not.
The default value is set to false. To get detailed debug messages, set the value to true. Because the initPRequst.jsp file is a component file that is included in other container files, you should change the timestamp of the container file (for example, PapzMain.jsp). After you make these two changes, detailed debug messages, with the correct timestamp, will be printed in the log file.
This release of Portal-to-Go supports single-byte, multi-byte, and fixed-width encoding schemes which are based on national, international, and vendor-specific standards.
If the character set is single byte, and that character set includes only composite characters, the number of characters and the number of bytes are the same. If the character set is multi-byte, there is generally no such correspondence between the number of characters and the number of bytes. A character can consist of one or more bytes, depending on the specific multi-byte encoding scheme.
A typical situation is when character elements are combined to form a single character. For example, in the Thai language, up to three separate character elements can be combined to form one character, and one Thai character would require up to 3 bytes when TH8TISASCII or another single-byte Thai character set is used. One Thai character would require up to 9 bytes when the UTF8 character set is used.
Multibyte encoding schemes are needed to support ideographic scripts used in Asian languages like Chinese or Japanese since these languages use thousands of characters. These schemes use either a fixed number of bytes to represent a character or a variable number of bytes per character.
In a fixed-width multibyte encoding scheme, each character is represented by a fixed number of n bytes, where n is greater than or equal to two.
A variable-width encoding scheme uses one or more bytes to represent a single character. Some multibyte encoding schemes use certain bits to indicate the number of bytes that represent a character. For example, if two bytes is the maximum number of bytes used to represent a character, the most significant bit can be toggled to indicate whether that byte is part of a single-byte character or the first byte of a double-byte character. In other schemes, control codes differentiate single-byte from double-byte characters. Another possibility is that a shift-out code is used to indicate that the subsequent bytes are double-byte characters until a shift-in code is encountered.
The portal gets the encoding for the text of the site from the setting in the PAPZ logical device, which is in the repository. The default encoding is ISO-8559-1, which is the standard for the Western European languages. The portal sets the content for each page with the encoding specified by the logical device. To change the default encoding to multi-byte encoding, which enables the display of various Asian languages, click PAPZ under Logical Devices in the Service Designer and change the encoding according to the IANA standards for your particular language.
To localize the display of information, you can modify the static text for the JSP pages in the Service Designer and the Personalization Portal.
To localize the Service Designer, you can modify the following local strings resource files:
These files are located in the directory:
...\Service Designer\classes\oracle\panama\pasm
To localize the Personalization Portal, you can modify the following local strings resource files:
These directories are extracted when you unzip panama_papz.zip.
|
Copyright © 2000 Oracle Corporation. All Rights Reserved. |
|