Changeset 38259 for main/trunk/gli/src
- Timestamp:
- 2023-09-30T21:56:11+13:00 (9 months ago)
- Location:
- main/trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 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); -
main/trunk/gli/src/org/greenstone/gatherer/GathererProg.java
r38258 r38259 31 31 import javax.swing.*; 32 32 import org.greenstone.gatherer.util.Utility; 33 import org.webswing.toolkit.api.WebswingUtil;34 import java.util.Arrays;35 33 36 34 /** … … 69 67 String gli_user_directory_path = null; 70 68 if (go.webswing) { 71 WebswingUtil.getWebswingApi().sendActionEvent("jsConsoleLog", "args are: " +Arrays.toString(args), null);69 //org.webswing.toolkit.api.WebswingUtil.getWebswingApi().sendActionEvent("javaToWebswingJSConsoleLog", "args are: " + java.util.Arrays.toString(args), null); 72 70 73 71 if (go.gsdl3_src_path != null) {
Note:
See TracChangeset
for help on using the changeset viewer.