From 35a408038c1de64a6f13f0e7b246a645e9945e3c Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Tue, 18 Mar 2008 22:44:58 +0000
Subject: [PATCH] With this refactoring:

---
 opends/src/server/org/opends/server/core/RootDseWorkflowTopology.java |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/RootDseWorkflowTopology.java b/opends/src/server/org/opends/server/core/RootDseWorkflowTopology.java
index 3ec7f01..ea88331 100644
--- a/opends/src/server/org/opends/server/core/RootDseWorkflowTopology.java
+++ b/opends/src/server/org/opends/server/core/RootDseWorkflowTopology.java
@@ -27,10 +27,7 @@
 package org.opends.server.core;
 
 
-import org.opends.server.types.DN;
-import org.opends.server.types.Operation;
-import org.opends.server.types.OperationType;
-import org.opends.server.types.SearchScope;
+import org.opends.server.types.*;
 
 
 /**
@@ -70,11 +67,12 @@
    * Executes an operation on the root DSE entry.
    *
    * @param operation the operation to execute
+   *
+   * @throws CanceledOperationException if this operation should
+   * be cancelled.
    */
-  public void execute(
-      Operation operation
-      )
-  {
+  public void execute(Operation operation)
+      throws CanceledOperationException {
     // Execute the operation.
     OperationType operationType = operation.getOperationType();
     if (operationType != OperationType.SEARCH)
@@ -94,11 +92,12 @@
    * Executes a search operation on the the root DSE entry.
    *
    * @param searchOp the operation to execute
+   *
+   * @throws CanceledOperationException if this operation should
+   * be cancelled.
    */
-  private void executeSearch(
-      SearchOperation searchOp
-      )
-  {
+  private void executeSearch(SearchOperation searchOp)
+      throws CanceledOperationException {
     // Keep a the original search scope because we will alter it in the
     // operation.
     SearchScope originalScope = searchOp.getScope();

--
Gitblit v1.10.0