Coverage Report - org.kuali.student.common.ui.client.security.SpringSecurityLoginRedirectHandler
 
Classes in this File Line Coverage Branch Coverage Complexity
SpringSecurityLoginRedirectHandler
0%
0/4
N/A
1
 
 1  
 package org.kuali.student.common.ui.client.security;
 2  
 
 3  
 import org.kuali.student.common.ui.client.util.BrowserUtils;
 4  
 
 5  
 import com.google.gwt.user.client.Window;
 6  
 
 7  
 /**
 8  
  * This implements the SessionTimeoutHandler. The timeout is handled by redirecting the
 9  
  * user to the application root, so the spring login form will be displayed.  
 10  
  * 
 11  
  * @author Kuali Student Team
 12  
  *
 13  
  */
 14  0
 public class SpringSecurityLoginRedirectHandler implements
 15  
                 SessionTimeoutHandler {
 16  
 
 17  
         @Override
 18  
         public void handleSessionTimeout() {
 19  
                 //FIXME: Need a way to get the proper redirect url, for now just reloading the page
 20  
                 //BrowserUtils.redirect(GWT.getHostPageBaseURL());
 21  
                 
 22  0
                 Window.alert("Your session has timed out and are being redirected to the login page.");
 23  0
                 BrowserUtils.reload();
 24  0
         }
 25  
  
 26  
 }