Class StatisticsProviderMatomoService
java.lang.Object
org.opencastproject.statistics.provider.matomo.StatisticsProviderMatomoService
- All Implemented Interfaces:
org.apache.felix.fileinstall.ArtifactInstaller,org.apache.felix.fileinstall.ArtifactListener
public class StatisticsProviderMatomoService
extends Object
implements org.apache.felix.fileinstall.ArtifactInstaller
Implements statistics providers using Matomo for data retrieval.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidgetBatchRequest(String resourceTypeMethod) Get an existing batch request for a specific ResourceType and Matomo API methodvoidvoidvoidregisterBatchRequest(String resourceTypeMethod, BatchMatomoRequest batchRequest) Register a new batch request for a specific ResourceType and Matomo API methodvoidvoidvoid
-
Constructor Details
-
StatisticsProviderMatomoService
public StatisticsProviderMatomoService()
-
-
Method Details
-
getBatchRequest
Get an existing batch request for a specific ResourceType and Matomo API method- Parameters:
resourceTypeMethod- The ResourceType concatenated with the Matomo API method- Returns:
- The existing batch request or null if none exists
-
registerBatchRequest
Register a new batch request for a specific ResourceType and Matomo API method- Parameters:
resourceTypeMethod- The ResourceType concatenated with the Matomo API methodbatchRequest- The batch request to register
-
setStatisticsCoordinator
-
activate
-
deactivate
public void deactivate() -
install
- Specified by:
installin interfaceorg.apache.felix.fileinstall.ArtifactInstaller- Throws:
Exception
-
uninstall
- Specified by:
uninstallin interfaceorg.apache.felix.fileinstall.ArtifactInstaller
-
canHandle
- Specified by:
canHandlein interfaceorg.apache.felix.fileinstall.ArtifactListener
-
update
- Specified by:
updatein interfaceorg.apache.felix.fileinstall.ArtifactInstaller- Throws:
Exception
-
modified
-
getMatomoApiUrl
-
getMatomoApiToken
-