/** * Get an array of all the browse indices for the current configuration * * @return an array of all the current browse indices * @throws BrowseException if browse error */ public static BrowseIndex[] getBrowseIndices() throws BrowseException { int idx = 1; String definition; ArrayList<BrowseIndex> browseIndices = new ArrayList<BrowseIndex>(); while (((definition = ConfigurationManager.getProperty("webui.browse.index." + idx))) != null) { BrowseIndex bi = new BrowseIndex(definition, idx); bi.displayFrequencies = Boolean.valueOf(ConfigurationManager .getBooleanProperty("webui.browse.metadata.show-freq." + idx, true)); browseIndices.add(bi); idx++; } BrowseIndex[] bis = new BrowseIndex[browseIndices.size()]; bis = browseIndices.toArray(bis); return bis; }