This invention relates to the Internet, more particularly to methods and apparatus for producing and using portals and portlets in web applications to provide enhanced capabilities for web sites.
The World Wide Web brought a major paradigm shift to communications over the Internet, conveying graphical information to users. With the advent of the Web there was and still is demand for increasing communicability and broad connectivity.
The Portal (previously known as a web portal) has brought a paradigm shift in internet space. A web site that offers an array of resources or services such as email, forums, search engines, databases or other information may be considered to be a portal. The first web portals may have been online services. For the first time, users surfing the internet were able to see web pages that were assembled with and offered information coming from various sites in the world wide web, yet the aggregation's constitution was transparent to the user. A user making use of a typical web browser sees a cohesive web page displayed. The origination of different parts of the page from various internet sites not associated with the web site being viewed is not readily apparent. These parts are termed Portlets.
Portlets are the visible active components end users see within their portal pages. Similar to a window in a PC desktop, each portlet “owns” a portion of the browser or Personal Digital Appliance screen where it displays results.
From a user's view, a portlet is a content channel or application to which a user subscribes, adds to their personal portal page, and configures to show personalized content.
From content providers' view, a portlet is a means to make available their content.
From a portal administrator's view, a portlet is a content container that can be registered with the portal, so that users may subscribe to it.
From a portal's point of view, a portlet is a component rendered into one of its pages.
From a technical point of view, a portlet is a piece of code or a small application that runs on a portal server and provides content that is to be embedded into portal pages. In the simplest terms, a portlet may be a Java™ servlet that operates inside a portal.
Each part (portlet) of a given page (typically sourced from different places in the world wide web) can collaborate with another part (portlet) of the same page to achieve higher function for a user surfing or accessing the page. Thus, a portal becomes the single point of access for multiple users, via multiple channels, to multiple sources of information.
Portals can be applied in various business models, namely: business to consumer, business to business, or business to enterprise. The key to quick adoption of the portal paradigm ties strongly to its ability to integrate existing web application data into the portal framework in a seamless fashion.
However, various technical hurdles still exist for such seamless web application integration into portal.
There are limitations in the prior art concerning how the following portal artifacts work together with existing web applications. The implementation of integration of web applications into portal architecture is not well defined. These entities include:
When different users access a portal page, the original http request for each user is directed towards the portal server (a). The original http session for each user is also entirely “owned” by the portal server. Each of the portlets has its own independent session called a portlet session. When a portlet needs to render information that comes from a given web application, (b), there are typically the following technical hurdles:
This gets complicated when multiple portlets call the same web application, with the web application treating these multiple portlets requests within the same web application session.
When a well defined set of portlets within the same portlet application interact with the one web application at the backend, all the participating portlets must be able to retrieve and forward the correct session information to the web application at the backend such that the information rendered from the web application is consistent with the setting of that of the portal of the portlets. Examples of such setting includes locale information, user agent of that particular access etc. For example, the responses sent from the web application must be using the same locale with the portlet in the portal server who displays it.
There is no existing mechanism for single sign on such that the portal user's credentials will not be challenged by the backend web application. This is a critical requirement. The absence of it will result in the user's credentials being challenged when the user moves from one part of a web page to a different part of the same web page; as the portlets have different originations and identification requirements.
There is no existing mechanism for synchronization of multiple requests or responses between portlets of a given portlet application and the pertinent web application backend.
The prior art has limitations concerning how multiple portlets within the same portlet application can collaborate with one another (sharing the same context) as well as with the various integrated web applications dynamically is not defined.
One Usage Scenario involving multiple portlets collaborating by sharing the same ‘context’ dynamically will serve to conceptually illustrate the limitation:
With three portlets being displayed on the same portal web page:
The second and the third portlets are contextually bound to the first portlet dynamically, reflecting outstanding invoices (2nd portlet) and order history (3rd portlet) and are synchronized with an account selected from the account list of the first portlet.
Limitations of the prior art:
There is no mechanism existing in the prior art to define a refresh sequence for a group of portlets within a portlet application
There is a lack of a well defined mechanism in portal architecture to support the aggregation of portlets based on business rule and user profiling information including the users' role.
There is no sharing of portal level business rules and user profile information with pertinent integrated back end web applications.
There is no sharing of business rules or user segmentation information with an integrated web application such that these rules and user segmentation can be consistent across a portal and its integrated backend web application. For example, if there is a rule defining the age range of a teenager, such a rule should be visible and applicable to the integrated web application for consistency.
Terminology
Portlets
Portlets are the visible active components that the end users see within their portal web pages. Similar to a window in a PC desktop, each portlet “owns” a portion of the browser or PDA (Personal Digital Appliance) screen where it displays portlet specific information.
Portlet Application
Portlets can also be grouped together in a portlet application. Portlet applications are distributed and deployed using Web archive files (WAR). There are portlet specific extensions to the standard Web application deployment descriptor.
Portlet Messages
Portlet messages are used for the communication between two portlets using portlet actions and portlet messages. The sending portlet creates a portlet action, encodes the action into a URL. When the URL is addressed, e.g. by a user trying to accomplish an task, the action listener is called and sends a portlet message to send the necessary data.
Portlet Session
A Portlet session is created for each portlet instance for each user logging on to maintain session information for each user per portlet instance.
Portlets of a given portlet application have limitations today concerning how multiple portlets within the same portlet application can collaborate with one another, sharing the same context, such these portlets that render responses from the integrated web application are able to render content dynamically related to the context in effect.
There is also no mechanism today to define subgroup of portlets within a given portlet application to work collaboratively in such a manner that no code change of the participating portlets is required. There is also no mechanism to detect the change in context dynamically nor is there mechanism today to register a predefined action for the participating portlets, including mechanism to relay that dynamic context to the relevant integrated web application.
The various embodiments and aspects of the invention herein address one or more shortcomings of the prior art.
A method according to the invention makes use of a dynamic context Portlet group that enables the collaboration among portlets within the same dynamic context portlet group to achieve business process and information integration and synchronization.
Another embodiment of the invention provides means for managing the multiple associated portlets; each associated portlet having a portlet descriptor describing context names, with defining context values. Each group of portlets includes a master portlet and at least one slave portlet; each group of portlets share context names in common.
Another embodiment of the invention includes means in the portal server for broadcasting communicating changes in context values of a master portlet to slave portlets. Each portlet descriptor includes refresh priority description of the portlet. The master portlets have higher priorities than slave portlets.
Embodiments of this invention make possible the synchronization of information integration and business process integration. Simple structure of dynamic context group enables the contextual grouping through deployment without requiring implementation change of the portlets, providing advantage of the invention.
One embodiment of the invention provides apparatus for displaying to a user a web portal for a web application, the web portal displaying a plurality of associated portlets, sharing information with each other, accessible by the user; including: a portal server for operating a web portal to provide access to the web application; a portlet application for operating on the portal server, for managing a collection of associated portlets; the portlet application includes: means to initiate portlets on requests of a user to access the web application; means to manage a portlet application session object for the portlets; and, a portlet application session object data store controlled by the portlet application session object for saving parameters from user requests for associating the portlets with the with the portlet application session object.
The apparatus of the invention may include a portlet application communication client in the portlet application for communicating between the portlet application session object and the web application to convey user requests received from the associated portlets to the web application. The portlet application may assign a common key to each portlet associated with a portlet application session object.
Another embodiment of the invention provides an apparatus for displaying a web portal for a web application to a plurality of users, the web portal displaying a plurality of portlets, sharing information, accessible by the users; including: a portal server for operating a web portal to provide access to the web application; a portlet application for operating on the portal server for each of the plurality of users, for managing a collection of associated portlets for each of the plurality of users; each the portlet application includes: means to initiate portlets on requests of one of the plurality of users to access the web application; means to manage a portlet application session object for the portlets; and, a portlet application session object data store controlled by the portlet application session object for saving parameters from user requests for associating the portlets with the with the portlet application session object.
Another embodiment of the invention provides apparatus for displaying to a user a web portal for a plurality of web applications, the web portal displaying a plurality of associated portlets, sharing information with each other, accessible by the user; including: a portal server for operating a web portal to provide access to the web application; a plurality of portlet applications relating respectively to the plurality of web applications for operating on the portal server, each portlet application being adapted to managing a collection of associated portlets; each the portlet application includes: means to initiate portlets on requests of a user to access one of the plurality of web application; means to manage a portlet application session object for the portlets; and, a portlet application session object data store controlled by the portlet application session object for saving parameters from user requests for associating the portlets of the portlet application with the with the portlet application session object of the portlet application session.
Another aspect of the apparatus of the invention includes a user session information table adapted to connect to multiple web applications with the portlet application session object.
Still another embodiment of the invention provides apparatus for displaying to a user a web portal for a web application, the web portal displaying a plurality of associated portlets, sharing information with each other, accessible by the user; including: a portal server for operating a web portal to provide access to the web application; a portlet application for operating on the portal server, for managing a collection of associated portlets; the portlet application including: means to initiate a first portlet on request of a user to access the web application; means to create a portlet application session object for the user for the first portlet; means to save parameters from the request; means to generate additional portlets associated with the first portlet on further requests of the user to access the web application; a portlet application session object data store controlled by the portlet application session object for using the saved parameters for associating the additional portlets with the with the portlet application session object; and, means to create a portlet application communication client (httpClient) for communicating with the portlet application session object and the web application to convey user requests received from the first and additional portlets to the web application.
The apparatus may include a portlet application communication client in the portlet application for communicating between the portlet application session object and the web application to convey user requests received from the associated portlets to the web application.
The portlet application preferably assigns a common key to each portlet associated with a portlet application session object.
A user session information table adapted to connect to multiple web applications with the portlet application session object may advantageously be provided.
Another embodiment of the invention provides apparatus for displaying to a user a web portal for a web application, the web portal displaying a plurality of associated portlets, sharing information with each other, accessible by the user; including: a portal server operating a web portal to provide access to the web application; a portlet application operating on the portal server, for managing a collection of associated portlets; the portlet application including: means to initiate portlets on requests of a user to access the web application; means to manage a portlet application session object for the portlets; and, a portlet application session object data store controlled by the portlet application session object for saving parameters from user requests for associating the portlets with the with the portlet application session object.
Another aspect of the invention provides a method of sharing information between a plurality of associated portlets in a web portal including: granting access for each of the plurality of associated portlets to a portlet data store; permitting each of the plurality of associated portlets to write data to the portlet data store and to read stored data from the portlet data store.
The method above may advantageously provide a system wherein the associated portlets are managed by a portlet application adapted to operate on a data processing system; wherein the portlet data store comprises portlet application storage managed by a portlet application session object which controls reading and writing of data by the associated portlets in the data store permitting exchange of data among the associated portlets of the portlet application.
Another aspect of the invention provides apparatus for sharing information between multiple associated portlets in a web portal including: a portlet application for managing the multiple associated portlets; a portlet application data store; means for granting read/write access to the data store by the multiple associate portlets to enable the portlets to exchange data among each other.
Yet another aspect of the invention provides a portlet (application) server capable of operating on a portal server for hosting multiple associated portlets in a web portal including: means for managing the multiple associated portlets; means for managing a portlet application session object; a portlet application data store managed by the portlet application session object for granting read/write access to the data store to the multiple associate portlets to enable the associated portlets to exchange data among each other.
Another aspect of the invention provides a portlet (application) server capable of operating on a portal server for hosting multiple associated portlets in a web portal including: means for managing the multiple associated portlets; means for creating and managing a portlet application session object; a portlet application data store created and managed by the portlet application session object for granting read/write access to the data store to the multiple associate portlets to enable the associated portlets to exchange data among each other.
Advantageously, the portlet application assigns a common key to each portlet associated with a portlet application session object.
Another aspect of the invention provides a portlet application capable of operating on a portal server for hosting multiple associated portlets in a web portal accessible by a user, including: portlet application means for managing the multiple associated portlets; portlet application means for managing a portlet application session object for the user; portlet application means for granting the key to each associated portlet for controlling access to the portlet application object.
Still another aspect of the invention provides a portlet application capable of operating on a portal server for hosting multiple associated portlets in a web portal accessible by a user, including: portlet application means for managing the multiple associated portlets; portlet application means for creating and managing a portlet application session object for the user; portlet application means for creating and managing a key for the user for the portlet application session object; portlet application means for granting the key to each associated portlet for controlling access to the portlet application object.
Advantageously one portlet application is assigned to each user and one key is assigned respectively for each user to respective portlet application objects for each portlet application.
Another aspect of the invention provides apparatus for displaying to a user a web portal for a web application including: a portal server for operating a web portal to provide access to the web application by a user; a portlet application, for managing a collection of associated portlets, for operating on the portal server; a portlet application session object for the user for the associated portlets; a portlet application session object data store controlled by the portlet application session object; a portlet application communication client linked to the portlet application data store for communicating between the associated portlets and the web application to convey user requests received from the associated portlets to the web application; the communication client having a request buffer for storing and synchronizing requests from the associated portlets to enable the communication client to generate synchronized to the web application.
Preferably the portlet application communication client is adapted to send information including requests over a network to a web application and receive information including responses to the requests from the web application.
Another aspect of the invention provides apparatus for displaying to a user a web portal for a web application including: a portal server for operating a web portal to provide access to the web application by a user; a portlet application, for managing a collection of associated portlets, for operating on the portal server; a portlet application session object for the user for the associated portlets; a portlet application session object data store controlled by the portlet application session object; a portlet application communication client linked to the portlet application data store for communicating between the associated portlets and the web application to convey user requests received from the associated portlets to the web application; the communication client having a request buffer for storing and serializing requests from the associated portlets to enable the communication client to generate serialized to the web application.
Preferably, the portlet application communication client is adapted to send information including requests over a network to a web application or web application server and receive information including responses to the requests from the web application.
Another aspect of the invention for a portal server adapted to operate a web portal to provide access to a web application; having a portlet application operating on the portal server, for managing a collection of associated portlets; wherein the portlet application includes: means to initiate portlets on requests of a user to access the web application; means to manage a portlet application session object for the portlets; and, a portlet application session object data store controlled by the portlet application session object for saving parameters from user requests for associating the portlets with the with the portlet application session object, the apparatus including: a portlet application communication client (httpClient) linked to the portlet application data store for communicating between the associated portlets and the web application to convey user requests received from the associated portlets to the web application; the portlet application communication client having a user session information store (mapping table) for storing user session information including selected information from the set of the following user session information: user id, user credentials, language preferences, session timeout information, session id, etc. for mapping the user session information to a corresponding session of the web application.
The session timeout information preferably includes session timeout information of the portal server and the web application.
Another aspect of the invention provides portlet application, for managing a collection of associated portlets in a portal, for operating on a server providing access to a web application by a user; the associated portlets having portlet request parameter maps storing data and instructions from user requests to the portlets; a portlet application session object for the user for the associated portlets; a portlet application session data store controlled by the portlet application session object; a portlet application communication client (httpClient) linked to the portlet application data store for communicating between the associated portlets and the web application to convey user requests received from the associated portlets to the web application; the communication client having a request buffer for storing requests from portlet request parameter maps of the associated portlets to enable the communication client to provide data and instructions for the web application.
Another aspect of the invention provides a portlet application communication client (httpClient) linked to the portlet application data store for communicating between the associated portlets and the web application to convey user requests received from the associated portlets to the web application; the portlet application communication client having a user session information store (mapping table) for storing user session information including selected information from the set of the following user session information: user id, user credentials, language preferences, session timeout information, session id, etc. for mapping the user session information to a corresponding session of the web application; the session timeout information including session timeout information of the portal server and the we application.
Preferably the above includes synchronization means for the portlet application communication client for matching session timeouts between portal server and the web application by re-authenticating the user if the web application times out before the portal server.
Another aspect of the invention provides a portlet application capable of operating on a portal server for hosting multiple associated portlets in a web portal accessible by a user, the portal server providing messaging means for allowing the associated portlets to message each other, including: portlet application means for managing the multiple associated portlets; each associated portlet having a portlet descriptor describing context names; the associated portlets including collaboration groups of portlets having corresponding context names defining context values; each the group of portlets including a master portlet and at least one slave portlet; wherein each the group of portlets share context names in common; means in the portal server for broadcasting communicating changes in context values of a master portlet to slave portlets of the master portlet; means in the portal server for changing context values of the slave portlets to match context values of the master portlet as broadcast.
Another aspect of the invention provides a portlet application capable of operating on a portal server for hosting multiple associated portlets in a web portal accessible by a user, the portal server having portlet refresh capability, including: portlet application means for managing the multiple associated portlets; each associated portlet having a portlet descriptor; each portlet descriptor including refresh priority description for the portlet; the associated portlets including collaboration groups of portlets; each the group of portlets including a master portlet and at least one slave portlet; means in the portlet application means for refreshing the portlets in order of their refresh priorities.
Still another aspect of the invention provides a portlet application capable of operating on a portal server for hosting multiple associated portlets in a web portal accessible by a user, the portal server having portlet refresh capability, including: the associated portlets including collaboration groups of portlets; portlet application means for managing the multiple associated portlets; each associated portlet having a portlet descriptor; each portlet descriptor including a refresh priority description for the portlet, and a refresh description priority for the group of portlets of which the portlet is a member; each the group of portlets including a master portlet and at least one slave portlet; means in the portlet application means for refreshing the portlets in order of their priorities; means in the portlet application means for refreshing the collaborative groups of portlets in order of their group refresh priorities.
The master portlets have higher priorities than slave portlets.
Preferably the portlet application refreshes the groups first in group priority order and then refreshes within each group in priority order.
Another aspect of the invention provides apparatus for displaying to a user a web page session for a web application, the web page session displaying a plurality of associated collaborative portlets, sharing information with each other, accessible by the user including: a portal server for operating a web portal to provide access to the web application; a portlet application, for managing a collection of associated portlets, for operating on the portal server; access means to access a rules database; the rules including rules controlling display of sets of portlets, pages, page groups to users; selection means to select a set of portlets, pages, and page groups to be displayed to a user based on information provided by the user (information properties).
In another variation of the invention the selection means includes a pluggable rules engine, a rules database, and a portlet application aggregation engine which applies rules to select and display selected portlets, pages, and page groups to a user.
Another aspect of the invention provides apparatus for displaying to a user a web page session for a web application, the web page session displaying a plurality of associated collaborative portlets, sharing information with each other, accessible by the user including: a portal server for operating a web portal to provide access to the web application; a portlet application, for managing a collection of associated portlets, for operating on the portal server; roles access means to access a roles database; the roles database containing rules controlling display of sets of portlets, pages, page groups to users based on user roles; role selection means to select a set of portlets, pages, and page groups to be displayed to a user based on an identified role of the user.
Other aspects of the invention provide an article including: a computer readable signal bearing medium; computer program code means recorded on the medium adapted to perform the methods of the embodiments of the invention described above.
Other aspects of the invention provide an article including: a computer readable signal bearing medium; computer program code means recorded on the medium adapted to implement the apparatus of any of the embodiments of the invention described above. The medium may be selected from the group consisting of magnetic, optical, biological, and atomic data storage media as appropriate.
The medium may be a modulated carrier signal.
The signal may be a transmission over a network.
Embodiments of the present invention will be described, by way of example only, referring to the accompanying drawings in which:
A.1. Portal and Web Applications Integration Enablement
A.1.1 Portlet Application Http Client
The portlet (that makes http requests to the back end web application) uses the Portlet Application Http client 209 used to open an Http connection to a backend web application that runs on a backend application server 210. The backend web application requires a Portlet Application Http client 209 to provide session support over multiple requests and responses, cookie handling and Single Sign on (SSO) logic. All the portlets in the same portlet application use the same portlet application Http client object 209 to connect to one or more backend web applications. There is one Portlet Application http client 209 per portlet application 204.
A.1.2 Portlet Application Session
The Portlet Application Session object 208 is a unified data store object that can be shared by all portlets in a given portlet application. This object exists per user and per portlet application. The Portlet Application Session object 208 provides infrastructure so that multiple portlets in a given portlet application will have independent user sessions (called portlet sessions 204205,206) but share the same Portlet Application Session, and communicate with the web application on the backend application server 210 with a single web application session.
A.1.3 Portlet Application Session Context
Portlet Application Session Context provides information that is per user and per portlet application. This means that all portlets within the same portlet application (204, 203) can now have a way to share common information among them.
A.1.4 Session Relay Mechanism 320
The Session relay mechanism enables the passing of information from the original http session held by the portal server to the back end http session created by the portlet application's http client. This mechanism uses the following infrastructure:
Cookie Table 305 & Cookie Lookup Key
Cookie table 305, (a user session information table) is the main entity for mapping the portal server cookies to the backend web application session cookies. The mapping relationship between the cookie of the http requests to the portal server and the cookie of the portlet application http client to one given web application is one to one. However, A given portlet application http client can make http requests to different web applications with each web application maintaining independent sessions. With that regard, the mapping between the portal server session cookie and that of the backend web applications can be one to many (due to multiple backend web application servers).
RQ1: cookie from the http request of a user agent (browser) to the portal server
RQA: cookie from the http request of the portlet http application client to the web application A
RQB: cookie from the http request of the portlet http application client to the web application B
The Portlet Application Http client 209 uses this table to look up the matching cookie to the backend web application running on the backend web application server 210.
The existence of this cookie mapping table 305 enables the automatic expiration of a backend web application session when the portal server session expires.
Cookie Lookup Key
The portlet application http client 209 is created per portlet application. The cookie lookup key is stored in the portal application session object which is accessible to all the portlets within the same portlet application. This cookie lookup key is responsible for matching the http session of the portal server with the http session of the back end application.
The use of the cookie lookup key allows all portlets in a given portlet application who share the same Http Client key to retrieve and forward the correct set of backend web application information for the currently logged in user such that all the portlets in the same portlet application work in synchronization to update the backend web application being used. The effect is that the end user sees a unified view of the backend web application through multiple portlets.
Portlet Request Parameter Map
The Portlet Request Parameter Map 308 is in a memory object stored in the shared application session data store which is created per portlet, per portal server session. It is used to store all request parameters from an incoming user request to a particular portlet.
A.2. Dynamic Content Synchronization of Portlets
A.2.1 Dynamic Context Definition Template
The Dynamic context Definition template 503 defines the following for each Dynamic Context Group:
This tool 501 reads in the Dynamic Context Definition Template 503 and generates Dynamic Context Master Portlet and Slave Portlets for all Dynamic Context groups according to the definition specified by updating the portlet deployment descriptors 502 correspondingly.
A.2.3 Dynamic Context Group
A dynamic context group is a subset of portlets that share the same context and are grouped under one dynamic context group. A given portlet can belong to more than one dynamic context group.
The Dynamic context group definition document instance 504 is used to define the dynamic context of a particular dynamic context group).
Dynamic Context Master Portlet
Dynamic Context Master Portlet is responsible for
Dynamic Context Slave portlets do the following:
There are two types of Dynamic Context models that can be used for associating portlets with each other:
A.2.4 The Sync Model
In the Sync model, depicted in
Sync Model Diagram
A.2.5 The Chaining Model
In the chaining model, indicated in
A.2.6 Portlet Transaction Manager:
A Sequence Aware Portal Aggregation Engine Extension Referring to
1. The first portlet to be refreshed for any portlet application is defined as that portlet which is refreshed first among all the portlets for a given user. There is no existing mechanism to define the refreshing sequence of portlets within a given page.
Thus, some logic is needed which can identify the master portlet dynamically at runtime. In the present embodiment a simple scratchboard is used where each portlet makes a mark every time it is refreshed. the first time a portlet makes a mark on this scratchboard it knows that it is the first or master portlet. The next portlet that makes a mark on this list can already see that other portlet has made a mark on it and knows that it is not the master portlet, etc. The next time the portal page is refreshed, the first portlet that makes a double mark on this list becomes the master portlet. The master portlet then, reinitializes this list by removing the marks of all the other portlets and also one of its double marks for the next request. This algorithm allows us to detect the master portlet dynamically every time a request comes in from the portlets' portal server.
After the first portlet is refreshed the transaction manager takes over to refresh the other portlets in the sequence as predefined in the master and slave portlet mapping of the dynamic context group.
2. Sequence sorter: The sequence sorter module 1804 is used to sort the portlets in their refresh sequence order. It used the portlet deployment descriptor to identify the refresh order of each portlet and then sorts them out for the request dispatching engine.
3. Sequence Aware Request Dispatching Engine Extension: This engine 1805 is used to dispatch requests to the portlets and over-rides the portal aggregation engine. Its job is to construct the appropriate portlet request and response objects, as well as the portlet session for all the portlets in the commerce portal application. It is then used by the transaction manager to actually refresh the portlets.
4. Transaction Manager Caching Unit: The transaction manager caching unit 1806 is used by the transaction manager 1802 to cache the responses produced by the portlets as they are refreshed by the request dispatching engine. This is necessary as when the portal aggregation engine now requests for a portlet refresh, these cached responses are sent back to it by the transaction manager. This avoids the problem of double refresh per incoming portal request.
A.3. Rule Based and Role Based Aggregation
Portal Resource Translation Module
The portal resource translation module 1015 is responsible for translating the set of Portal resources including: portlets, pages and page groups into a form that can be parsed and processed by the external rules engine 1022.
Rules Database
The rules database 1001 holds business manager defined rules for the portal aggregation engine 1006.
User Resource Translation Module
The user resource translation module 1013 is responsible for translating user resources and the various user properties into a form that can be parsed and worked upon by the external rules engine.
Pluggable Rules Engine
The rules engine 1022 is an external, pluggable rules engine (in this embodiment of the invention), such as the websphere™ personalization engine, that is used for dynamic rule parsing and execution. The engine's execution produces the set of portal resources that the user should see based on the business rules defined by the business user and the user properties of the current user.
Portal Roles Based Personalization Engine
The Portal roles based personalization engine 1008 is a roles based resource selection module that is used for extracting the list of portal resources a user is allowed to access and the list of portal resources the user is not allowed to access based on the user's organization membership.
The roles based engine 1008 first looks at the user's organization by accessing the roles database 1007. Once the user's organization has been determined, his role is assumed to BE the same as the role of that organization. After this the roles based personalization engine 1008 extracts the list of resources that have been defined as accessible and inaccessible for this organization by the business user. Once this list has been determined IT is forwarded by this module to the portal aggregation engine's aggregated resource translation subsystem for further processing.
Roles DB
The Roles DB 1007 holds the organization data for the portal server. It holds information about organization membership for various users and also the list of portal resources that members of an organization can and can not access based on their roles.
Portal Aggregation Engine Aggregated Resource Translation Subsystem
This module 1004 is responsible for creating the master list of portal resources that the current user is allowed to see (this includes portlets, pages, and page groups) based on the output of the rules and roles based personalization engines. This module is also an adapter for the actual portal aggregation engine. Its job is to not only create this master list but also to translate it into a form that can then be accessed by the actual portal aggregation engine for creating the final web site for the end user.
Part B: Operational Description
B.1 Portal and Web Application Integration Enabling Description
B.1.1 Overall Integration Structure & Flow Diagrams
B.1.2 Detailed Description
Referring to
The response from the web application 221 is rendered via portlets of the portal server 201 to a user accessing the portlet.
With the implementation of the Portal Application HTTP client 209 multiple requests and responses to the backend web application are perceived by the back end web application as cohesive sessions. The Portal Application Http client 209 is used to open Http communication connections to the backend web application 221. The backend web application requires the Portal Application Http client 209 to provide session support, cookie handling and Single Sign On (SSO) capabilities. With the Portal Application HTTP client 209 in place, the portlets can effectively communicate with web application. All the portlets in a portlet application (such as portlet application 205) need to have access to one portlet application session object 211 of the back-end application 221, that means that Portal Application Http client 209 must be shared by all the portlets within the same portal application.
To make such sharing possible we have determined that a unified session object that can be shared by all portlets in a given portal application is needed. To provide such an object the invention herein provides a Portlet Application Session object 208. The Portlet Application session object 208 is an object that is created by the commerce portlet application. The portlet application session object 208 is accessible by all portlets in a given portlet application (such as portlets 204, 205, 206 in portlet application 1, 207). Without the portlet application session object, 208, multiple portlets in a given portal application will all have independent user sessions and will not be able to share session related information.
The Portlet Application Http client 209 is stored in the Portlet Application Session 208, making it possible to share it among portlets in the same portlet application. Without this portlet application session object it would not be possible for the portlets to communicate with a single web application session on the backend.
All the data that is stored in the Portal Application Session object 208 represents Portal Application Session context and exists per user per portal application.
Since the Portlet Application http client 209 holds all session information for the back-end web application 221, it is used as a base for the Session Relay mechanism 320 depicted in
Session relaying allows session information to be relayed that is specific to the whole portal server 201 (such as language information, user agent information, etc) to the session information of the back-end web application 221. That means that the back-end web application 221 is able to deliver the data representation that conforms to all the requirements contained in the original request sent to the portal server by a user.
For example, if the user accesses the portal using a WAP (wireless application protocol) enabled mobile device, with default language locale set to “French” then The original http request to the portal server 201 will have ITS language parameter set to “French” and user-agent field of the HTTP header set to “WAP”. The Session Relay mechanism 320 relays this information to the web-application 221 and the web application returns a response in French that is suitable for display on the user's mobile device in French. If the Session Relaying were absent the web-application would return the information in the default-language (for example English) suited for the default device (for example an Internet Browser). In that case the user would not be able to see the retrieved data as it would be incompatible with the user's mobile device.
Reference will be made to elements in the structural diagram
Step 401, the user interacts with portlets on a web portal, for instance by using a computer mouse to click on a link or object displayed in a portlet on the user's web browser. Each portlet has its own portlet session 310 (portlet session is a piece of prior art). As part of the user interaction, a remote request 306 is being made to be backend web application 307.
2. Step 403, in order to pass all the parameters in the portlet session correctly to the backend web application each portlet request's parameter list is saved in the Portlet Request Parameter Map (#8) 308. These parameters are passed to the remote back end request.
3. Step 404, the commerce portlet uses a http client key 301 to determine if there is already an existing Portlet Application Session Object 208 and Portlet Application Http Client 303 by accessing portlet application data store #4, 302. step 405, If one is not found, a new one will be created for all the portlets within the same portlet application. (Step 407, If one is found, the existing one will be used instead.)
4. Step 406, each user credential from the original portlet session is saved in the cookie table 305.
5. Step 408, the user credentials from the cookie table 305 and the parameters previously saved in the portlet request parameter map 308 are used to construct a new http request to the backend web application.
6. Step 409, the call to remote web application is made 307.
7. Step 410, the remote web application 307 returns a response to the call for the portlet to display.
B.2 Dynamic Context Synchronization of Portlets
B.2.1 Development Time Description
Referring to
User uses the same tool 501 to update an existing Dynamic Context Group Definition.
After the user has provided the latest dynamic context group definition, the Dynamic Context Portlet Grouping Tool 501 updates the appropriate portlet application deployment descriptors 502 to reflect the relationships defined in the group.
Referring to
When a user wants to create (608) or update (609) a dynamic context group, the user can employ the grouping tool 501 (
601, the dynamic context grouping tool prompts for user input based on what is specified in the dynamic context group definition template 503, or in the case of updating the dynamic context grouping tool reads in an existing dynamic context group instance, validating it with the definition template 503.
603, the user specifies the required information to define or update a dynamic context group.
605, the dynamic context group instance 504 is generated.
606, the deployment descriptor of all related portlets are updated.
Dynamic Context Grouping
Group 703 is comprised of master portlet 705, slave portlet 706, and slave portlet 707.
Dynamic group 702 is comprised of master portlet 704 and slave portlet 708.
If the data that is represented by portlets in a Portlet Application is synchronized at the back-end application level, then the portlets deliver a coordinated view of the data just by retrieving that data from the web application. However, not all portlet interactions result in the changes at the backend web application. Dynamic context serves as the synchronization ‘at the glass’. It is most effective when a change in context requires a different query. For example, selecting a different account from the account list requires displaying of invoice information being refreshed with the account selected.
In prior art systems Portlets were normally independent of each another. This invention provides method and apparatus to map the relations of portlets with each other and articulate their dependency on each other at portlet application deployment and configuration time. The portlets themselves do not need to be changed.
The dependency relationships among portlets can be defined in a Dynamic Context Relationship Template 503 in which the master and slave relationships are defined.
The Dynamic Context Relationship Template 503 is preferably encoded as an XML data representation that defines the following:
An example of a Dynamic Context Group definition instance follows:
The dynamic context group Definition Instances note: one dynamic context group definition is one instance. However, multiple dynamic context group definitions can be consolidated into one file to define multiple instances above defines two portlet sets in a portlet application consisting of 3 portlets.
In the first dynamic context group, the dynamic context shared between the portlets is itemName, the portlet named OrderedItems serves as Dynamic context Master portlet and portlets UPSTracking and InStockInventory serve as the Dynamic context Slave portlets.
In the second dynamic context group, the dynamic context shared between the portlets is itemSkuNumber, the portlet named InStockInventory serves as Dynamic context Master portlet and portlet OrderedItems and serves as the Dynamic context Slave portlets.
Each Dynamic context Master portlet observes a user HTTP request and looks for the dynamic context. If the dynamic context is found in the request, the dynamic context portlet sends a dynamic context (which is the name and value pair parameter in the http request) to the Slave portlets.
For example if OrderedItems portlet receives an HTTP request with attribute itemName set to “PentiumIV” it sends the dynamic context to the portlets UPSTracking and InStockInventory notifying them that context itemName with value “PentiumIV” was now set in the dynamic context.
Each Dynamic context Slave portlet listens to the master's notification to all slave portlets of the same dynamic context group. Upon receiving the master's notification, the corresponding slave action is invoked by adding the dynamic context to the action URL as defined in the dynamic context group definition instance under attribute ‘SlavePortletAction’.
For example if inStockInventory portlet receives the dynamic context from OrderItems portlet with dynamic context type “itemName” and value “PentiumIV” it will retrieve the data from the http://inventoryserver.com/inStock/itemName=PentiumIV URL.
Coding for an example of a Dynamic Context Group Definition Template follows:
B.2.2 Run Time
This section will best understood by referring to
There are two key component to handle Runtime aspects of the Dynamic Context:
At portlet initialization time (
A number of figures will be referred to in this section including:
The role and rules based dynamic aggregation components for the portlet server are based around the rules and roles databases and the concept of content groups for each role and rule.
The content groups for the rules are kept in the Rules DB component 1001 shown in
Another major component in this scheme is the Pluggable Rules Engine 1022. The task of this engine is to read in the translated user properties and decide dynamically at runtime the set of users who qualify for membership of a certain predefined user group based on these user properties. Also this engine maps the set of these dynamic user groups to the set of content groups that have been defined in the roles and rules DB. Preferably the Pluggable Rules Engine has a GUI to manage these tasks. The screen shot depicted in
For example,
As shown in
At development time it is the task of a business manager to assign a set of portal resources such as: pages, portlets etc. to a specific content group in the Roles and Rules DB. This is currently done by using SQL scripts that directly load the Rules and Roles DB.
B.3.1 Rule Based Role Based Dynamic Aggregation Run Time Enabling Description
At runtime the first command to execute for a portal user is the wrapper command for the rules based engine. This command is actually a proxy that starts the evaluation of user's properties by the actual pluggable rules engine.
In the next step the rules engine reads in the user's properties from his stored profile, by utilizing the user resource translation module to translate them into a form that can be understood by it.
After reading in the user properties the pluggable rules engine evaluates the dynamic group membership of this user based on the rules defined for the various dynamic groups as shown in
Once the set of dynamic groups for this user has been ascertained the rules engine selects the appropriate portal content for this user by executing the content selection actions defined for this dynamic group as shown in
The next execution step is the evaluation of the roles assigned to this user by the roles engine. The roles engine uses the organization membership (extracted from the user profile properties) to extract the set of content resources for this user's role from the Roles DB. These resources are then added to the already existing list of rules based portal resources created in the previous set.
This list is then forwarded to the dynamic Portal Aggregation Engine for execution. The dynamic portal aggregation engine then selects the portal resources identified by this list to set up the default portal view for this current user.
1. Common Backend Web Application Integration Implementation
With the Portlet Application Http Client and Portlet Application Session, it is now possible to have a common backend web application integration model. This can be used to enable multiple portlets within the same portlet application to communicate with the same web application backend.
This implementation makes it possible to:
i. have native portlet integration without launching separate browsers, and without requiring multiple prompts for user id and password to access the same backend web application;
ii. make multiple requests and receive responses to/from the backend application with session management.
2. Simple Common System Leading to Simple Tooling
The instant implementation, provides an easy and quick method to integrate portlet applications with an existing web application operating on a backend server; with merely requiring the specification of the url of the pertinent backend web application in the deployment descriptor of the portlet application. With this, it becomes possible to build tooling to take care of the commonality tasks of the integration.
3. Portlets Within the Portlet Application Share Common Session and Session Data
The implementation of a portlet application session object makes it possible for portlets of the same portlet application to share common data among themselves that are unique within a portlet application, while at the same time being different from that of the original http session of the portal server. This facilitates the sharing of data unique among the portlets within the same portlet application.
4. Portal Session and Back End Session Sharing Common Session Data
The session relay implementation makes possible the sharing of common session data between a portal server and its backend web application. This enables the backend web application to receive information from the portal server, enabling business logic of the web application to exploit this information passed from the portal server.
For example: if the current portlet state is to display the maximized view of the portlet, the backend web application can receive this piece of information and take advantage of this by sending back detailed business information, in contrast to the normal view of a portlet, in which case the backend web application would just send a summary version of the information.
5. Cohesive Back End Web Application Session Distinct from the Portal Server
with the portlet application session, portlet application session object, portlet http client, and the session relay mechanism A back end web application can now preserve its own session distinct from that of the portal server, but still share the same cookie with that of the portal server. The backend web application can now operate independently and correctly, perceiving portlet requests from various portlets in a portal as one virtual client, enabling a cohesive session with the backend web application.
6. Single Sign On Across Portal Server and Back End Web Application
The session relay embodiment provides single sign-on capability such that the user, once logged on to a portal server, is not required to resubmit user credentials to log on to the pertinent back end web application. This is enabled by means of a cookie table with one to one mapping between the http session to the portal and the http session from the portlet http client to the backend web application.
7. Back End Web Application Behavior Synchronized with That of the Portal Server
The session relay embodiment enables enabling seamless integration by synchronizing the behavior of a backend web application by relaying the session information from the portal session to the session of the back end web application.
The following are some examples:
The language and locale setting in a portal server can now be passed to its backend web application so that the backend application can now compose a response message based on the locale+language setting of the portal server.
Another example is that session expiry information from the portal server can now be passed to the backend web application session so that the backend web application session can now be timed out at the same time that the portal session times out. The backend web application can now be responsive to the portal state and events as relayed from the portal server.
8. Synchronized Content Within the Same Portal Page
Dynamic Context Portlet Grouping allows collaboration among portlets within the same dynamic context group to achieve business process and information integration and synchronization.
Each portlet is allowed to participate in multiple Dynamic Context Groups. This provides a very open and simple programming model for portal administrator to group portlets into dynamic context portlet groups.
The simple structure of Dynamic Context definition enables simple tooling to be built for automatic generation of Dynamic Context Master and Slave portlets for each grouping.
Dynamic Context Definition implementation, Dynamic Context Group, master portlet and slave portlet implementation (including the slave tasks, slave context map) assist in providing advantages.
9. Ability to Define Refresh Sequence of Portlets
The transaction manager provides the capability of defining a refresh sequence of portlets for the first time. The ability to define refresh sequence of portlets enables proper implementation of sequential business logic using the portal/portlet architecture. The transaction manager; resource sorter; the caching of responses assist in providing advantages of the invention.
10. Rule Based and Role Based Aggregation
Fine level portal personalization can only be achieved at present by dynamic aggregation. This is distinctly different from the prior art implementation of regular web applications in which there is no formal concept of portlets, pages or page groups. Fine level personalization will become more and more important as the portal market takes off and user requirements for fine level campaign targeting etc. come in.
The described embodiments provide a number of advantages which are listed below:
1. The level of personalization that can be achieved by our approach is much finer grained than. Portlet administration facilities provided by portal server today. The portlet administration facilities available today is by nature manual configuration. Once configured, it is static and does not change at run time. The invention here provides a dynamic capabilities to render portal resources based on rule.
2. Since the portal aggregation module is a dynamic entity, tying of rules and roles engines directly to it lets us achieve real-time dynamic aggregation capabilities without any human intervention.
3. Personalization of coarse grained portal resources such as pages and page groups lets us perform dynamic layout.
4. Much more effective campaigns, contracts etc. can be set up. This is of significant importance to both e-Commerce retail and B2B organizations.
5. A much higher degree of personalization than regular content personalization is achieved. For example, entire sections of a webpage can be disabled based on rules. This can't be done by regular personalization. Further, dynamic aggregation doesn't apply to the domain of regular personalization which is content, not resource related.
Number | Date | Country | Kind |
---|---|---|---|
2406569 | Oct 2002 | CA | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/GB03/04238 | 10/1/2003 | WO | 3/8/2005 |