- Timestamp:
- 2023-09-30T21:56:11+13:00 (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r38258 r38259 250 250 } 251 251 else if (isWebswing) { 252 253 252 254 253 Configuration.template_config_xml = Configuration.TEMPLATE_CONFIG_PREFIX + Configuration.CONFIG_WEBSWING_XML; 255 254 Configuration.config_xml = Configuration.CONFIG_WEBSWING_XML; 256 257 String webswing_msg = "username: " + go.username +258 "\ngroups: " + go.usergroups +259 "\nuid: " + go.userJSessionID;260 261 JOptionPane.showMessageDialog(null, webswing_msg, "webswing info", JOptionPane.INFORMATION_MESSAGE);262 /*263 try {264 Thread.sleep(5000);265 } catch(Exception e) {266 System.err.println("Couldn't sleep for 5000 ms");267 }*/268 255 269 256 if(go.username != null && !go.username.equals("") 270 257 && go.userJSessionID != null && !go.userJSessionID.equals("")) { 271 258 272 273 259 webswingAuthenticator = new WebswingAuthenticator(go.username, go.usergroups, go.userJSessionID); 274 } else { //if(webswingAuthenticator != null) {275 WebswingAuthenticator.clear();276 if(webswingAuthenticator != null) {277 webswingAuthenticator = null;278 }279 260 } 280 281 261 } 282 262 else { … … 2148 2128 static protected String rawgroups; 2149 2129 2150 static public void clear() {2151 username = null;2152 groups = null;2153 userJSessionID = null;2154 rawgroups = null;2155 }2156 2157 2130 protected void displayError(String error_message) { 2158 2131 WarningDialog dialog = new WarningDialog("warning.AuthenticationError", Dictionary.get("WebswingAuthenticationError.Title"), error_message, null, false, false);
Note:
See TracChangeset
for help on using the changeset viewer.