From d94f6d23898f7515e969517f85b8e626667a1e02 Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Fri, 19 Sep 2014 08:56:38 +0000
Subject: [PATCH] Checkpoint commit for OPENDJ-1536: Rename ErrorResultException to LdapException and remove ErrorResultIOException

---
 opendj-config/src/main/java/org/forgerock/opendj/config/client/ClientConstraintHandler.java |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/opendj-config/src/main/java/org/forgerock/opendj/config/client/ClientConstraintHandler.java b/opendj-config/src/main/java/org/forgerock/opendj/config/client/ClientConstraintHandler.java
index 3dc2e11..4fd9add 100644
--- a/opendj-config/src/main/java/org/forgerock/opendj/config/client/ClientConstraintHandler.java
+++ b/opendj-config/src/main/java/org/forgerock/opendj/config/client/ClientConstraintHandler.java
@@ -22,6 +22,7 @@
  *
  *
  *      Copyright 2008 Sun Microsystems, Inc.
+ *      Portions Copyright 2014 ForgeRock AS
  */
 package org.forgerock.opendj.config.client;
 
@@ -29,7 +30,7 @@
 
 import org.forgerock.i18n.LocalizableMessage;
 import org.forgerock.opendj.config.ManagedObjectPath;
-import org.forgerock.opendj.ldap.ErrorResultException;
+import org.forgerock.opendj.ldap.LdapException;
 
 /**
  * An interface for performing client-side constraint validation.
@@ -70,11 +71,11 @@
      *            A list of messages to which error messages should be added.
      * @return Returns <code>true</code> if this constraint is satisfied, or
      *         <code>false</code> if it is not.
-     * @throws ErrorResultException
+     * @throws LdapException
      *             If an error occurs.
      */
     public boolean isAddAcceptable(ManagementContext context, ManagedObject<?> managedObject,
-        Collection<LocalizableMessage> unacceptableReasons) throws ErrorResultException {
+        Collection<LocalizableMessage> unacceptableReasons) throws LdapException {
         return true;
     }
 
@@ -97,11 +98,11 @@
      *            A list of messages to which error messages should be added.
      * @return Returns <code>true</code> if this modify is satisfied, or
      *         <code>false</code> if it is not.
-      * @throws ErrorResultException
+      * @throws LdapException
      *             If an error occurs.
      */
     public boolean isModifyAcceptable(ManagementContext context, ManagedObject<?> managedObject,
-        Collection<LocalizableMessage> unacceptableReasons) throws ErrorResultException {
+        Collection<LocalizableMessage> unacceptableReasons) throws LdapException {
         return true;
     }
 
@@ -123,11 +124,11 @@
      *            A list of messages to which error messages should be added.
      * @return Returns <code>true</code> if this constraint is satisfied, or
      *         <code>false</code> if it is not.
-     * @throws ErrorResultException
+     * @throws LdapException
      *             If an error occurs.
      */
     public boolean isDeleteAcceptable(ManagementContext context, ManagedObjectPath<?, ?> path,
-        Collection<LocalizableMessage> unacceptableReasons) throws ErrorResultException {
+        Collection<LocalizableMessage> unacceptableReasons) throws LdapException {
         return true;
     }
 }

--
Gitblit v1.10.0