Package org.dspace.google.client
Class GoogleAnalyticsClientImpl
java.lang.Object
org.dspace.google.client.GoogleAnalyticsClientImpl
- All Implemented Interfaces:
GoogleAnalyticsClient
Implementation of
GoogleAnalyticsClient.- Author:
- Luca Giamminonni (luca.giamminonni at 4science.it)
-
Constructor Summary
ConstructorsConstructorDescriptionGoogleAnalyticsClientImpl(String keyPrefix, GoogleAnalyticsClientRequestBuilder requestBuilder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAnalyticsKeySupported(String analyticsKey) Check if the client supports the given analytics key.voidsendEvents(String analyticsKey, List<GoogleAnalyticsEvent> events) Send the given Google Analytics events.
-
Constructor Details
-
GoogleAnalyticsClientImpl
public GoogleAnalyticsClientImpl(String keyPrefix, GoogleAnalyticsClientRequestBuilder requestBuilder)
-
-
Method Details
-
isAnalyticsKeySupported
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
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
-
getRequestBuilder
-