Tidy up screwy formatting.
This commit is contained in:
parent
a7d0f88e01
commit
8400341399
|
@ -28,15 +28,17 @@ import org.springframework.util.Assert;
|
|||
/**
|
||||
* Base implementation of {@link ConcurrentSessionControllerImpl} which
|
||||
* prohibits simultaneous logins.
|
||||
*
|
||||
* <p>
|
||||
* By default uses {@link org.acegisecurity.concurrent.SessionRegistryImpl},
|
||||
* By default uses {@link SessionRegistryImpl},
|
||||
* although any <code>SessionRegistry</code> may be used.
|
||||
* </p>
|
||||
*
|
||||
* @author Ben Alex
|
||||
* @version $Id$
|
||||
*/
|
||||
public class ConcurrentSessionControllerImpl
|
||||
implements ConcurrentSessionController, InitializingBean,
|
||||
MessageSourceAware {
|
||||
public class ConcurrentSessionControllerImpl implements ConcurrentSessionController,
|
||||
InitializingBean, MessageSourceAware {
|
||||
|
||||
//~ Instance fields ========================================================
|
||||
|
||||
protected MessageSourceAccessor messages = AcegiMessageSource.getAccessor();
|
||||
|
@ -63,7 +65,6 @@ public class ConcurrentSessionControllerImpl
|
|||
* @param allowableSessions DOCUMENT ME!
|
||||
* @param registry an instance of the <code>SessionRegistry</code> for
|
||||
* subclass use
|
||||
*
|
||||
* @throws ConcurrentLoginException DOCUMENT ME!
|
||||
*/
|
||||
protected void allowableSessionsExceeded(String sessionId,
|
||||
|
@ -72,7 +73,7 @@ public class ConcurrentSessionControllerImpl
|
|||
if (exceptionIfMaximumExceeded || (sessions == null)) {
|
||||
throw new ConcurrentLoginException(messages.getMessage(
|
||||
"ConcurrentSessionControllerImpl.exceededAllowed",
|
||||
new Object[] {new Integer(allowableSessions)},
|
||||
new Object[]{new Integer(allowableSessions)},
|
||||
"Maximum sessions of {0} for this principal exceeded"));
|
||||
}
|
||||
|
||||
|
@ -134,7 +135,6 @@ public class ConcurrentSessionControllerImpl
|
|||
* <code>maximumSessions</code> value for the bean.
|
||||
*
|
||||
* @param authentication to determine the maximum sessions for
|
||||
*
|
||||
* @return either -1 meaning unlimited, or a positive integer to
|
||||
* limit (never zero)
|
||||
*/
|
||||
|
@ -174,4 +174,4 @@ public class ConcurrentSessionControllerImpl
|
|||
SessionRegistry sessionRegistry) {
|
||||
this.sessionRegistry = sessionRegistry;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue