From 208519dcd73b09926bc9ce3180171c70ab006054 Mon Sep 17 00:00:00 2001
From: jakubs <jakubs>
Date: Mon, 24 Jun 2013 13:09:28 +0000
Subject: [PATCH] SP-727 BIS-462 openBisSession

SVN: 29441
---
 .../cisd/authentication/DefaultSessionManager.java | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/authentication/source/java/ch/systemsx/cisd/authentication/DefaultSessionManager.java b/authentication/source/java/ch/systemsx/cisd/authentication/DefaultSessionManager.java
index 114feaef620..7b926f31b0d 100644
--- a/authentication/source/java/ch/systemsx/cisd/authentication/DefaultSessionManager.java
+++ b/authentication/source/java/ch/systemsx/cisd/authentication/DefaultSessionManager.java
@@ -44,8 +44,7 @@ import ch.systemsx.cisd.common.spring.ExposablePropertyPlaceholderConfigurer;
  * Default session manager. Needs
  * <ul>
  * <li>a {@link ISessionFactory} for creating new session objects,
- * <li>a {@link ILogMessagePrefixGenerator} for generating log messages which are logged by a logger
- * with category {@link LogCategory#AUTH},
+ * <li>a {@link ILogMessagePrefixGenerator} for generating log messages which are logged by a logger with category {@link LogCategory#AUTH},
  * <li>a {@link IAuthenticationService} for authenticating users,
  * <li>a {@link IRemoteHostProvider} for providing the remote host of the user client.
  * </ul>
@@ -77,7 +76,7 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa
     @Resource(name = ExposablePropertyPlaceholderConfigurer.PROPERTY_CONFIGURER_BEAN_NAME)
     protected ExposablePropertyPlaceholderConfigurer configurer;
 
-    private static final class FullSession<S extends BasicSession>
+    protected static final class FullSession<S extends BasicSession>
     {
         /** Session data. */
         private final S session;
@@ -102,8 +101,7 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa
         }
 
         /**
-         * Sets the time of last activity (used to determine whether the session
-         * {@link #hasExpired()}.
+         * Sets the time of last activity (used to determine whether the session {@link #hasExpired()}.
          */
         void touch()
         {
@@ -124,10 +122,9 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa
     private final ILogMessagePrefixGenerator<T> prefixGenerator;
 
     /**
-     * The map of session tokens to sessions. Access to this data structure needs to be
-     * synchronized.
+     * The map of session tokens to sessions. Access to this data structure needs to be synchronized.
      */
-    private final Map<String, FullSession<T>> sessions =
+    protected final Map<String, FullSession<T>> sessions =
             new LinkedHashMap<String, FullSession<T>>();
 
     private final IAuthenticationService authenticationService;
@@ -326,7 +323,6 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa
                 }
             }
         }
-
     }
 
     private static void checkIfNotBlank(final String object, final String name)
-- 
GitLab