Package lumis.service.banner
Class BannerMonitorUtil
- java.lang.Object
-
- lumis.service.banner.BannerMonitorUtil
-
public class BannerMonitorUtil extends java.lang.Object
Contains banner monitoring constants and utility methods.- Since:
- 4.1.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EVENT_BANNER_CLICK
Key for banner click event.static java.lang.String
EVENT_BANNER_VIEW
Key for banner view event.static java.lang.String
STRING_RESOURCE_PATH
The string resource path using for localizing banner monitoring strings.
-
Constructor Summary
Constructors Constructor Description BannerMonitorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IMonitor
getBannerClickMonitor(ServiceInstanceConfig bannerServiceInstanceConfig, java.lang.String bannerName, java.lang.String bannerCategoryId, ContentVersion bannerContentVersion, PageConfig displayPageConfig, WebResource webResource, ITransaction transaction)
Returns a monitor for the "lumis.portal.monitor.ev.banner.click" event.static IMonitor
getBannerViewMonitor(ServiceInstanceConfig bannerServiceInstanceConfig, java.lang.String bannerName, java.lang.String bannerCategoryId, ContentVersion bannerContentVersion, PageConfig displayPageConfig, WebResource webResource, ITransaction transaction)
Returns a monitor for the "lumis.portal.monitor.ev.banner.view" event.
-
-
-
Field Detail
-
STRING_RESOURCE_PATH
public static final java.lang.String STRING_RESOURCE_PATH
The string resource path using for localizing banner monitoring strings.- Since:
- 4.1.0
- See Also:
- Constant Field Values
-
EVENT_BANNER_VIEW
public static final java.lang.String EVENT_BANNER_VIEW
Key for banner view event.- Since:
- 4.1.0
- See Also:
- Constant Field Values
-
EVENT_BANNER_CLICK
public static final java.lang.String EVENT_BANNER_CLICK
Key for banner click event.- Since:
- 4.1.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBannerViewMonitor
public static IMonitor getBannerViewMonitor(ServiceInstanceConfig bannerServiceInstanceConfig, java.lang.String bannerName, java.lang.String bannerCategoryId, ContentVersion bannerContentVersion, PageConfig displayPageConfig, WebResource webResource, ITransaction transaction) throws PortalException
Returns a monitor for the "lumis.portal.monitor.ev.banner.view" event.- Parameters:
bannerServiceInstanceConfig
- the banner service instance.bannerName
- the banner's name.bannerCategoryId
- the banner's category id, or null if the banner has no category specified.bannerContentId
- the banner's content identifier.displayPageConfig
- the page where the banner is shown.transaction
- the transaction for persistence access.- Returns:
- the monitor.
- Throws:
PortalException
- Since:
- 4.1.0
-
getBannerClickMonitor
public static IMonitor getBannerClickMonitor(ServiceInstanceConfig bannerServiceInstanceConfig, java.lang.String bannerName, java.lang.String bannerCategoryId, ContentVersion bannerContentVersion, PageConfig displayPageConfig, WebResource webResource, ITransaction transaction) throws PortalException
Returns a monitor for the "lumis.portal.monitor.ev.banner.click" event.- Parameters:
bannerServiceInstanceConfig
- the banner service instance.bannerName
- the banner's name.bannerCategoryId
- the banner's category id, or null if the banner has no category specified.bannerContentId
- the banner's content identifier.displayPageConfig
- the page where the banner was shown.transaction
- the transaction for persistence access.- Returns:
- the monitor.
- Throws:
PortalException
- Since:
- 4.1.0
-
-