Package com.portal.web.comp
Class EventSearchHelper
java.lang.Object
com.portal.web.comp.EventSearchHelper
The
UsageReport JSPs use this class to read the resource bundle
and properties files to retrieve event-related information.
This class retrieves the following event information:- A map of URLs that have page titles.
- A localized page title.
- A localized list of column names.
- A map containing the following details used for the event search:
- Event name, for example, "wap"
- Event type, for example, /event/activity/wap/interactive
- Localized event description, for example, Mobile Internet
- Event URL, for example, UsageReportWapView.jsp
- Event fields to retrieve from Infranet
- Localized column name for each of the fields retrieved
-
Constructor Summary
ConstructorsConstructorDescriptionEventSearchHelper(ResourceBundle res, Properties props, List serList) Given a resource bundle and properties, initializes a services list with the account's service usage events and constructs anEventSearchHelper. -
Method Summary
Modifier and TypeMethodDescriptiongetColumnNames(String event) Gets a list of column names for the event, using properties and resource file entries to construct thefieldSpecification.getDetails(String eventName) Gets an event's details, using properties and resource file entries to construct thefieldSpecification.getPageTitle(String event) Gets the URL's page title for the event, using properties and resource file entries to construct the returnedString.getURLs()Gets the URLs that have page titles, using properties and resource file entries to put the titles in viewing order.
-
Constructor Details
-
EventSearchHelper
Given a resource bundle and properties, initializes a services list with the account's service usage events and constructs anEventSearchHelper.- Parameters:
res- the resource bundle (WebKitResources.properties)props- the properties (WebKit.properties)serList- the services list
-
-
Method Details
-
getDetails
Gets an event's details, using properties and resource file entries to construct thefieldSpecification. If the event name is "general," includes the list of event types to exclude.- Parameters:
eventName- theevent.eventNameentries in the WebKit.properties file- Returns:
- A
Mapcontaining the event details. - Throws:
MissingResourceException
-
getURLs
Gets the URLs that have page titles, using properties and resource file entries to put the titles in viewing order.- Returns:
- A
Mapcontaining the page titles as keys and the URLs as values. - Throws:
MissingResourceException
-
getColumnNames
Gets a list of column names for the event, using properties and resource file entries to construct thefieldSpecification.- Parameters:
event- theevententry in the WebKit.properties file- Returns:
- A
Listof column names for the event.
-
getPageTitle
Gets the URL's page title for the event, using properties and resource file entries to construct the returnedString.- Parameters:
event- theevententry in the WebKit.properties file- Returns:
- A
Stringthat contains the page's title. - Throws:
MissingResourceException- thrown for a null eventString
-