nl.surfnet.coin.portal.interceptor
Class MockLoginInterceptor

java.lang.Object
  extended by org.springframework.web.servlet.handler.HandlerInterceptorAdapter
      extended by nl.surfnet.coin.portal.interceptor.LoginInterceptor
          extended by nl.surfnet.coin.portal.interceptor.MockLoginInterceptor
All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor

public class MockLoginInterceptor
extends LoginInterceptor

Like the LoginInterceptor but gets the user id from the environment instead of Shibboleth.


Field Summary
 
Fields inherited from class nl.surfnet.coin.portal.interceptor.LoginInterceptor
INVITEES, PERSON_SESSION_KEY, USER_STATUS_SESSION_KEY
 
Constructor Summary
MockLoginInterceptor()
           
 
Method Summary
protected  String getRemoteUser(javax.servlet.http.HttpServletRequest request)
          Hook for subclasses to override the shibboleth default behaviour
protected  String getUserStatus(javax.servlet.http.HttpServletRequest request)
          Hook for subclasses to override the shibboleth default behaviour
 
Methods inherited from class nl.surfnet.coin.portal.interceptor.LoginInterceptor
getCoinEnvironment, preHandle, setCoinEnvironment, setErrorMessageMailer, setPersonService
 
Methods inherited from class org.springframework.web.servlet.handler.HandlerInterceptorAdapter
afterCompletion, postHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockLoginInterceptor

public MockLoginInterceptor()
Method Detail

getRemoteUser

protected String getRemoteUser(javax.servlet.http.HttpServletRequest request)
Description copied from class: LoginInterceptor
Hook for subclasses to override the shibboleth default behaviour

Overrides:
getRemoteUser in class LoginInterceptor
Parameters:
request - the httpRequest
Returns:
the String of the logged in user

getUserStatus

protected String getUserStatus(javax.servlet.http.HttpServletRequest request)
Description copied from class: LoginInterceptor
Hook for subclasses to override the shibboleth default behaviour

Overrides:
getUserStatus in class LoginInterceptor
Parameters:
request - the httpRequest
Returns:
the String of the user status


Copyright © 2009-2012 SURFnet bv, The Netherlands. All Rights Reserved.