From f44953c2ee78c6f11a4ed55922180ba4233a3cd6 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Mon, 27 Oct 2014 16:16:44 +0000 Subject: [PATCH] fix for etics git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/top-topics@101047 82a268e6-3cf1-43bd-a215-b396298e98cf --- .classpath | 1 - pom.xml | 7 ++++++- .../user/topics/server/TopicServiceImpl.java | 15 +-------------- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/.classpath b/.classpath index 52f75c4..63fb0eb 100644 --- a/.classpath +++ b/.classpath @@ -14,7 +14,6 @@ - diff --git a/pom.xml b/pom.xml index f4abd87..546b529 100644 --- a/pom.xml +++ b/pom.xml @@ -76,11 +76,16 @@ org.gcube.dvos usermanagement-core - + com.google gwt-jsonmaker + + commons-codec + commons-codec + compile + diff --git a/src/main/java/org/gcube/portlets/user/topics/server/TopicServiceImpl.java b/src/main/java/org/gcube/portlets/user/topics/server/TopicServiceImpl.java index e8267a7..ce78923 100644 --- a/src/main/java/org/gcube/portlets/user/topics/server/TopicServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/topics/server/TopicServiceImpl.java @@ -72,20 +72,7 @@ public class TopicServiceImpl extends RemoteServiceServlet implements TopicServi //user = "massimiliano.assante"; return user; } - /** - * - * @return true if you're running into the portal, false if in development - */ - private boolean isWithinPortal() { - try { - UserLocalServiceUtil.getService(); - return true; - } - catch (com.liferay.portal.kernel.bean.BeanLocatorException ex) { - _log.trace("Development Mode ON"); - return false; - } - } + /** * return the top 10 hashtag with max occurrence */