Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
208519dc
Commit
208519dc
authored
11 years ago
by
jakubs
Browse files
Options
Downloads
Patches
Plain Diff
SP-727 BIS-462 openBisSession
SVN: 29441
parent
e31f5740
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
authentication/source/java/ch/systemsx/cisd/authentication/DefaultSessionManager.java
+5
-9
5 additions, 9 deletions
...h/systemsx/cisd/authentication/DefaultSessionManager.java
with
5 additions
and
9 deletions
authentication/source/java/ch/systemsx/cisd/authentication/DefaultSessionManager.java
+
5
−
9
View file @
208519dc
...
@@ -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
;
pr
ivate
static
final
class
FullSession
<
S
extends
BasicSession
>
pr
otected
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.
*/
*/
pr
ivate
final
Map
<
String
,
FullSession
<
T
>>
sessions
=
pr
otected
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment