| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions copyright 2014 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.forgerock.opendj.config.server; |
| | |
| | | } |
| | | return pvalues; |
| | | } |
| | | } catch (DefinitionDecodingException e) { |
| | | throw PropertyException.defaultBehaviorException(propDef1, e); |
| | | } catch (PropertyNotFoundException e) { |
| | | throw PropertyException.defaultBehaviorException(propDef1, e); |
| | | } catch (PropertyException e) { |
| | | throw PropertyException.defaultBehaviorException(propDef1, e); |
| | | } catch (ConfigException e) { |
| | | } catch (Exception e) { |
| | | throw PropertyException.defaultBehaviorException(propDef1, e); |
| | | } |
| | | } |
| | |
| | | * A definition resolver that determines the managed object definition from |
| | | * the object classes of a ConfigEntry. |
| | | */ |
| | | private final class MyDefinitionResolver implements DefinitionResolver { |
| | | private static final class MyDefinitionResolver implements DefinitionResolver { |
| | | |
| | | // The config entry. |
| | | private final Entry entry; |
| | |
| | | // Get the configuration entry. |
| | | DN targetDN = DNBuilder.create(path); |
| | | try { |
| | | return (getManagedObjectConfigEntry(targetDN) != null); |
| | | return (configRepository.getEntry(targetDN) != null); |
| | | } catch (ConfigException e) { |
| | | // Assume it doesn't exist. |
| | | return false; |