From 188d427cb85d45a98d55ed7441c9eb01d3c2875c Mon Sep 17 00:00:00 2001 From: Alessandro Pieve Date: Tue, 15 Nov 2016 11:20:09 +0000 Subject: [PATCH] git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/auth-portlet-manager@134171 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../admin/authportletmanager/server/SessionUtil.java | 8 ++++---- .../server/portlet/AccountingManagerPortlet.java | 7 +------ .../server/portlet/AuthManagerPortlet.java | 11 +++++------ 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/main/java/org/gcube/portlets/admin/authportletmanager/server/SessionUtil.java b/src/main/java/org/gcube/portlets/admin/authportletmanager/server/SessionUtil.java index 27add46..92efcff 100644 --- a/src/main/java/org/gcube/portlets/admin/authportletmanager/server/SessionUtil.java +++ b/src/main/java/org/gcube/portlets/admin/authportletmanager/server/SessionUtil.java @@ -11,9 +11,9 @@ import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper; import org.gcube.portlets.admin.authportletmanager.shared.ConstantsSharing; import org.gcube.portlets.admin.authportletmanager.shared.exceptions.ExpiredSessionServiceException; import org.gcube.portlets.admin.authportletmanager.shared.exceptions.ServiceException; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; /** @@ -24,8 +24,8 @@ import org.slf4j.LoggerFactory; */ public class SessionUtil { - private static Logger logger = LoggerFactory.getLogger(SessionUtil.class); - + private static final Log logger = LogFactoryUtil.getLog(AuthServiceImpl.class); + public static ASLSession getASLSession(HttpSession httpSession) throws ServiceException { String username = (String) httpSession diff --git a/src/main/java/org/gcube/portlets/admin/authportletmanager/server/portlet/AccountingManagerPortlet.java b/src/main/java/org/gcube/portlets/admin/authportletmanager/server/portlet/AccountingManagerPortlet.java index cd54034..73e93e0 100644 --- a/src/main/java/org/gcube/portlets/admin/authportletmanager/server/portlet/AccountingManagerPortlet.java +++ b/src/main/java/org/gcube/portlets/admin/authportletmanager/server/portlet/AccountingManagerPortlet.java @@ -12,8 +12,6 @@ import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * @@ -23,10 +21,7 @@ import org.slf4j.LoggerFactory; */ public class AccountingManagerPortlet extends GenericPortlet { - protected Logger logger = LoggerFactory.getLogger(AccountingManagerPortlet.class); - - - /** + /** * JSP folder name */ public static final String JSP_FOLDER = "/WEB-INF/jsp/"; diff --git a/src/main/java/org/gcube/portlets/admin/authportletmanager/server/portlet/AuthManagerPortlet.java b/src/main/java/org/gcube/portlets/admin/authportletmanager/server/portlet/AuthManagerPortlet.java index 4c557ba..7adb6b3 100644 --- a/src/main/java/org/gcube/portlets/admin/authportletmanager/server/portlet/AuthManagerPortlet.java +++ b/src/main/java/org/gcube/portlets/admin/authportletmanager/server/portlet/AuthManagerPortlet.java @@ -12,8 +12,10 @@ import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; import org.gcube.portal.custom.scopemanager.scopehelper.ScopeHelper; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; +import org.gcube.portlets.admin.authportletmanager.server.AuthServiceImpl; + +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; /** * @@ -22,10 +24,7 @@ import org.slf4j.LoggerFactory; * */ public class AuthManagerPortlet extends GenericPortlet { - - protected Logger logger = LoggerFactory.getLogger(AuthManagerPortlet.class); - - + private static final Log logger = LogFactoryUtil.getLog(AuthServiceImpl.class); /** * JSP folder name */