Index: lams_common/src/java/org/lamsfoundation/lams/util/ConfigurationLoader.java =================================================================== diff -u -re88b2e8ec5e3cb801180c7368963eb42eab4b4d1 -r208e98d1d399065ad0e06dad88da8b1b904d1a4c --- lams_common/src/java/org/lamsfoundation/lams/util/ConfigurationLoader.java (.../ConfigurationLoader.java) (revision e88b2e8ec5e3cb801180c7368963eb42eab4b4d1) +++ lams_common/src/java/org/lamsfoundation/lams/util/ConfigurationLoader.java (.../ConfigurationLoader.java) (revision 208e98d1d399065ad0e06dad88da8b1b904d1a4c) @@ -36,7 +36,9 @@ import org.w3c.dom.NodeList; import org.xml.sax.SAXException; +import org.lamsfoundation.lams.util.ConfigurationKeys; + /** *
* View Source
@@ -96,19 +98,32 @@
{
setConfigFilePath();
Map items = Collections.synchronizedMap(new HashMap());
+
try{
Document configureDoc = XmlFileLoader.getDocumentFromFilePath(configFilePath);
- Element root = (Element)configureDoc.getElementsByTagName("Lams").item(0);
+ Element root = (Element)configureDoc.getElementsByTagName(ConfigurationKeys.ROOT).item(0);
NodeList nodeList = root.getChildNodes();
+
for(int i=0; ilanguage
+ * as the key and createDate
as the value. This hashMap will then be added in the main
+ * hashmap with "DictionaryDates" being the key.
+ *
+ * @param ele
+ * @param items The main hashmap where the elements are stored.
+ */
+ private static void loadDictionaryDates(Element ele, Map items)
+ {
+ NodeList dictionaries = ele.getChildNodes();
+ HashMap dictionaryMap = new HashMap();
+ for(int i=0; i