1 23 24 package org.infoglue.cms.applications.managementtool.actions; 25 26 import java.util.HashMap ; 27 import java.util.Map ; 28 29 import org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction; 30 31 import com.opensymphony.module.propertyset.PropertySet; 32 import com.opensymphony.module.propertyset.PropertySetManager; 33 34 40 41 public class ViewMySettingsAction extends InfoGlueAbstractAction 42 { 43 private static final long serialVersionUID = 1L; 44 45 private PropertySet propertySet = null; 46 47 private String languageCode = null; 48 private String defaultToolId = null; 49 50 53 54 public String doExecute() throws Exception  55 { 56 Map args = new HashMap (); 57 args.put("globalKey", "infoglue"); 58 PropertySet ps = PropertySetManager.getInstance("jdbc", args); 59 60 this.languageCode = ps.getString("principal_" + this.getInfoGluePrincipal().getName() + "_languageCode"); 61 this.defaultToolId = ps.getString("principal_" + this.getInfoGluePrincipal().getName() + "_defaultToolId"); 62 63 return "success"; 64 } 65 66 67 68 71 92 93 94 public String getLanguageCode() 95 { 96 return languageCode; 97 } 98 99 public String getDefaultToolId() 100 { 101 return defaultToolId; 102 } 103 } 104 | Popular Tags |