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/WorkflowTopologyNode.java |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/WorkflowTopologyNode.java b/opends/src/server/org/opends/server/core/WorkflowTopologyNode.java
index ad3367f..858b540 100644
--- a/opends/src/server/org/opends/server/core/WorkflowTopologyNode.java
+++ b/opends/src/server/org/opends/server/core/WorkflowTopologyNode.java
@@ -29,10 +29,7 @@
 
 import java.util.ArrayList;
 
-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.*;
 import org.opends.server.workflowelement.WorkflowElement;
 
 
@@ -93,11 +90,12 @@
    * workflow node base DN.
    *
    * @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
     getWorkflowImpl().execute(operation);
 
@@ -114,11 +112,12 @@
    * Executes a search operation on the subordinate workflows.
    *
    * @param searchOp the search operation to execute
+   *
+   * @throws CanceledOperationException if this operation should
+   * be cancelled.
    */
-  private void executeSearchOnSubordinates(
-      SearchOperation searchOp
-      )
-  {
+  private void executeSearchOnSubordinates(SearchOperation searchOp)
+      throws CanceledOperationException {
     // If the scope of the search is 'base' then it's useless to search
     // in the subordinate workflows.
     SearchScope originalScope = searchOp.getScope();

--
Gitblit v1.10.0