Skip to content
Snippets Groups Projects
Commit 208519dc authored by jakubs's avatar jakubs
Browse files

SP-727 BIS-462 openBisSession

SVN: 29441
parent e31f5740
No related branches found
No related tags found
No related merge requests found
...@@ -44,8 +44,7 @@ import ch.systemsx.cisd.common.spring.ExposablePropertyPlaceholderConfigurer; ...@@ -44,8 +44,7 @@ import ch.systemsx.cisd.common.spring.ExposablePropertyPlaceholderConfigurer;
* Default session manager. Needs * Default session manager. Needs
* <ul> * <ul>
* <li>a {@link ISessionFactory} for creating new session objects, * <li>a {@link ISessionFactory} for creating new session objects,
* <li>a {@link ILogMessagePrefixGenerator} for generating log messages which are logged by a logger * <li>a {@link ILogMessagePrefixGenerator} for generating log messages which are logged by a logger with category {@link LogCategory#AUTH},
* with category {@link LogCategory#AUTH},
* <li>a {@link IAuthenticationService} for authenticating users, * <li>a {@link IAuthenticationService} for authenticating users,
* <li>a {@link IRemoteHostProvider} for providing the remote host of the user client. * <li>a {@link IRemoteHostProvider} for providing the remote host of the user client.
* </ul> * </ul>
...@@ -77,7 +76,7 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa ...@@ -77,7 +76,7 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa
@Resource(name = ExposablePropertyPlaceholderConfigurer.PROPERTY_CONFIGURER_BEAN_NAME) @Resource(name = ExposablePropertyPlaceholderConfigurer.PROPERTY_CONFIGURER_BEAN_NAME)
protected ExposablePropertyPlaceholderConfigurer configurer; protected ExposablePropertyPlaceholderConfigurer configurer;
private static final class FullSession<S extends BasicSession> protected static final class FullSession<S extends BasicSession>
{ {
/** Session data. */ /** Session data. */
private final S session; private final S session;
...@@ -102,8 +101,7 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa ...@@ -102,8 +101,7 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa
} }
/** /**
* Sets the time of last activity (used to determine whether the session * Sets the time of last activity (used to determine whether the session {@link #hasExpired()}.
* {@link #hasExpired()}.
*/ */
void touch() void touch()
{ {
...@@ -124,10 +122,9 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa ...@@ -124,10 +122,9 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa
private final ILogMessagePrefixGenerator<T> prefixGenerator; private final ILogMessagePrefixGenerator<T> prefixGenerator;
/** /**
* The map of session tokens to sessions. Access to this data structure needs to be * The map of session tokens to sessions. Access to this data structure needs to be synchronized.
* synchronized.
*/ */
private final Map<String, FullSession<T>> sessions = protected final Map<String, FullSession<T>> sessions =
new LinkedHashMap<String, FullSession<T>>(); new LinkedHashMap<String, FullSession<T>>();
private final IAuthenticationService authenticationService; private final IAuthenticationService authenticationService;
...@@ -326,7 +323,6 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa ...@@ -326,7 +323,6 @@ public class DefaultSessionManager<T extends BasicSession> implements ISessionMa
} }
} }
} }
} }
private static void checkIfNotBlank(final String object, final String name) private static void checkIfNotBlank(final String object, final String name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment