 |
Tour IPC Portlets
Overview
As part of the 7.2 Sample portal changes, the current IPC portlet subtabs will be replaced by a single subtab containing samples of JSR 286 Interportlet Communication. The portlets will consist of a single war file to be deployed prior to the enterprise sample configuration.
Design
There will be four portlets that shall implement the PortletEventListener interface to demonstrate Interportlet Communication.
- ListPortlet - This contains a listing of tour locations and the date of the next tour.
- MapPortlet - Displays a map of the tour area. Uses the Yahoo REST map api to grab a image URL based on lat, long and zoom.
- WeatherPortlet - Displays the weather of the tour area. Uses the Yahoo weather XML feed.
- DetailPortlet - Displays details on customers, guides, and subcontractors.
The event data shall be contained in one class.
- Tour - Follows bean pattern, has getters and setters for name, description, guide, weather code, and map code.
The events that will be generated and consumed are:
Data
| Tour | Weather Code | Map Code | Guide | Description |
| Great Barrier Reef, Australia | ASXX0036 | -16.320139,146.480713,11 | Lacy Dalya | 2 Weeks - Melbourne, Canberra, Sydney, Christchurch, Auckland, and Fiji |
| Big Wave Challenge, Hawaii | USHI0055 | 20.854962,-156.605988,8 | Maleko Kaimana | five days and four nights - Leftovers Beach in Maui,Road to the Sea on Hawaii |
| Grand Canyon Hike, Arizona | USAZ0068 | 36.080182,-112.543945,11 | Cara Kassia | 3 days - Descent hike, rafting trip down the Colorado River, upper canyon hike |
| Ski the French Alps, France | FRXX0219 | 45.323186,7.03125,9 | Paul Andr? | 5 days - L'Espace Killy Ski Resort at Val d'Isere |
| Bike through Khao Yai, Thailand | THXX0047 | 8.937983,99.699554,10 | Klahan Sunan | 3 days - 30-40 km (25 mi) through the Chiangdao Valley tribal village, 50-60 km (38 mi) wooden huts, 50-60 km (38 mi) of the tour luxurious resort |
Tested On
Portlet View
|