/** * Derive list of plugin name from DSpace configuration entries * for crosswalks. * * @param direction "dissemination" or "submission", so it looks for keys like * <code>crosswalk.submission.{NAME}.stylesheet</code> * @return names to be given to the plugins of that direction. */ protected static String[] makeAliases(String direction) { String prefix = CONFIG_PREFIX + direction + "."; String suffix = CONFIG_STYLESHEET; List<String> aliasList = new ArrayList<>(); Enumeration<String> pe = (Enumeration<String>) ConfigurationManager.propertyNames(); LOG.debug("XSLTCrosswalk: Looking for config prefix = {}", prefix); while (pe.hasMoreElements()) { String key = pe.nextElement(); if (key.startsWith(prefix) && key.endsWith(suffix)) { LOG.debug("Getting XSLT plugin name from config line: {}", key); aliasList.add(key.substring(prefix.length(), key.length() - suffix.length())); } } return aliasList.toArray(new String[aliasList.size()]); }
/** * Put collection handle/style name mapping in an in-memory map. */ private void readKeyStyleConfig() { styles = new HashMap<String, String>(); Enumeration<String> e = (Enumeration<String>)ConfigurationManager.propertyNames(); while (e.hasMoreElements()) { String key = e.nextElement(); if (key.startsWith("webui.itemdisplay.") && key.endsWith(".collections")) { String styleName = key.substring("webui.itemdisplay.".length(), key.length() - ".collections".length()); String[] collections = ConfigurationManager.getProperty(key) .split(","); for (int i = 0; i < collections.length; i++) { styles.put(collections[i].trim(), styleName.toLowerCase()); } } } }
Enumeration<String> pe = (Enumeration<String>) ConfigurationManager.propertyNames(); List<Namespace> nsList = new ArrayList<>(); while (pe.hasMoreElements()) {
Enumeration pn = ConfigurationManager.propertyNames(); final String authPrefix = "authority.controlled."; Context context = new Context();
Enumeration<String> pe = (Enumeration<String>) ConfigurationManager.propertyNames(); String propname = CONFIG_PREFIX + ".namespace." + myName + "."; while (pe.hasMoreElements()) {
Enumeration pe = ConfigurationManager.propertyNames("oai"); while (pe.hasMoreElements())
Enumeration pe = ConfigurationManager.propertyNames(); while (pe.hasMoreElements())