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 Details

    • StatisticsProviderMatomoService

      public StatisticsProviderMatomoService()
  • Method Details

    • getBatchRequest

      public BatchMatomoRequest getBatchRequest(String resourceTypeMethod)
      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

      public void registerBatchRequest(String resourceTypeMethod, BatchMatomoRequest batchRequest)
      Register a new batch request for a specific ResourceType and Matomo API method
      Parameters:
      resourceTypeMethod - The ResourceType concatenated with the Matomo API method
      batchRequest - The batch request to register
    • setStatisticsCoordinator

      public void setStatisticsCoordinator(org.opencastproject.statistics.api.StatisticsCoordinator service)
    • activate

      public void activate(Map<String,Object> properties)
    • deactivate

      public void deactivate()
    • install

      public void install(File file) throws Exception
      Specified by:
      install in interface org.apache.felix.fileinstall.ArtifactInstaller
      Throws:
      Exception
    • uninstall

      public void uninstall(File file)
      Specified by:
      uninstall in interface org.apache.felix.fileinstall.ArtifactInstaller
    • canHandle

      public boolean canHandle(File file)
      Specified by:
      canHandle in interface org.apache.felix.fileinstall.ArtifactListener
    • update

      public void update(File file) throws Exception
      Specified by:
      update in interface org.apache.felix.fileinstall.ArtifactInstaller
      Throws:
      Exception
    • modified

      public void modified(Map<String,Object> properties)
    • getMatomoApiUrl

      public String getMatomoApiUrl()
    • getMatomoApiToken

      public String getMatomoApiToken()