Package org.ametys.web.analytics
Class WebAnalyticsHelper
java.lang.Object
org.ametys.web.analytics.WebAnalyticsHelper
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
Web analytics provider interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Context
The contextprotected SiteManager
The site managerprotected WebAnalyticsProviderExtensionPoint
The web analytics provider extension pointstatic final String
Avalon Rolestatic final String
The web analytics empty id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) Get the current web analytics providergetSelectedProvider
(Site site) Get the current web analytics providervoid
service
(ServiceManager manager)
-
Field Details
-
ROLE
Avalon Role -
WEB_ANALYTICS_EMPTY_ID
The web analytics empty id- See Also:
-
_webAnalyticsProviderEP
The web analytics provider extension point -
_siteManager
The site manager -
_context
The context
-
-
Constructor Details
-
WebAnalyticsHelper
public WebAnalyticsHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
getSelectedProvider
Get the current web analytics provider- Returns:
- the current web analytics provider
-
getSelectedProvider
Get the current web analytics provider- Parameters:
site
- the site- Returns:
- the current web analytics provider
-