338339340341342343344345346
// if flush enabled, merge if (config != null) try { config.modifyAttributes(dn, mods); } catch (NamingException e) { throw new ConfigurationException(e); } }
348349350351352353354355
@Override public void removeCollectionElement(String keyName, String keyValue) throws ConfigurationException { try { config.destroySubcontextWithChilds(getCollectionElementDn(keyName, keyValue)); } catch (NamingException e) { throw new ConfigurationException(); } };
385386387388389390391392
@Override public void removeCurrentNode() throws ConfigurationException { try { config.destroySubcontextWithChilds(dn); } catch (NamingException e) { throw new ConfigurationException(); } }
5859606162636465
@Override public String[] asStringArray(String propName) throws ConfigurationException { try { return LdapUtils.stringArray(attrs.get(propName)); } catch (NamingException e) { throw new ConfigurationException(e); } }
6768697071727374
@Override public int[] asIntArray(String propName) throws ConfigurationException { try { return LdapUtils.intArray(attrs.get(propName)); } catch (NamingException e) { throw new ConfigurationException(e); } }
7677787980818283
@Override public Code[] asCodeArray(String propName) throws ConfigurationException { try { return LdapUtils.codeArray(attrs.get(propName)); } catch (NamingException e) { throw new ConfigurationException(e); } }
8586878889909192
@Override public int asInt(String propName, String def) throws ConfigurationException { try { return LdapUtils.intValue(attrs.get(propName), Integer.parseInt(def)); } catch (Exception e) { throw new ConfigurationException(e); } }
949596979899100101
@Override public String asString(String propName, String def) throws ConfigurationException { try { return LdapUtils.stringValue(attrs.get(propName), def); } catch (NamingException e) { throw new ConfigurationException(e); } }
103104105106107108109110
@Override public boolean asBoolean(String propName, String def) throws ConfigurationException { try { return LdapUtils.booleanValue(attrs.get(propName), Boolean.parseBoolean(def)); } catch (NamingException e) { throw new ConfigurationException(e); } }
212213214215216217218219
public static boolean nodeExists(Preferences prefs, String pathName) throws ConfigurationException { try { return prefs.nodeExists(pathName); } catch (BackingStoreException e) { throw new ConfigurationException(e); } }