mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
24.41.2015 e7cac727a9231ff3602e61a4ea678e0463eb0e39
opendj-server-legacy/src/main/java/org/opends/server/admin/client/spi/Driver.java
@@ -89,25 +89,24 @@
  private class DefaultValueFinder<T> implements
      DefaultBehaviorProviderVisitor<T, Collection<T>, Void> {
    // Any exception that occurred whilst retrieving inherited default
    // values.
    /** Any exception that occurred whilst retrieving inherited default values. */
    private PropertyException exception;
    // The path of the managed object containing the first property.
    /** The path of the managed object containing the first property. */
    private final ManagedObjectPath<?, ?> firstPath;
    // Indicates whether the managed object has been created yet.
    /** Indicates whether the managed object has been created yet. */
    private final boolean isCreate;
    // The path of the managed object containing the next property.
    /** The path of the managed object containing the next property. */
    private ManagedObjectPath<?, ?> nextPath;
    // The next property whose default values were required.
    /** The next property whose default values were required. */
    private PropertyDefinition<T> nextProperty;
    // Private constructor.
    /** Private constructor. */
    private DefaultValueFinder(ManagedObjectPath<?, ?> p, boolean isCreate) {
      this.firstPath = p;
      this.isCreate = isCreate;
@@ -115,9 +114,7 @@
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public Collection<T> visitAbsoluteInherited(
        AbsoluteInheritedDefaultBehaviorProvider<T> d, Void p) {
      try {
@@ -131,18 +128,14 @@
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public Collection<T> visitAlias(AliasDefaultBehaviorProvider<T> d, Void p) {
      return Collections.emptySet();
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public Collection<T> visitDefined(DefinedDefaultBehaviorProvider<T> d,
        Void p) {
      Collection<String> stringValues = d.getDefaultValues();
@@ -162,9 +155,7 @@
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public Collection<T> visitRelativeInherited(
        RelativeInheritedDefaultBehaviorProvider<T> d, Void p) {
      try {
@@ -178,9 +169,7 @@
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public Collection<T> visitUndefined(UndefinedDefaultBehaviorProvider<T> d,
        Void p) {
      return Collections.emptySet();
@@ -188,7 +177,7 @@
    // Find the default values for the next path/property.
    /** Find the default values for the next path/property. */
    private Collection<T> find(ManagedObjectPath<?, ?> p,
        PropertyDefinition<T> pd) throws PropertyException {
      this.nextPath = p;
@@ -211,7 +200,7 @@
    // Get an inherited property value.
    /** Get an inherited property value. */
    @SuppressWarnings("unchecked")
    private Collection<T> getInheritedProperty(ManagedObjectPath target,
        AbstractManagedObjectDefinition<?, ?> d, String propertyName)
@@ -757,9 +746,11 @@
  // Remove a managed object, first ensuring that the parent exists,
  // then ensuring that the child exists, before ensuring that any
  // constraints are satisfied.
  /**
   * Remove a managed object, first ensuring that the parent exists,
   * then ensuring that the child exists, before ensuring that any
   * constraints are satisfied.
   */
  private <C extends ConfigurationClient, S extends Configuration>
  boolean doDeleteManagedObject(
      ManagedObjectPath<C, S> path) throws ManagedObjectNotFoundException,