From bb60d40cd5f023a86a2c4c5cfe163b9f48e1323a Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Thu, 26 May 2022 11:34:42 +0200 Subject: [PATCH] Reorganizing packages to add notifications --- pom.xml | 6 ------ .../org/gcube/gcat/moderation/thread/ModerationThread.java | 2 +- .../thread/social/messages}/Message.java | 2 +- .../thread/social/messages}/SocialMessage.java | 2 +- .../{ => messages}/SocialMessageModerationThread.java | 5 ++--- 5 files changed, 5 insertions(+), 12 deletions(-) rename src/main/java/org/gcube/gcat/{social => moderation/thread/social/messages}/Message.java (96%) rename src/main/java/org/gcube/gcat/{social => moderation/thread/social/messages}/SocialMessage.java (98%) rename src/main/java/org/gcube/gcat/moderation/thread/social/{ => messages}/SocialMessageModerationThread.java (98%) diff --git a/pom.xml b/pom.xml index ffc3458..ed00129 100644 --- a/pom.xml +++ b/pom.xml @@ -228,12 +228,6 @@ ${enunciate.version} provided - - org.geotoolkit - geotk-xml-base - 3.20-geoapi-3.0 - provided - javax.servlet javax.servlet-api diff --git a/src/main/java/org/gcube/gcat/moderation/thread/ModerationThread.java b/src/main/java/org/gcube/gcat/moderation/thread/ModerationThread.java index dd7831b..795c9f8 100644 --- a/src/main/java/org/gcube/gcat/moderation/thread/ModerationThread.java +++ b/src/main/java/org/gcube/gcat/moderation/thread/ModerationThread.java @@ -8,7 +8,7 @@ import org.gcube.common.authorization.utils.manager.SecretManager; import org.gcube.common.authorization.utils.manager.SecretManagerProvider; import org.gcube.gcat.api.configuration.CatalogueConfiguration; import org.gcube.gcat.api.moderation.CMItemStatus; -import org.gcube.gcat.moderation.thread.social.SocialMessageModerationThread; +import org.gcube.gcat.moderation.thread.social.messages.SocialMessageModerationThread; import org.gcube.gcat.persistence.ckan.CKANUser; import org.gcube.portlets.user.uriresolvermanager.UriResolverManager; import org.gcube.portlets.user.uriresolvermanager.resolvers.query.CatalogueResolverQueryString.MODERATION_OP; diff --git a/src/main/java/org/gcube/gcat/social/Message.java b/src/main/java/org/gcube/gcat/moderation/thread/social/messages/Message.java similarity index 96% rename from src/main/java/org/gcube/gcat/social/Message.java rename to src/main/java/org/gcube/gcat/moderation/thread/social/messages/Message.java index a5daf87..326a2fc 100644 --- a/src/main/java/org/gcube/gcat/social/Message.java +++ b/src/main/java/org/gcube/gcat/moderation/thread/social/messages/Message.java @@ -1,4 +1,4 @@ -package org.gcube.gcat.social; +package org.gcube.gcat.moderation.thread.social.messages; import java.util.ArrayList; import java.util.Collection; diff --git a/src/main/java/org/gcube/gcat/social/SocialMessage.java b/src/main/java/org/gcube/gcat/moderation/thread/social/messages/SocialMessage.java similarity index 98% rename from src/main/java/org/gcube/gcat/social/SocialMessage.java rename to src/main/java/org/gcube/gcat/moderation/thread/social/messages/SocialMessage.java index eaa7c4a..cec279c 100644 --- a/src/main/java/org/gcube/gcat/social/SocialMessage.java +++ b/src/main/java/org/gcube/gcat/moderation/thread/social/messages/SocialMessage.java @@ -1,4 +1,4 @@ -package org.gcube.gcat.social; +package org.gcube.gcat.moderation.thread.social.messages; import java.net.HttpURLConnection; diff --git a/src/main/java/org/gcube/gcat/moderation/thread/social/SocialMessageModerationThread.java b/src/main/java/org/gcube/gcat/moderation/thread/social/messages/SocialMessageModerationThread.java similarity index 98% rename from src/main/java/org/gcube/gcat/moderation/thread/social/SocialMessageModerationThread.java rename to src/main/java/org/gcube/gcat/moderation/thread/social/messages/SocialMessageModerationThread.java index 92c1f01..2db8759 100644 --- a/src/main/java/org/gcube/gcat/moderation/thread/social/SocialMessageModerationThread.java +++ b/src/main/java/org/gcube/gcat/moderation/thread/social/messages/SocialMessageModerationThread.java @@ -1,4 +1,4 @@ -package org.gcube.gcat.moderation.thread.social; +package org.gcube.gcat.moderation.thread.social.messages; import java.io.StringWriter; import java.util.Set; @@ -9,8 +9,6 @@ import org.gcube.common.authorization.utils.secret.Secret; import org.gcube.gcat.api.moderation.CMItemStatus; import org.gcube.gcat.api.moderation.Moderated; import org.gcube.gcat.moderation.thread.ModerationThread; -import org.gcube.gcat.social.Message; -import org.gcube.gcat.social.SocialMessage; import org.gcube.gcat.social.SocialUsers; import org.gcube.gcat.utils.Constants; import org.slf4j.Logger; @@ -201,3 +199,4 @@ public class SocialMessageModerationThread extends ModerationThread { } } + \ No newline at end of file