Package org.dspace.google.client
Class GoogleAnalyticsClientImpl
- java.lang.Object
-
- org.dspace.google.client.GoogleAnalyticsClientImpl
-
- All Implemented Interfaces:
GoogleAnalyticsClient
public class GoogleAnalyticsClientImpl extends Object implements GoogleAnalyticsClient
Implementation ofGoogleAnalyticsClient.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description GoogleAnalyticsClientImpl(String keyPrefix, GoogleAnalyticsClientRequestBuilder requestBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetKeyPrefix()GoogleAnalyticsClientRequestBuildergetRequestBuilder()booleanisAnalyticsKeySupported(String analyticsKey)Check if the client supports the given analytics key.voidsendEvents(String analyticsKey, List<GoogleAnalyticsEvent> events)Send the given Google Analytics events.
-
-
-
Constructor Detail
-
GoogleAnalyticsClientImpl
public GoogleAnalyticsClientImpl(String keyPrefix, GoogleAnalyticsClientRequestBuilder requestBuilder)
-
-
Method Detail
-
isAnalyticsKeySupported
public boolean isAnalyticsKeySupported(String analyticsKey)
Description copied from interface:GoogleAnalyticsClientCheck if the client supports the given analytics key.- Specified by:
isAnalyticsKeySupportedin interfaceGoogleAnalyticsClient- Parameters:
analyticsKey- the analytics key- Returns:
- true if the key is supported, false otherwise
-
sendEvents
public void sendEvents(String analyticsKey, List<GoogleAnalyticsEvent> events)
Description copied from interface:GoogleAnalyticsClientSend the given Google Analytics events.- Specified by:
sendEventsin interfaceGoogleAnalyticsClient- Parameters:
analyticsKey- the analytics keyevents- the events to be sent
-
getKeyPrefix
public String getKeyPrefix()
-
getRequestBuilder
public GoogleAnalyticsClientRequestBuilder getRequestBuilder()
-
-