/** * Check for any just expired sessions and redirect * * @return true if we redirected, false if not */ public boolean redirectIfLoggedOut(HttpServletResponse res) throws IOException { // if we are in a newly created session where we had an invalid // (presumed timed out) session in the request, // send script to cause a sakai top level redirect if (ThreadLocalManager.get(SessionManager.CURRENT_INVALID_SESSION) != null) { String loggedOutUrl = ServerConfigurationService.getLoggedOutUrl(); sendPortalRedirect(res, loggedOutUrl); return true; } return false; }
/** * Check for any just expired sessions and redirect * * @return true if we redirected, false if not */ public boolean redirectIfLoggedOut(HttpServletResponse res) throws IOException { // if we are in a newly created session where we had an invalid // (presumed timed out) session in the request, // send script to cause a sakai top level redirect if (ThreadLocalManager.get(SessionManager.CURRENT_INVALID_SESSION) != null) { String loggedOutUrl = ServerConfigurationService.getLoggedOutUrl(); sendPortalRedirect(res, loggedOutUrl); return true; } return false; }
String userType = UserDirectoryService.getCurrentUser().getType(); if(userType == null) { loggedOutUrl = ServerConfigurationService.getLoggedOutUrl(); } else { loggedOutUrl = ServerConfigurationService.getString("loggedOutUrl." + userType, ServerConfigurationService.getLoggedOutUrl());
String userType = UserDirectoryService.getCurrentUser().getType(); if(userType == null) { loggedOutUrl = ServerConfigurationService.getLoggedOutUrl(); } else { loggedOutUrl = ServerConfigurationService.getString("loggedOutUrl." + userType, ServerConfigurationService.getLoggedOutUrl());
rcontext.put("editorType", editorType); rcontext.put("loggedOutUrl",ServerConfigurationService.getLoggedOutUrl()); rcontext.put("portalPath",ServerConfigurationService.getPortalUrl()); rcontext.put("timeoutDialogEnabled",Boolean.valueOf(ServerConfigurationService.getBoolean("timeoutDialogEnabled", true)));
rcontext.put("editorType", editorType); rcontext.put("loggedOutUrl",ServerConfigurationService.getLoggedOutUrl()); rcontext.put("portalPath",ServerConfigurationService.getPortalUrl()); rcontext.put("timeoutDialogEnabled",Boolean.valueOf(ServerConfigurationService.getBoolean("timeoutDialogEnabled", true)));