Class MatomoRequestDetailsSplitter

java.lang.Object
org.dspace.matomo.model.MatomoRequestDetailsSplitter

public class MatomoRequestDetailsSplitter extends Object
This class is used to split a list of MatomoRequestDetails into a map of List<MatomoRequestDetails>.
The key of the map is the value of the parameter named "_id", or "default" if the "_id" is not set.
Author:
Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
  • Method Details

    • split

      public static Map<String,List<MatomoRequestDetails>> split(List<MatomoRequestDetails> details)
      Splits a list of MatomoRequestDetails into a map grouped by their "_id" parameter.
      Parameters:
      details - The list of MatomoRequestDetails to split
      Returns:
      A Map where the key is the "_id" parameter value (or "default" if not set) and the value is a List of MatomoRequestDetails with that "_id"