Skip to content

Commit

Permalink
feat: Rename Analytics Artifacts and Cleanup Old Analytics configurat…
Browse files Browse the repository at this point in the history
…ion - MEED-6999 - Meeds-io/meeds#2097
  • Loading branch information
boubaker committed Jun 8, 2024
1 parent a9ac80c commit ed8fbf1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 221 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
<import>war:/conf/social/activity-listeners-configuration.xml</import>
<import>war:/conf/social/integration-configuration.xml</import>
<import>war:/conf/social/css-class-configuration.xml</import>
<import profiles="analytics">war:/conf/social/analytics-ui-watchers-configuration.xml</import>
<import>war:/conf/wcm-extension/dynamic-container-configuration.xml</import>

</configuration>

This file was deleted.

2 changes: 1 addition & 1 deletion ecms-social-integration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<artifactId>social-component-web</artifactId>
</dependency>
<dependency>
<groupId>org.exoplatform.addons.analytics</groupId>
<groupId>io.meeds.analytics</groupId>
<artifactId>analytics-api</artifactId>
<scope>provided</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package org.exoplatform.ecms.listener.analytics;

import org.exoplatform.analytics.model.StatisticData;
import org.exoplatform.analytics.utils.AnalyticsUtils;
import static io.meeds.analytics.utils.AnalyticsUtils.*;

import javax.jcr.Node;

import io.meeds.analytics.model.StatisticData;
import org.exoplatform.container.ExoContainerContext;
import org.exoplatform.services.jcr.impl.core.NodeImpl;
import org.exoplatform.services.listener.Asynchronous;
Expand All @@ -13,10 +16,6 @@
import org.exoplatform.social.core.space.model.Space;
import org.exoplatform.social.core.space.spi.SpaceService;

import javax.jcr.Node;

import static org.exoplatform.analytics.utils.AnalyticsUtils.addSpaceStatistics;

@Asynchronous
public class AnalyticsDocumentsListener extends Listener<String, Node> {

Expand Down Expand Up @@ -50,7 +49,7 @@ public void onEvent(Event<String, Node> event) throws Exception {
statisticData.addParameter("documentsOwner", ((NodeImpl) data).getACL().getOwner());
String nodePath = data.getPath();
addSpaceStatistic(statisticData, nodePath);
AnalyticsUtils.addStatisticData(statisticData);
addStatisticData(statisticData);
}

public IdentityManager getIdentityManager() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.exoplatform.ecms.listener.analytics;

import static org.exoplatform.analytics.utils.AnalyticsUtils.addSpaceStatistics;
import static io.meeds.analytics.utils.AnalyticsUtils.addSpaceStatistics;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
Expand All @@ -15,8 +15,8 @@
import org.apache.commons.chain.Context;
import org.apache.commons.lang3.StringUtils;

import org.exoplatform.analytics.model.StatisticData;
import org.exoplatform.analytics.utils.AnalyticsUtils;
import io.meeds.analytics.model.StatisticData;
import io.meeds.analytics.utils.AnalyticsUtils;
import org.exoplatform.commons.utils.PropertyManager;
import org.exoplatform.container.ExoContainerContext;
import org.exoplatform.container.PortalContainer;
Expand Down

0 comments on commit ed8fbf1

Please sign in to comment.